can i change the ip masq ports?

Felvegi Peter Andras (petschy@lucifer.kgt.bme.hu)
Mon, 19 Feb 2001 15:37:00 +0000 (GMT)


hello,

i've run to the following problem recently: i had to install ip masq to
a server to provide inet access for the computers on the lan. it didn't
work, i spent a few days with it browsing the howto, configuring the
firewall, etc.
at the end it turned out, that the evil isp filters the packets. i
figured out that this is only possible through watching the port numbers
in the packets. i made a fast hack in include/ipmasq.h to start the ip
masq ports not from 61... but from a number not much above 1024.
this cured the problem, now the masq runs flawlessly, though there's
not much traffic on the server beside the masq. my question: is it
possible that this simple hack will cause collisions with other
modules/programs that allocate ports? in the masq sources i haven't
found any check for that, probably because the original port region was
allocated uniquely for masq. so i think the collision is possible.
please comment on this. it would be nice to have the server run ip masq
reliably. please cc any answers to me, since i'm not on the list
(yet;)).

cheers; petschy

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