Re: Changes in the 2.2 MASQ: maddr problems

From: Julian Anastasov (uli@linux.tu-varna.acad.bg)
Date: Sun Apr 02 2000 - 00:38:46 EST


        Hello,

On Sat, 1 Apr 2000, Valentijn Sessink wrote:

> Hello Julian, hello lkml,
>
> Julian Anastasov wrote:
> > This is a patch for the 2.2.15pre16 masquerade to correctly
> > support multiple output devices. I didn't tested it: no masq env.
> [...]
> > Please, someone to test. I'm unable to test all aspects of the
> > MASQ code.
>
> Sorry to report, but eh... the patch makes it worse: now the output
> address seems to not change at all; it seems that the ports change, but
> not the address:
> (just picked some random stuff from tcpdump):

        Oh, fixed.

>
> 18:31:36.404755 192.168.112.10.61003 > 193.0.14.129.53: 55411 A? sander.
> (24)
> 18:31:36.404923 192.168.112.10.61003 > 62.108.1.65.53: 45404+ A? dds.nl.
> (24)
> 18:31:36.405069 192.168.112.10.61003 > 202.12.27.33.53: 56358 A? sander.
> (24)
>
> (this is from a dump at one of the outside world interfaces; as you see
> the ports seem masq'd but the source address is not). (BTW, the above
> dump is while only *one* output is active, so no ppp-link, and just one
> rule that masq's '-s 192.168.112.0/24')
>
> Oh, I had "sonar" from the xscreensaver distribution running and that
> started showing dots again, so the ICMP stuff seems right.
>
> Is this enough to eh... (well, spoil your weekend? I'm not sure...)? If
> you need additional info, please tell me, as I'll gladly run extra
> tests.

        Thank you for your report. We are starting to disturb
l-k. So, this is my last beta patch I'm sending here. If not
working, we are going to the test bed.

        Fixed:

- correctly fill ms->maddr in ip_fw_masquerade
- drop the packet after ip_route_output failed (NEW!)

        Valentijn, please test!

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 : Fri Apr 07 2000 - 21:00:08 EST