LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to reset established connection? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-reset-established-connection-99456/)

G-Fox 10-02-2003 11:54 AM

How to reset established connection?
 
Hello everybody who read this message.

I have RH linux box with what I shares Internet.
When I browsing Internet one of my users start downloading from Internet. I connect to my router and disable all ports apart 80 to that user ip, but he can download until he must make new connection.

How I can reset this established connection?

david_ross 10-02-2003 01:33 PM

If he is downloading using http and you don;t block port 80 then the connection will continue.

G-Fox 10-02-2003 02:01 PM

No problem is not there...
I can block his ip with iptables and every thing is ok he can't start new dowload, but established still downloading.
To reset connection I use adsl_stop and adsl_start, but I think what it must be much more beter way to reset connection....

david_ross 10-02-2003 02:26 PM

You can probably use an iptables rule relating to his IP with:
-m state --state ESTABLISHED,RELATED -j DROP

G-Fox 10-02-2003 02:53 PM

Yes it works perfectly THANKS FOR YOUR ANSWERS!


All times are GMT -5. The time now is 11:02 PM.