Skip to contentSkip to conversation

port scan identification

DISCUSSION Rakotomandimby Mihamina 2 participants 2 messages Jun 8, 2004 – Jun 10, 2004

lore
Share & tools
lore
#0 lore raw

Hello

I try to set correctly up my firewall ans would need your help on one thing :

I have this rule :
[...]
iptables -A INPUT -p tcp --tcp-flags SYN,ACK,FIN,RST RST \
-j LOG --log-level debug --log-prefix 'p_scan_: ' [...]

and i see this when i tail the output file :

[...]

Jun  8 22:52:32 milina kernel: p_scan_: IN=ppp0 OUT= MAC= SRC=81.220.171.201 DST=81.248.95.56 LEN=40 TOS=0x00 PREC=0x00 TTL=54 ID=45424 PROTO=TCP SPT=4391 DPT=80 WINDOW=0 RES=0x00 RST URGP=0

[...]

Well . According to me, a port scan is the action to scan _all_ the ports ... why is the port scan identified as only scaning the 80th port ? I mean, a port scan should not be on one port only ... isn't it ?

Signature · 3 lines
Rakotomandimby Mihamina Andrianifaharana
Tel : +33 2 38 76 43 65
http://stko.dyndns.info/site_principal/Members/mihamina
#1 lore raw
Quoted 7 lines · Rakotomandimby Mihamina

I have this rule :

iptables -A INPUT -p tcp --tcp-flags SYN,ACK,FIN,RST RST \
-j LOG --log-level debug --log-prefix 'p_scan_: '

and i see this when i tail the output file :

Quoted 7 lines
Jun  8 22:52:32 milina kernel: p_scan_: IN=ppp0 OUT= MAC=

SRC=81.220.171.201 DST=81.248.95.56 LEN=40 TOS=0x00 PREC=0x00 TTL=54 ID=45424 PROTO=TCP SPT=4391 DPT=80 WINDOW=0 RES=0x00 RST URGP=0

Well . According to me, a port scan is the action to scan _all_ the ports ... why is the port scan identified as only scaning the 80th port ? I mean, a port scan should not be on one port only ... isn't it ?

A packet can only be sent to one address and one port. You cannot send a
single packet to multiple ports. Therefore what is commonly called a "port
scan" is a series of packets, each addressed to a different port, which between them result in lots of ports being scanned.

You are seeing someone sending a packet to port 80. Maybe they'll send one
to port 110 tomorrow, or next week, or five seconds later, or whenever they feel like it....

Regards,

Antony.

Signature · 6 lines
Microsoft may sell more software than any other company, but McDonald's sell 
more burgers than any other company, and I think the other similarities are 
obvious...

                                                     Please reply to the list;
                                                           please don't CC me.