Host Forwarding

Paul Rusty Russell Paul.Russell@linuxcare.com.au
Mon, 29 Nov 1999 14:15:43 +1100


In message <383C48CE.C608151D@logicnetworks.com> you write:
> I have one ip address and need to point all my dns to this address and
> the netfilter to look at the header and forward
> to the appropriate host.

If you want to pass all external DNS queries to an internal DNS
server, simply use port forwarding:

	ipnatctl -I -i eth0 -d 1.2.3.4 -p tcp --dport domain -b dest -t 192.168.1.1
	ipnatctl -I -i eth0 -d 1.2.3.4 -p udp --dport domain -b dest -t 192.168.1.1

Replace eth0 with your external interface name, 1.2.3.4 with your
external interface address, and 192.168.1.1 with your internal DNS
server's address.

Rusty.
--
Hacking time.