Forwarding hosts in postscreen

This commit is contained in:
Michael Kuron
2017-04-17 15:42:35 +02:00
parent 8822eb57c8
commit a75d916b74
5 changed files with 68 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
while true; do
read QUERY
QUERY=($QUERY)
if [ "${QUERY[0]}" != "get" ]; then
echo "500 dunno"
continue
fi
echo $(curl -s http://172.22.1.251:8081/forwardinghosts.php?host=${QUERY[1]})
done