LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   blocking and unblocking ports on linux (https://www.linuxquestions.org/questions/linux-networking-3/blocking-and-unblocking-ports-on-linux-467427/)

pumplove 07-25-2006 07:59 AM

blocking and unblocking ports on linux
 
Hi,
I needed to know if it is possible to block a port for some time (say 5 minutes ) and then unblock , in such a way that the connection doesnt get affected.

For eg. suppose i block port 23 for say 2 minutes , then the telnet that i have opened shoould remain unaffacted and i should be able to establish contact with the telneted machine after 2 minutes ??

Sorry if the question sounds hazy, please let me know if u need more information.

~=gr3p=~ 07-25-2006 09:16 AM

the iptables recent patch
http://www.netfilter.org/documentati...-3.html#ss3.16

one example is here:
http://linuxgazette.net/108/odonovan.html

or try DEnyhosts:
http://denyhosts.sourceforge.net/


All times are GMT -5. The time now is 10:31 PM.