Skip to contentSkip to conversation

Can't get DNS forwarded

DISCUSSION [email protected] 1 participant 1 message Sep 26, 2002

lore
Share & tools
lore
#0 lore raw

I think one problem is with the DNATs you've setup:

Quoted 3 lines

# b) forward WWW to FS02
iptables -t nat -A PREROUTING -i eth0 -p tcp -d 208.250.60.72 -j DNAT --to-destination 192.168.100.2:80

I would read 'DNAT all traffic originally for 208....72 to 192.....2:80' this means also DNS. You sould include '--dport 80' to DNAT only http traffic (As you did under c) for 25).

Quoted 3 lines

# c) forward SMTP to FS02
iptables -t nat -A PREROUTING -i eth0 -p tcp -d 208.250.60.72 --dport 25 -j DNAT --to-destination 192.168.100.2:25

this is fine.

Regards,
Andreas
------------------------------------------------------------
Andreas Wolff
Menzebach und Wolff IT-Consulting

phone: +49 7503 916 716 - 2, mobile: +49 160 7 54 11 53
email: [email protected]
http:  www.mw-itcon.de

------------------------------------------------------------

Quoted 1 line

echo " DONE