🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Has Anyone Tried Snort on a Debian Server?

#280070
From: Zax
Date: Wed, 17 Feb 2016 21:49
64 lines
3340 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWxOrkAAoJEC3jHKG+PvqnEEkQAJ4ZIRtxWudYszkUaanG55ln
DGkYBJhjkNRNghbLHFlIXIbRcnZKLkThDpKx1J3vN0YiYzVnRBzj2fka763gxZ3C
IL2764qRQLWOtqoUaxw9mBj2yuR7KVxrW2OixnZL6YKaLqyvza8A8u31ZWHGqWmp
rehSZd8R5YyiYkC+qecZqexSVFNleBrXmNwXGe07AJjjNzCkUe3rr6l8yIb86InN
v1Mgr/v1D7LNyZ24pE/66Y6xRaFQKK5QeXaEqcCjkZvZw5nuRRq+zzmG0WQDnhZ/
zYhkXFbZ9eNAzDIKVXgdFr8uIXPMdb4QCpy/MFLhdE8NpzQhCu2lpZSy3ACJCvhX
QZuQ1rJsrrBL/DFMdyiwxU31Hjo28KkOCrH/jtiwZORU39Cz0DI59ivtbbUewKO/
jON44lHHdILEwJLmu0JcGyPq+PqQw/IifUip2FaODUPpzdJa5i+OcE9QmJVYYYqr
yjDBgCctMac7Y8Lm60nRJ5S3jigxgJY6wkmKhOt1Fa50/N/hCWLMqDS7LorL+9iQ
CusCO5ZqQbVPgqwp29MPYOdYvzGfa3UIZeP8gYMe0hOArJlCgctCl2yi1Si6k7I0
kTT+k8Q877LGj6TSf5/3jhJ8IQvYbB1z27g25ysWzb1VshKx2IxDJYfAyMS5TbXU
Bf/awZKkTU3qZ7D8tIcV
=+r+3
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
sub  4096R/BE3EFAA7  created: 2014-11-14  expires: 2016-11-13  usage: S
Technical Details
Message-ID: <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
References: <32257ffc4ab7202315e77bb918060784@anon.holland.remailer.nl> <1473633102.477373902.090225.dunno-dunno.dunno@news.mixmin.net> <1a0c07c7eb7f994ef78c415d1ed83b0c@remailer.privacy.at>

Show Full Headers
Complete Article Headers
Message-ID: <slrnnc9qn4.qfp.admin@fleegle.mixmin.net>
Subject: Re: Has Anyone Tried Snort on a Debian Server?
Date: Wed, 17 Feb 2016 21:49:24 +0000
From: Zax <admin@mixmin.net>
References: <32257ffc4ab7202315e77bb918060784@anon.holland.remailer.nl> <1473633102.477373902.090225.dunno-dunno.dunno@news.mixmin.net> <1a0c07c7eb7f994ef78c415d1ed83b0c@remailer.privacy.at>
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
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Wed, 17 Feb 2016 21:49:24 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="b77420a199db340303d920c218a871a95c63db96";
User-Agent: slrn/pre1.0.3-6 (Linux)
Lines: 63