| To: | LARTC@mailman.ds9a.nl |
|---|---|
| Subject: | [LARTC] Load Balance and SNAT problem. |
| From: | "John Chang" <mofish@gmail.com> |
| Date: | Mon, 25 Jun 2007 11:07:30 +0800 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | lartc-list@securepoint.com |
| Delivered-to: | lartc@outpost.ds9a.nl |
| Dkim-signature: | a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=V0uKYE7kbhZKJD0RNPIhQwUdwqUTe0iRNNraBujOhm2II/Hi/DcrWzCRoL9Sa1PlgTlf9cELvdf11UYiYtPV7nVS93E3c9Hz8aOJCF1Bl5UjcbXgm/9MJTWrLSw+zWK6K6JdHCW86Mje5zbFIdY8KPdGXiTejjgqV9gJ/iJeHQM= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=KKAx7yBgNW1QeDMTK9yzialdtUmbtRxb4Bab59Lb7nuIW36VguAzkcGhgyqMF5MX0EW0eIkDLGCebSwFn4x9ABR0x/2OWnRYzS1DhxITsCfeklV7u6H3S8MeLHiopK975E2oxA6FrEXI+zFRbyt6M29RVWvs75opFBUyqNmzF9E= |
| List-archive: | <http://mailman.ds9a.nl/pipermail/lartc> |
| List-help: | <mailto:lartc-request@mailman.ds9a.nl?subject=help> |
| List-id: | "Mailinglist of the Linux Advanced Routing & Traffic Control project" <lartc.mailman.ds9a.nl> |
| List-post: | <mailto:lartc@mailman.ds9a.nl> |
| List-subscribe: | <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe> |
| List-unsubscribe: | <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe> |
| Sender: | lartc-bounces@mailman.ds9a.nl |
|
I am developing load balancing router, But I have a question about fail over. PC2-Linux Kernel 2.6.21
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 111.111.111.2 # table 101 # table 102 ip rule del fwmark 1 table 101 iptables -t mangle -A PREROUTING -t mangle -j CONNMARK --restore-mark ----------------------------------------------------------------------------- 1. Run command "ping 172.16.0.1 -t" on PC1
2. I capture packets on WAN1 and WAN2, it works fine. The ICMP request/response would come out on WAN1 and WAN2 sequentially. 3. I unplug WAN1. Only the packets on WAN1 will lost, but WAN2 should works, right? I should saw "ping Time Out" and "ping OK" on PC1 sequentially. 4. But the both connections all breaks. It always "ping Time Out" on PC1. 5. After caputre the packets on WAN1 and WAN2. I saw a weird behavior. The source IP of packets on WAN2 is 111.111.111.2, but it should be 222.222.222.2 That is why WAN2 breaks. ----------------------------------------------------------------------------- Could you give me a suggestion? Thanks.
_______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [LARTC] HTB deadlock, Andy Furniss |
|---|---|
| Next by Date: | Re: [LARTC] Why does scp stall on low bandwidth connections?, Nikolay Kichukov |
| Previous by Thread: | [LARTC] ESFQ: request for user input, Corey Hickey |
| Next by Thread: | Re: [LARTC] Load Balance and SNAT problem., Grant Taylor |
| Indexes: | [Date] [Thread] [Top] [All Lists] |