Hello lartc,
Sorry for my english.
My conf: Linux kernel 2.4.18 + ipchains
I have:
1) eth1 - via SATelite only send data - with 195.x.x.2 and ISP1 ip
195.x.x.1
2) eth1:1 - via SATelite only recieve data - with 212.x.x.218 and
ISP2 ip 212.x.x.217
3) eth0 - local network with 192.168.0.x
4) eth0:1 - local network with 192.168.1.x
Default gateway 212.x.x.217 eth1:1
Script for ipchains
/sbin/ipchains -F
/sbin/ipchains -A forward -s 192.168.0.1/24 -j MASQ
/sbin/ipchains -A forward -s 192.168.1.1/24 -j MASQ
|---------------|
| | ISP2
| |212.x.x.218 212.x.x.217
192.168.0.x 192.168.0.1| eth1:1|<<<-----------------------
-------------------------|eth0 |
| | ISP1
192.168.1.x 192.168.1.1| |195.x.x.2 195.x.x.1
-------------------------|eth0:1 eth1|----------------------->>>
| |
|---------------|
All work fine.
Now we added new ISP3
1) eth3 - with ip 217.x.x.170 and ISP1 ip 217.x.x.169
Now new default gateway 217.x.x.169 with gatewaydev eth3
isp1 |217.x.x.169
|
|
|217.x.x.170
|---------------|
| eth3 | ISP2
| |212.x.x.218 212.x.x.217
192.168.0.x 192.168.0.1| |<<<-----------------------
-------------------------|eth0 |
| | ISP1
192.168.1.x 192.168.1.1| |195.x.x.2 195.x.x.1
-------------------------|eth0:1 |----------------------->>>
| |
|---------------|
Now I want to net 192.168.0.x use new ISP3, net 192.168.1.x use old
ISP1 and ISP2
# Net 192.168.0.x default into main table
ip ru add pref 10 to 192.168.0.1/24 tab main
# Now incoming traffic from ISP2 - (ip 212.x.x.218) send to ISP1
# ip - 195.x.x.2
ip ru add pref 20 from 212.x.x.218 tab 201
ip route add default via 195.x.x.2 dev eth1 table 201
# And now for net 192.168.0.x
ip rule add from 192.168.1.0/24 table 200
ip ro add default via 218.x.x.217 dev eth1 table 200
But now i see with tcpdump -i eth1 when ping www.list.ru from 192.168.1.x
11:53:25.367532 > my_linux_box > host1.list.ru: icmp: echo request
11:53:26.363947 > my_linux_box > host1.list.ru: icmp: echo request
11:53:27.375236 > my_linux_box > host1.list.ru: icmp: echo request
11:53:28.376499 > my_linux_box > host1.list.ru: icmp: echo request
And tcpdump -i eth3
11:53:25.796200 < host1.list.ru > my_linux_box: icmp: echo reply
11:53:26.832670 < host1.list.ru > my_linux_box: icmp: echo reply
11:53:27.815478 < host1.list.ru > my_linux_box: icmp: echo reply
11:53:28.752727 < host1.list.ru > my_linux_box: icmp: echo reply
Packets go to ISP1 and return over ISP3, but need go ISP1 and return
over ISP2
Can you help me?? How configure routing in this conf??
--
Best regards,
rust mailto:rust@vinet.ru
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/