From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hlynur Thor Olason" Subject: forwarding local traffic Date: Thu, 11 Dec 2003 11:52:16 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <003101c3bfd4$d80cdf00$b84526c0@thor> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002E_01C3BFDD.39728530" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_002E_01C3BFDD.39728530 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have 2 Ethernet cards in a box. =20 Call them eth0 with IP address 192.168.0.1 and eth1 with IP =3D 192.168..0.2 =20 eth1=3D 192.168.0.2 is connected to another computer a gateway which has = the IP address 192.168.0.3. This computer is then connected to an = external network which is again connected to eth0=3D192.168.0.1 in the = first box.=20 =20 Now the problem is I want to get locally generated packages in the box = destined for 192.168.0.2 (eth1 in the box) to leave the box and be = routed trough the network to the box again.=20 =20 I have been trying to use iptables but not found a solution.=20 =20 Any suggestion would be welcome? / Thor=20 ------=_NextPart_000_002E_01C3BFDD.39728530 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I=20 have 2 Ethernet cards in a box.

 

Call=20 them eth0 with IP address 192.168.0.1   =20 and

eth1=20 with IP =3D 192.168..0.2

 

eth1=3D=20 192.168.0.2 is connected to another computer a gateway which has the IP = address=20 192.168.0.3. This computer is then connected to an external network = which is=20 again connected to eth0=3D192.168.0.1 in the first box.=20

 

Now=20 the problem is I want to get locally generated packages in the box = destined for=20 192.168.0.2 (eth1 in the box) to leave the box and be routed trough the = network=20 to the box again.

 

I=20 have been trying to use iptables but not found a solution.=20

 

Any=20 suggestion would be welcome?  = / Thor=20

------=_NextPart_000_002E_01C3BFDD.39728530--