🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #280074

Re: Has Anyone Tried Snort on a Debian Server?

#280074
From: Cornelis Tromp
Date: Wed, 17 Feb 2016 23:30
59 lines
3121 bytes
On Wed, 17 Feb 2016 21:49:24 -0000 (UTC), you wrote:
>
> *** PGP SIGNATURE VERIFICATION ***
> *** Signature made 02/17/16 13:49:24 using RSA key ID BE3EFAA7
> *** Good signature from "Steven Crook"
> *** WARNING: Using untrusted key!
> *** Verified 02/17/16 14:08:13
> *** BEGIN PGP VERIFIED MESSAGE ***
>
> On Wed, 17 Feb 2016 22:25:49 +0100 (CET), Anonymous Remailer (austria) wrote in
> Message-Id: <1a0c07c7eb7f994ef78c415d1ed83b0c@remailer.privacy.at>:
>
> > I have added these lines to my iptables
> >
> > -A INPUT -s x.x.x.x/32 -p tcp -m tcp --dport 111 -j DROP
> > -A INPUT -s x.x.x.x/32 -p udp -m udp --dport 111 -j DROP
> > -A INPUT -s 127.0.0.1/32 -p tcp -m tcp --dport 111 -j ACCEPT
> > -A INPUT -s 127.0.0.1/32 -p udp -m udp --dport 111 -j ACCEPT
> >
> > I then did an update to my iptables with no error messages.
> >
> > However, when I do a nmap scan from my Windows PC to my Debian
> > Server I get this report:
> >
> > 111/tcp	open	rpcbind
> Have you tried simplifying your rule to something like:
>
> iptables -A INPUT -p tcp --dport 111 -j DROP
>
> I don't think the "-m tcp" is required (or matched).
>
> > What is wrong with my iptables that has not shut down port 111?
> iptables won't shut down the port, it will just drop packets that meet
> specific criteria.
> >
> > Please note if I use -s! for the DROP commands, I get an error
> > message when I try to save my iptables file.
> >
> > x.x.x.x is my masked IP address.
>
> Is there any reason why you want the port open?  If not, much better to
> close it.  You can find out what program has opened it with:
>
> netstat -tlpn | grep 111
>
> You might need to run that as root to get a list of ports opened by any
> user.
>

Zax, thanks for the response. After further research I have elected 
to remove rpcbind using,

apt-get purge rpcbind

No more port 111 after a port scan.

By the way, when I saved my iptables I did not have the -m tcp 
command. This was added after I saved the file and did a iptables-
restore.
Technical Details
Message-ID: <732b1728b0de8073bab21a003cb28d91@anon.holland.remailer.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <32257ffc4ab7202315e77bb918060784@anon.holland.remailer.nl> <1473633102.477373902.090225.dunno-dunno.dunno@news.mixmin.net> <1a0c07c7eb7f994ef78c415d1ed83b0c@remailer.privacy.at> <slrnnc9qn4.qfp.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <732b1728b0de8073bab21a003cb28d91@anon.holland.remailer.nl>
Subject: Re: Has Anyone Tried Snort on a Debian Server?
Date: Wed, 17 Feb 2016 23:30:15 +0000
From: Cornelis Tromp <nobody@holland.remailer.nl>
References: <32257ffc4ab7202315e77bb918060784@anon.holland.remailer.nl> <1473633102.477373902.090225.dunno-dunno.dunno@news.mixmin.net> <1a0c07c7eb7f994ef78c415d1ed83b0c@remailer.privacy.at> <slrnnc9qn4.qfp.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Comments: This message did not originate from the Sender address above.
 It was remailed automatically by anonymizing remailer software.
 Please report problems or inappropriate use to the
 remailer administrator at <abuse@holland.remailer.nl>.
Newsgroups: alt.privacy.anon-server
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
Lines: 59