1# This file is read by /usr/sbin/dnsmasq-portforward and used to set up port 2# forwarding to hostnames. If the dnsmasq-determined hostname matches the 3# first column of this file, then a DNAT port-forward will be set up 4# to the address which has just been allocated by DHCP . The second field 5# is port number(s). If there is only one, then the port-forward goes to 6# the same port on the DHCP-client, if there are two seperated with a 7# colon, then the second number is the port to which the connection 8# is forwarded on the DHCP-client. By default, forwarding is set up 9# for TCP, but it can done for UDP instead by prefixing the port to "u". 10# To forward both TCP and UDP, two lines are required. 11# 12# eg. 13# wwwserver 80 14# will set up a port forward from port 80 on this host to port 80 15# at the address allocated to wwwserver whenever wwwserver gets a DHCP lease. 16# 17# wwwserver 8080:80 18# will set up a port forward from port 8080 on this host to port 80 19# on the DHCP-client. 20# 21# dnsserver 53 22# dnsserver u53 23# will port forward port 53 UDP and TCP from this host to port 53 on dnsserver. 24# 25# Port forwards will recreated when dnsmasq restarts after a reboot, and 26# removed when DHCP leases expire. After editing this file, send 27# SIGHUP to dnsmasq to install new iptables entries in the kernel. 28 29