LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-12-2003, 07:51 AM   #1
slack66
Member
 
Registered: Jul 2003
Location: manila
Distribution: slackware 8 to 9
Posts: 199

Rep: Reputation: 30
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
 
Old 07-12-2003, 08:14 AM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
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
 
Old 07-12-2003, 08:27 AM   #3
slack66
Member
 
Registered: Jul 2003
Location: manila
Distribution: slackware 8 to 9
Posts: 199

Original Poster
Rep: Reputation: 30
Poetics... thks! a lot but how do i stop my computer in replying to ping and traceroute???

Last edited by slack66; 07-12-2003 at 08:29 AM.
 
Old 07-12-2003, 10:03 AM   #4
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
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).
 
Old 07-12-2003, 01:00 PM   #5
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
open ports on linksys, i have ssh open but thats it PlatinumRik Linux - Security 1 07-07-2005 10:38 AM
Open ports dareino Slackware 8 03-16-2004 01:53 PM
Ports have to be open? Daiba Linux - Newbie 3 01-29-2004 08:39 AM
open ports nakkaya Linux - General 2 02-05-2003 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration