#!/bin/sh # udpproxy is mainly use to proxy DNS request through blackhole. # The proxy works in two mode. # upd to tcp: It receives DNS request and pass it through the horizon server. # It goes as a normal TCP rule in blackhole. It uses the port 8053 as a reminder # OPTIONS="--udp2tcp --udpport 53 --udphost 192.168.2.1 --tcphost 192.168.2.1 --tcpport 8053 --bindaddr 192.168.5.1" # tcp to udp: It receives connection from the horizon and then talks to a real DNS server and send back the answer. # Is it running on a vserver where there is a DNS server (change localhost if this is not the case) # OPTIONS="--tcp2udp --tcpport 8053 --udpport 53 --udphost localhost"