1834944 Members
2250 Online
110071 Solutions
New Discussion

scans to portmap port

 
Ing Meloni
Advisor

scans to portmap port

I checked with tcpdump the connections
to my servers over the weekend.
There were as expected plenty of scans, especially on port 111.
There is a way to filter connections
to this port (I use NFS, so I can't
just remove the service), or a way to
restrict the use of the rpcinfo command only to localhost?

Thanks
4 REPLIES 4
eran maor
Honored Contributor

Re: scans to portmap port

Hi

did you try the rpcinfo -p localhost ?
love computers
Ing Meloni
Advisor

Re: scans to portmap port

Sorry, my english isn't that good.
What I wanted to say is that I am looking
a way to avoid nasty people receive an answer
from my server
when they scan me with a 'rpcinfo -p myserver'.
linuxfan
Honored Contributor

Re: scans to portmap port

Hi,

Is your machine directly connected to the internet? Then you should seriously consider using a firewall. You could also look at ipfilter.
http://coombs.anu.edu/au/~avalon/ip-filter.html

If you just want to prevent portscan, you could look at something like portsentry. ( I know it has been tested on HP-UX 10.20 not sure about 11.0). Here is the link for portsentry

http://www.psionic.com/abacus/portsentry

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Ralf Hildebrandt
Valued Contributor

Re: scans to portmap port

a) Consider running an IDS instead of tcpdump. Check out www.snort.org, it's libpcap based (like tcpdump) and has extensive rulesets
b) Consider replacing portmap by a protmapper that honors /etc/hosts.allow and hosts.deny (tcp_wrappers)

ftp://ftp.porcupine.org/pub/security/index.html#software
or better:
ftp://ftp.porcupine.org/pub/security/portmap_4.tar.gz
Postfix/BIND/Security/IDS/Scanner, you name it...