Hi You need a PREROUTING rule in the nat table. iptables -A PREROUTING -t nat -i ppp0 -p tcp -d 4.3.2.1 --dport 23 -j DNAT --to-destination 1.2.3.4:23 4.3.2.1 is an ip on your linux server. 1.2.3.4 is your unix server's ip. You may also need some forwarding rules: iptables -A FORWARD -o eth0 -d 1.2.3.4 --dport 23 -j ACCEPT iptables -A FORWARD -i eth0 -s 1.2.3.4 --sport 23 -j ACCEPT Ray On Wed, 2002-12-18 at 14:31, Andre Vorster wrote:
Hi all
Using SuSE 7.3 I am trying to setup my firewall so that it will forward port 23 (telnet) to unix server on the internal net. If I dial into my linux box via ppp0.
My linux server has two LAN card eth1 - ext & eth0 - int & then the ppp0 dial-up that needs to forward to eth0.
I am using my server as a web & mailserver.
Can somebody please help.
Andre Vorster Business Print Centre Tel: 012 349 2295 Fax: 012 349 2299
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( Raymond Leach ) ) Knowledge Factory ( ( ) ) Tel: +27 11 445 8100 ( ( Fax: +27 11 445 8101 ) ) ( ( http://www.knowledgefactory.co.za/ ) ) http://www.saptg.co.za/ ( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ o o o o .--. .--. | o_o| |o_o | | \_:| |:_/ | / / \\ // \ \ ( | |) (| | ) /`\_ _/'\ /'\_ _/`\ \___)=(___/ \___)=(___/