LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to hide my open ports (https://www.linuxquestions.org/questions/linux-networking-3/how-to-hide-my-open-ports-72113/)

slack66 07-12-2003 07:51 AM

how to hide my open ports
 
hi! is there a way to hide my open ports if someone try to port scan my server??? and how do i stop my computer in replying to ping and traceroute??? thks in adv:)

Poetics 07-12-2003 08:14 AM

Do a search for "close ports" and you'll find about 10-15 threads in the past week on this very subject, on just about every distro. Hey, I think I had a thread about it myself two weeks back.

http://www.linuxquestions.org/questi...threadid=66796

slack66 07-12-2003 08:27 AM

Poetics... thks! a lot;) but how do i stop my computer in replying to ping and traceroute???

Robert0380 07-12-2003 10:03 AM

to top it from replying from anything just do this:

iptables -P INPUT REJECT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

you wont be able to run a server with that configuration but you cant be pinged that way. if you want to run a server (like apache) then you would want a port scan to reveal port 80 being open....otherwise no one would know u were running a web server and whats the point of running one that you cant connect to...(unless u didnt want anyone to be able to connect to it of course...like for dev. purposes i guess).

Half_Elf 07-12-2003 01:00 PM

use a firewall (iptables) to filter your trafic :)
some nice options of iptables like -j REJECT --reject-with tcp-reset
will show your port as closed even for a good port scanner.


All times are GMT -5. The time now is 03:56 PM.