Re: 2 DSL connections and 1 ROUTER
You jsut need some iptables stuff like this
iptables -A FORWARD -i eth0 -s 10.0.0.128/25 -o eth1 -j ACCEPT
iptables -A FORWARD -i eth0 -s 10.0.0.0/25 -o eth2 -j ACCEPT
to select your 2 netzone.
Then add some iptables stuff like every firewall to do the policy you want.
Cheers
jvda
Le Wed, 14 Jan 2004 22:27:54 +0100, Rafa a écrit*:
> Hi, I need your appreciate Help.
>
> I have one linux box with 3.0 redhat and 3 network cards:
>
> eth0=10.0.0.1/24 ---- connected to private LAN
> eth1=192.168.10.1/24 ---- connected to router DSL1 (IP
> 192.168.10.2/24)
> eth2=192.168.20.1/24 ---- connected to router DSL2 (IP
> 192.128.20.2/24)
>
>
> I want the following:
>
> Range between 10.0.0.10 to 10.0.0.127 connect to Internet using DSL1 mask
> =/24
> Range between 10.0.0.128 to 10.0.0.254 connect to Internet using DSL2.
> mask=/24
>
> ¿How can I do that?
> ¿using iptables and iproute2?
> ¿any example?
>
> Thank you very much.
|