🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
8 messages
8 total messages Started by Cornelis Tromp Wed, 17 Feb 2016 02:27
Has Anyone Tried Snort on a Debian Server?
#280042
Author: Cornelis Tromp
Date: Wed, 17 Feb 2016 02:27
11 lines
1298 bytes
I don't see a Debian distribution on the company's website, but do 
see all the other Linux flavors. Anyone know why there is no Debian 
distribution available?

https://www.snort.org/

I'm on the lookout for a tool that I can run on my Debian Server 
that will let me know what ports have been scanned within a 
specific time range. If I see specific ports being probed, then I 
can setup specific rules to block access by using iptables for 
fail2ban rules.
Re: Has Anyone Tried Snort on a Debian Server?
#280043
Author: dunno
Date: Wed, 17 Feb 2016 03:53
17 lines
1657 bytes
Cornelis Tromp <nobody@holland.remailer.nl> wrote:
> I don't see a Debian distribution on the company's website, but do 
> see all the other Linux flavors. Anyone know why there is no Debian 
> distribution available?
> 
> https://www.snort.org/
> 
> I'm on the lookout for a tool that I can run on my Debian Server 
> that will let me know what ports have been scanned within a 
> specific time range. If I see specific ports being probed, then I 
> can setup specific rules to block access by using iptables for 
> fail2ban rules.

Why not just block everything except what you need?

-- 
dunno
Re: Has Anyone Tried Snort on a Debian Server?
#280046
Author: Anonymous
Date: Wed, 17 Feb 2016 04:04
21 lines
1527 bytes
On Wed, 17 Feb 2016 02:27:29 +0000 (UTC), Cornelis Tromp <nobody@holland.remailer.nl> wrote:

>I don't see a Debian distribution on the company's website, but do 
>see all the other Linux flavors. Anyone know why there is no Debian 
>distribution available?

Snort is available for debian.

user@omv:~$ apt-cache policy snort
snort:
  Installed: (none)
  Candidate: 2.9.2.2-3
  Version table:
     2.9.2.2-3 0
        500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages
user@omv:~$ 


Or:

https://packages.debian.org/search?keywords=snort
Re: Has Anyone Tried Snort on a Debian Server?
#280048
Author: Cornelis Tromp
Date: Wed, 17 Feb 2016 08:03
21 lines
1632 bytes
In article <1473633102.477373902.090225.dunno-
dunno.dunno@news.mixmin.net>
dunno <dunno@dunno.dunno> wrote:
>
> Cornelis Tromp <nobody@holland.remailer.nl> wrote:
> > I don't see a Debian distribution on the company's website, but do
> > see all the other Linux flavors. Anyone know why there is no Debian
> > distribution available?
> >
> > https://www.snort.org/
> >
> > I'm on the lookout for a tool that I can run on my Debian Server
> > that will let me know what ports have been scanned within a
> > specific time range. If I see specific ports being probed, then I
> > can setup specific rules to block access by using iptables for
> > fail2ban rules.
>
> Why not just block everything except what you need?

IAWTP.  Knowing that someone attempted to scan your host using a 
particular range of closed ports is useless data.
Re: Has Anyone Tried Snort on a Debian Server?
#280053
Author: Nathan Hale
Date: Wed, 17 Feb 2016 15:37
15 lines
1281 bytes
> I don't see a Debian distribution on the company's website, but do
> see all the other Linux flavors. Anyone know why there is no Debian
> distribution available?
> 
> https://www.snort.org/
> 
> I'm on the lookout for a tool that I can run on my Debian Server
> that will let me know what ports have been scanned within a
> specific time range. If I see specific ports being probed, then I
> can setup specific rules to block access by using iptables for
> fail2ban rules.

Stop Port Scans In Their Tracks With iptables

http://www.ossramblings.com/using_iptables_rate_limiting_to_prevent_portscans
Re: Has Anyone Tried Snort on a Debian Server?
#280069
Author: Anonymous Remailer (austria)
Date: Wed, 17 Feb 2016 21:25
41 lines
2326 bytes
On Wed, 17 Feb 2016 03:53:05 -0000 (UTC), you wrote:
>
> Cornelis Tromp <nobody@holland.remailer.nl> wrote:
> > I don't see a Debian distribution on the company's website, but do
> > see all the other Linux flavors. Anyone know why there is no Debian
> > distribution available?
> >
> > https://www.snort.org/
> >
> > I'm on the lookout for a tool that I can run on my Debian Server
> > that will let me know what ports have been scanned within a
> > specific time range. If I see specific ports being probed, then I
> > can setup specific rules to block access by using iptables for
> > fail2ban rules.
>
> Why not just block everything except what you need?
>
> --
> dunno

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

What is wrong with my iptables that has not shut down port 111?

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.
Re: Has Anyone Tried Snort on a Debian Server?
#280070
Author: 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
Re: Has Anyone Tried Snort on a Debian Server?
#280074
Author: 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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads