LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-15-2018, 08:53 PM   #1
k.um
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Rep: Reputation: 0
Snort-other ports are caught.


I use Snort with NFQ in Slackware14.1.

And firewall file is
Code:
iptables -A OUTPUT -p tcp   --sport 3389 -s 192.168.1.1 -j DROP
iptables -A INPUT -p tcp --dport 3389 -d 192.168.1.1  -j DROP
iptables -A OUTPUT -p udp   --sport 3389 -s 192.168.1.1 -j DROP
iptables -A INPUT -p udp --dport 3389 -d 192.168.1.1  -j DROP

iptables -A OUTPUT -p tcp   --dport 3389 -s 192.168.1.1 -j DROP
iptables -A INPUT -p tcp --sport 3389  -d 192.168.1.1  -j DROP
iptables -A OUTPUT -p udp   --dport 3389 -s 192.168.1.1 -j DROP
iptables -A INPUT -p udp --sport 3389  -d 192.168.1.1  -j DROP

    .
    .

iptables -A INPUT -p tcp --sport 80 -m state -j NFQUEUE --queue-num 0
     .
and one in local.rules is
Code:
drop ip any any -> $HOME_NET 3389 (msg:"drop win-rdp"; sid:1000040; rev:1;)
Then At accessing to Web.http, alert file of snort shows
Code:
[**] [1:1000040:1] 

drop win-rdp [**]
[Priority: 0] 
05/16-08:31:48.208168 ***.***.***.***:80 -> my ipaddress:51586
TCP TTL:229 TOS:0x0 ID:0 IpLen:20 DgmLen:60 DF
***A**S* Seq: 0x8F463DDB  Ack: 0x44F9656C  Win: 0x68DF  TcpLen: 40
TCP Options (5) => MSS: 1414 SackOK TS: 9239319 657280 NOP WS: 8 

and so on
Why could Snort catch 3389 and where did 3389 come through ,

though I access to 80 port and even though Firewall prevents 3389?

Thanks.
 
  


Reply



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
Snort - Snort Report - mysql_pconnect() - errors mwx Linux - Software 1 02-10-2013 08:44 AM
1-snort Vs ntop-- 2- snort perfstat.exec PoleStar Linux - Newbie 1 09-06-2010 01:52 PM
[HELP]SNORT PROBLEMS(IDS)-service snort start JayCool Linux - Software 5 03-15-2009 12:34 PM
Snort - no portscan and tcp alerts in snort av.dubey Linux - Software 6 07-11-2008 09:56 PM
im not unning any servers, but i do have open ports.. is snort usefull ? qwijibow Linux - Security 0 10-24-2004 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:29 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