LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to block a port, such as 21? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-block-a-port-such-as-21-a-276299/)

iclinux 01-10-2005 07:30 PM

How to block a port, such as 21?
 
Hi threre,

I wan to write a program that can block a port, such as 21.

But I don't konw how to do it.

Thanks a lot:)

Tinkster 01-10-2005 07:33 PM

Silly question, but why not just stop the services,
or use iptables?


Cheers,
Tink

iclinux 01-10-2005 07:52 PM

Thanks, Tinkster.

What I mean is that: after I block the specified ports, all subsequent processes can not use these ports, but I don't want to kill these process.

BTW, how to write a program with Iptables? thanks again.

Tinkster 01-16-2005 12:51 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...hreadid=275989


All times are GMT -5. The time now is 07:57 PM.