netdev
[Top] [All Lists]

Fw: [Bugme-new] [Bug 4180] New: masquarade and source ip

To: netdev@xxxxxxxxxxx
Subject: Fw: [Bugme-new] [Bug 4180] New: masquarade and source ip
From: Andrew Morton <akpm@xxxxxxxx>
Date: Mon, 7 Feb 2005 11:18:22 -0800
Cc: spied@xxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx

Begin forwarded message:

Date: Mon, 7 Feb 2005 10:16:56 -0800
From: bugme-daemon@xxxxxxxx
To: bugme-new@xxxxxxxxxxxxxx
Subject: [Bugme-new] [Bug 4180] New: masquarade and source ip


http://bugme.osdl.org/show_bug.cgi?id=4180

           Summary: masquarade and source ip
    Kernel Version: 2.6.10
            Status: NEW
          Severity: normal
             Owner: laforge@xxxxxxxxxxxx
         Submitter: spied@xxxxxxxxx


i try next on router (eth0 - inernet, eth1 - localnet):

ip addr add eth0 1.2.3.4
ip addr add eth0 2.3.4.5

ip route add default via 2.3.4.6 src 2.3.4.5

iptables  -t nat -A POSTROUTING -s 10.0.0.0/8 -d ! 10.0.0.0/8 -j MASQUERADE

if i do ping www.google.com from router source ip is 2.3.4.5, but if i do ping
from local network source ip is 1.2.3.4 (i think it's wrong)

with older kernel source ip is always set to 2.3.4.5

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

<Prev in Thread] Current Thread [Next in Thread>