Re: IP masq'ing bug on a sparc IPX w/ 1 net card

From: Julian Anastasov (uli@linux.tu-varna.acad.bg)
Date: Sun May 14 2000 - 01:59:15 EST


        Hello,

On Sun, 14 May 2000, Chester Bochan wrote:

> I'm getting spurious host redirects from my masquerading server to the
> masqing clients, redirecting it to the masquerading server's uplink.
> The server is a sparc IPX running redhat 6.1 with the kernel patched to
> 2.2.14 (with all the appropriate modules loaded). The clients are pentium
> II's running RedHat 6.2. The IPX is hooked into a hub along with the
> cablemodem (uplink) and the other machines on the network. eth0 gets set
> to an IP from the cablemodem (on the hub) with dhcp, i then alias eth0 to
> 192.168.0.1 and set up masqing.
>
> ipchains settings are as follows:
>
> ipchains -P forward DENY
> ipchains -A forward -s 192.168.0.0/16 -j MASQ
>
>
> Now the odd thing is, its working perfectly fine for the one windows box
> on the network. IRC, ftp, anything works flawlessly... but the linux boxes
> keep getting the redirects, making the packets still go out through the
> masqing server, but the destination machine on the internet sees the
> packets coming from "192.168.0.<linuxboxip>" instead of coming from the
> cablemodem. (so the returning packets get lost). Any ideas?

        What about trying these commands in the masq box:

echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects

Regards

--
Julian Anastasov <uli@linux.tu-varna.acad.bg>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:23 EST