From: rust <rust@vinet.ru>
To: lartc@vger.kernel.org
Subject: [LARTC] 3 providers route - help me
Date: Wed, 07 Aug 2002 08:01:27 +0000 [thread overview]
Message-ID: <marc-lartc-102870736426599@msgid-missing> (raw)
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/
reply other threads:[~2002-08-07 8:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-102870736426599@msgid-missing \
--to=rust@vinet.ru \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.