Astaro User Bulletin Board
Go Back   Astaro User Bulletin Board > Astaro Gateway Products > Network Security: Firewall, NAT, QoS, IPS and more

Welcome to the Astaro User Bulletin Board.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2010, 01:46 PM
Junior Member
 
Join Date: Oct 2009
Posts: 7
Default Incoming Source Port 80

Hi:

In the packet filter live log I see numerous "default drop" coming from various IP's with a source port (not destination) of tcp 80. I did some googling, and it seems that is some web pages trying to do things like load balancing, etc. Not sure if that's correct or not.

But - anyone else getting a lot of those default drops?

Second - is there a way to creat a packet filter based on a source port rather than a destination port? Or, do a forward for a certain source port and send it to a black hole?

Thanks !!
Reply With Quote
  #2 (permalink)  
Old 02-09-2010, 01:49 PM
Super Moderator
 
Join Date: Feb 2009
Location: In a galaxy far far away
Posts: 1,151
Default

What are you trying to achieve? (normally source ports are random.)
__________________

Running Astaro ASG virtual appliance | Home power user v8.0xx
Intel Dual Core 2.4GHz (800MHz) | 4GB (2 x 2GB) PC2-6400 800Mhz 5-5-5-18 | WD 160GB |3 x Intel Pro/1000
GPG Key Fingerprint: 2220 44E7 2E1A 5288 F81D 4B21 029F 8626 4A88 779E
Reply With Quote
  #3 (permalink)  
Old 02-09-2010, 04:43 PM
Junior Member
 
Join Date: Oct 2009
Posts: 7
Default

First, I'm trying to make sure this isn't some sort of attack.

Assuming it's not (it comes from multiple IP's), I just don't want it to be cluttering up the logs.

Yes, usually you would see a random source port and a destination of 80 for HTTP traffic. This is the opposite. Always a source port of 80 and random destination ports.

The destination IP is the external IP of the firewall (shown as X.X.X.X below).

11:40:52 Default DROP TCP 65.125.72.43 : 80
→ X.X.X.X: 46414
[RST] len=40 ttl=59 tos=0x00 srcmac=00:00:00:00:00:00 dstmac=00:1a:8c:17:1c:01


11:40:52 Default DROP TCP 208.43.57.101 : 80
→ X.X.X.X: 39128
[ACK] len=52 ttl=50 tos=0x00 srcmac=00:00:00:00:00:00 dstmac=00:1a:8c:17:1c:01


11:40:52 Default DROP TCP 208.43.57.101 : 80
→ X.X.X.X: 39128
[ACK] len=52 ttl=50 tos=0x00 srcmac=00:00:00:00:00:00 dstmac=00:1a:8c:17:1c:01


11:40:53 Default DROP TCP 208.43.57.101 : 80
→ X.X.X.X: 39128
[ACK] len=52 ttl=50 tos=0x00 srcmac=00:00:00:00:00:00 dstmac=00:1a:8c:17:1c:01


11:40:54 Default DROP TCP 208.43.57.101 : 80
→ X.X.X.X: 39128
[ACK] len=52 ttl=50 tos=0x00 srcmac=00:00:00:00:00:00 dstmac=00:1a:8c:17:1c:01


11:40:55 Default DROP TCP 64.94.107.14 : 80
→ X.X.X.X: 44912
[RST] len=40 ttl=51 tos=0x00 srcmac=00:00:00:00:00:00 dstmac=00:1a:8c:17:1c:01
Reply With Quote
  #4 (permalink)  
Old 02-09-2010, 09:35 PM
Wizard
 
Join Date: Feb 2002
Location: Massachusetts, USA
Posts: 878
Default

Yes, you should be able to create a packet filter rule to silently drop inbound traffic from port 80.

Create a new Service destination call it R_HTTP (Reverse HTTP)
and set the Source Port as 80 and the destination as 1:65535.
The normal HTTP definition is Source 1:65535, Destination: 80

Create a packet filter rule:
Source: Any
Service: R_HTTP
Destination: External Address
Action: Drop
Log Traffic: Unchecked

I'm not sure hot it will treat normal HTTP traffic, but try it out. ASG normally just drops this traffic as a part of IPTABLES since it isn't a part of reply to an outbound request.

Someone check my math here.
__________________
Thanks, JimmyM
ASG 8.000: Jetway J7F2WE1G Mini-ITX, 512MB RAM, AD3RTLANP, 40GB SATA
Reply With Quote
  #5 (permalink)  
Old 02-10-2010, 12:30 AM
Junior Member
 
Join Date: Oct 2009
Posts: 7
Default

Thanks.

Duh - right under my nose.

Created it like you said. Put it at the bottom of the packet filter stack.
No more source port 80 swamping the logs.
Tried outgoing http, and seems to be working fine, and incoming http to the one allowed server is also working.

Thanks!!
Reply With Quote
  #6 (permalink)  
Old 02-10-2010, 01:33 AM
Wizard
 
Join Date: Feb 2002
Location: Massachusetts, USA
Posts: 878
Default

Ah, Very good. Glad to help.
__________________
Thanks, JimmyM
ASG 8.000: Jetway J7F2WE1G Mini-ITX, 512MB RAM, AD3RTLANP, 40GB SATA
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:33 AM.

 

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


These pages are specifically maintained for the discussion of firewall issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases. issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases.