From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edmundo Carmona Subject: Re: Route packets from an interface to another Date: Fri, 9 Sep 2005 16:22:46 -0400 Message-ID: <65aa6af905090913223ee05c29@mail.gmail.com> References: <1197.83.227.26.235.1126293340.squirrel@webmail.2lug.se> Reply-To: eantoranz@gmail.com Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1197.83.227.26.235.1126293340.squirrel@webmail.2lug.se> Content-Disposition: inline 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="us-ascii" To: netfilter@lists.netfilter.org IPTABLES? I think it's a routing problem, not a firewall one. ip route add 192.121.234.213 via 10.1.0.2 I think that would do the first part of your problem. But why do you have an IP address (not 127/8) set on a loopback interface?= =20 On 9/9/05, Jonathan wrote: > Hello, > I have the following interface configuration on two boxes: > box1: eth0:5 192.121.234.213 netmask 255.255.255.240 broadcast > 192.121.234.223 > box2: lo:0 192.121.234.213 netmask 255.255.255.255 > between box1 and box2 I have a OpenVPN tunnel (endpoints 10.1.0.1 and > 10.1.0.2). >=20 > I want to forward all packages on box1 with destination 192.121.234.213 t= o > tun0 (10.1.0.1), so they pass through the tunnel and comes to box2. I als= o > want to forward all packages from tun0 (10.1.0.1) to eth0:5 > (192.121.234.213). How do I do this with iptables? >=20 > Regards > Jonathan >=20 >=20 >