From mboxrd@z Thu Jan 1 00:00:00 1970 From: rita jacques Subject: NAT (iptables) problem (help) Date: Wed, 22 May 2002 14:25:57 -0400 Sender: linux-admin-owner@vger.kernel.org Message-ID: <1022091957007296@lycos.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_NextPart_Caramail_0072961022091957_ID" Return-path: List-Id: To: linux-admin@vger.kernel.org This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --=_NextPart_Caramail_0072961022091957_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi I have a LAN (linux mandrake boxes, with IP 192.168.0.1 to 20). I have also a gateway (linux mandrake with 2 Network cards eth0 with real IP AAA.BBB.CCC.DDD and eth1 with 192.168.0.1). What sould I do to redirect for example web request to 192.168.0.20 machine in the LAN... I tried iptables...not working (iptables -t nat -A PREROUTING -i eth0 -p tcp --dport www - j DNAT --to-dest 192.168.1.20 ) Should I use iptables on the gateway only or on the linux boxes on the LAN also? What about SNAT? is this correct iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to- source AAA.BBB.CCC.DDD Thanks Rita ______________________________________________________ Bo=EEte aux lettres - Lycos - http://www.lycos.fr --=_NextPart_Caramail_0072961022091957_ID--