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 06-06-2008, 11:48 AM
Junior Member
 
Join Date: Oct 2003
Location: Malmö, Sweden
Posts: 21
Default Blocking whole class B net not working

Hi all.

Astaro version 7.1 (last version before 7.2, we have not updated yet).

We have problems with a bot net that is originating at a high number on machines on a service in Holland.

I want to block the whole net 85.17.0.0, so i have made a network group called "blocklist" and put 85.17.0.0/255.255.0.0 as a member in the group.

The first line in my packet filter is to block "blocklist" - any - any, which according to my logic would effeciently block that whole subnet.

However traffic to that net is not blocked at all.

So i changed the "automatic packet filter configuration" for my DNAT to manual, and put the accept rule after the block rule.

Same result.

I alsy tried to block individual adresses with the same result.

What may be a clue is that the website i want to keep "clean" is on an additional ethernet adress on the primary internet interface.

So to keep the question short: Why the h*ll cant i block traffic to an web side on the inside of the firewall that has a external adress that is not the primary adress on the interface.

My astaro reseller was as baffled as me, however we have national day in sweden today, so the reseller is having the weekend off.

Anyone stumbled upon this before?
Reply With Quote
  #2 (permalink)  
Old 06-06-2008, 07:46 PM
Moderator
 
Join Date: Jul 2001
Location: southern California
Posts: 5,359
Default

Sounds like the rule should have the DESTINATION set, not the source.
Or, 2 rules, one for source, one for dest.

Barry
__________________
http://DealBert.net
Home & business end-user since v1.x
  • ASL 6.3x, HP DL145 Dual Opteron, 1GB RAM, 6 gigE NICs, 50-IP Platinum License
  • ASL 7.5x, HP DL360G5, Xeon 5160, 3GB, RAID, gigE NICs, 50-IP Platinum License
  • ASL 7.5x, 17-watt fanless mini-ITX system: MSI IM-945GSE-A Atom n270, 2GB RAM, Morex T3310 case. 2 Intel GigE, 3 VLANs. 80G 5200rpm 2.5" HD
    Netgear GS108T gigE VLAN switch & Linksys WRT54G WAP
    Total network infrastructure: 27 watts. 100-IP Home User. FiOS 10mb/2mb
Reply With Quote
  #3 (permalink)  
Old 06-06-2008, 10:33 PM
Junior Member
 
Join Date: Oct 2003
Location: Malmö, Sweden
Posts: 21
Default

Quote:
Originally Posted by BarryG View Post
Sounds like the rule should have the DESTINATION set, not the source.
Or, 2 rules, one for source, one for dest.
Hello Barry.

I dont really understand why the destination should be set.
If i have as my first filter rule any IP packet with the source from the block list should be dropped, it would not let that packet continue in to my webserver.

I will try to set a filter for the destination as well, just for good measure.

It just sounds a bit fishy to me, i never had problems with that type of filter before, however i never tried this on an additional adress on the external interface before.
Reply With Quote
  #4 (permalink)  
Old 06-07-2008, 01:30 PM
Senior Member
 
Join Date: Mar 2004
Posts: 102
Default

If Source any any drop
Put this as rule #1 (or close to the top)

This should block those IP's. Turn on logging and watch the live packet filter log to verify. Trun the log off afterwards if you want.

If it still does not work turn logging on a bunch of rules and filter for that IP so see if it blocking. Be sure to turn off the automatic packet filter rule. I am not a big fan of those
Reply With Quote
  #5 (permalink)  
Old 06-08-2008, 07:06 AM
Moderator
 
Join Date: Jul 2001
Location: southern California
Posts: 5,359
Default

Quote:
Originally Posted by ITMannen View Post
I dont really understand why the destination should be set.
I was assuming the traffic is coming from infected machines in your network, going to the the other network.

If not, then it's not necessary, but wouldn't hurt to also have this outgoing rule.

Are you under a DOS attack?
ICMP?

Generally, the PF rules for 'ALL' services don't affect ICMP.

Have you looked at the anti-flood/anti-DOS settings, and the ICMP settings?

Barry
__________________
http://DealBert.net
Home & business end-user since v1.x
  • ASL 6.3x, HP DL145 Dual Opteron, 1GB RAM, 6 gigE NICs, 50-IP Platinum License
  • ASL 7.5x, HP DL360G5, Xeon 5160, 3GB, RAID, gigE NICs, 50-IP Platinum License
  • ASL 7.5x, 17-watt fanless mini-ITX system: MSI IM-945GSE-A Atom n270, 2GB RAM, Morex T3310 case. 2 Intel GigE, 3 VLANs. 80G 5200rpm 2.5" HD
    Netgear GS108T gigE VLAN switch & Linksys WRT54G WAP
    Total network infrastructure: 27 watts. 100-IP Home User. FiOS 10mb/2mb

Last edited by BarryG; 06-08-2008 at 07:10 AM.
Reply With Quote
  #6 (permalink)  
Old 06-13-2008, 06:21 PM
Junior Member
 
Join Date: Oct 2003
Location: Malmö, Sweden
Posts: 21
Default

No, the attack is from outside to a webserver on the inside.
And it is not a DOS attack, they use a certain script to "reserve" all my merchandise so that it will be put "out of stock" for my proper customer.

I assume it is a business competitor trying to block our business, paying some hacker to do so.

Anyway, i will investigate it further, but it seems that when using additional adresses the rules dont apply. The same block on the main address works fine.
Reply With Quote
  #7 (permalink)  
Old 06-14-2008, 01:44 AM
Moderator
 
Join Date: Jul 2001
Location: southern California
Posts: 5,359
Default

Did you put the block PF rule above any ALLOW rules?

I have lots of networks, including ClassA and B's blocked in the PF, and it works fine.

Barry
__________________
http://DealBert.net
Home & business end-user since v1.x
  • ASL 6.3x, HP DL145 Dual Opteron, 1GB RAM, 6 gigE NICs, 50-IP Platinum License
  • ASL 7.5x, HP DL360G5, Xeon 5160, 3GB, RAID, gigE NICs, 50-IP Platinum License
  • ASL 7.5x, 17-watt fanless mini-ITX system: MSI IM-945GSE-A Atom n270, 2GB RAM, Morex T3310 case. 2 Intel GigE, 3 VLANs. 80G 5200rpm 2.5" HD
    Netgear GS108T gigE VLAN switch & Linksys WRT54G WAP
    Total network infrastructure: 27 watts. 100-IP Home User. FiOS 10mb/2mb
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 03:06 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.