Re: Route packets from an interface to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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? 

On 9/9/05, Jonathan <phonic@xxxxxxxxxxxxx> 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).
> 
> I want to forward all packages on box1 with destination 192.121.234.213 to
> tun0 (10.1.0.1), so they pass through the tunnel and comes to box2. I also
> 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?
> 
> Regards
> Jonathan
> 
> 
>



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux