lkml.org 
[lkml]   [2000]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[Patch] implementated IP_MASQ_CMD_FLUSH
Date
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

[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.073 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site