From: Lim Boon Ping Subject: simple PC-based router using IPTABLES Date: Wed, 12 Jan 2005 00:45:40 -0800 (PST) Message-ID: <20050112084540.55383.qmail@web12508.mail.yahoo.com> Mime-Version: 1.0 Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: netfilter@lists.netfilter.org Hi, =20 I need some help on using IPTABLES to setup a simple PC-based router (for L= AN usage). The PC consists of a 10/100 NIC on eth0, and a gigabit fiber NIC on eth1. = The gigabit fiber NIC is connected to another fiber-based port, whereas the= 10/100 NIC is connected to a 10/100 hub. Now, for all packets coming from = eth0, forward it to eth1, and vice versa.=20 Could anyone verify/suggest commands to set for this setting? =20 # iptables -A FORWARD -i eth0 -o eth1=20 # iptables -A FORWARD -i eth1 -o eth0=20 =20 Is it that's all we need to do? Thanks. =20 Regards, Jocelyn =20 =20 =09 --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! =96 Try it today!=20