Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.