Re: Auto-killing connections when changing IP?
- From: Pascal Hambourg <boite-a-spam@xxxxxxxxxxxxxxx>
- Date: Thu, 11 Oct 2007 18:22:25 +0200
Hello,
Chris Davies a écrit :
Stefan Monnier <monnier@xxxxxxxxxxxxxxxx> wrote:
Is there some way to kill all TCP connections that go over the network
interface `foo' whenever this interface is brought up with an IP address
different from the one it had before?
Try an iptables -t nat ... -j MASQUERADE rule
Note that this won't affect existing connections in the TCP/IP stack and sockets ; it will only erase them in the Netfilter connection tracking table. Also note that it won't make a difference whether the interface is brought up again with a different address.
.
- Follow-Ups:
- Re: Auto-killing connections when changing IP?
- From: Chris Davies
- Re: Auto-killing connections when changing IP?
- References:
- Auto-killing connections when changing IP?
- From: Stefan Monnier
- Re: Auto-killing connections when changing IP?
- From: Chris Davies
- Auto-killing connections when changing IP?
- Prev by Date: Re: Auto-killing connections when changing IP?
- Next by Date: Re: no route to host but ping ok
- Previous by thread: Re: Auto-killing connections when changing IP?
- Next by thread: Re: Auto-killing connections when changing IP?
- Index(es):
Relevant Pages
|