[Patch] implementated IP_MASQ_CMD_FLUSH

From: Willy Tarreau (willy@novworld.Novecom.Fr)
Date: Sat Jan 08 2000 - 16:25:35 EST


Hi there,

while using PPP/dial-on-demand together with IP_MASQ, I was annoyed by the
link being established with a local address different from the one kept in
the masquerading entry (which matched the previous link address). So I've
implemented the IP_MASQ_CMD_FLUSH command for the target IP_MASQ_TARGET_CORE.

This allows to quickly flush all masquerading entries.

Here is the patch against 2.2.14. It slightly modifies net/ipv4/ip_masq.c and
adds an example program in Documentation/networking/ip_masq. The scripts ip-up
and ip-down on my firewall box now call it and I now have a true dial-on-demand.
It works correctly, and I'm sending this mail using it.

For those who can't extract the patch from this mail, it's available at :

  http://www-miaif.lip6.fr/willy/pub/linux-patches/patch-2.2.14-masqflush.gz

Happy dialing :-)

Willy Tarreau



-
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 : Sat Jan 15 2000 - 21:00:13 EST