![]() |
|
|||||||
| OpenBSD Security Functionally paranoid! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
I'm having a bit of a trouble with my firewall, an attacker has been able to spoof my address and is attacking my lan computer. I have antispoof rules in my pf.conf but they have gotten around them. So I'm thinking if I can't stop them, at least I can limit them. I have stateful tracking options on ssh, and apache but the attacker is using an already established connection (like that created by a web browser [<my.ip.address>:54535]) and doing unicode point attacks. My stateful tracking options are such:
Code:
WAN_STO="(max 5, source-track rule, max-src-states 5, max-src-conn 10, max-src-nodes 10, max-src-conn-rate 5/30, overload <blockedip> flush global)" |
|
||||
|
What do you mean by "spoof my address"?
![]() Excerpted from http://openbsd.rt.fm/faq/pf/filter.html#antispoof Quote:
If you describe the attack, as you understand it, someone might be able to help you.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Appreciate the quick response jggimi. I've got the antispoof rules up like you suggested and have tried several other variants but I have yet to find one that will be able to antispoof an established connection. These spoofs are from connections established from the web browser. Someone has been able to get a hold of my ip and port of established web connections and inject attacks. An example:
Code:
(http_inspect) DOUBLE DECODING ATTACK 2009-02-27 07:59:07 192.168.xxx.yy:52493 208.43.92.218:80 Code:
antispoof log for { lo0 $WAN_NIC $LAN_NIC }
block out log quick on $WAN_NIC from ! $WAN_NIC to any
Last edited by gen2ly; 27th February 2009 at 01:41 PM. |
|
||||
|
If I understand what you've posted, there is an attack vector from your webserver on softlayer.com's network block, into your private network. Do I understand that correctly?
If so, I'm astonished you would bother to obfuscate an RFC 1918 address, but not redact the IP address of your hacked or misconfigured webserver. That would be the address to remove from a public forum. ![]() I don't necessarily understand why you are allowing the webserver to have unrestricted access to your private LAN. You should be able to limit it's access to necessary back end systems, such as DB servers, and limit it to specific ports, as well. State table management will not help you at all with existing states, as you've discovered. Nor will antispoofing, since there is no address spoofing, there is an attack coming from your webserver. If I understand your problem, of course. Best practice is to place Internet-facing servers in a DMZ between two firewalls. Forgive this ASCII diagram: {internet} [FW1] -- Webservers, etc -- [FW2] -- {private network} This allows for a fairly open set of rules for FW1, and a very restrictive set of rules for FW2. Access to the private network from the DMZ can be limited to necessary and valid connections from the DMZ servers -- such as a backend database -- which may eliminate the DMZ as a general attack vector into a private network, in the event of a misconfigured webserver, administrator ignorance, or other problems that enable an attack.
__________________
OpenBSD LiveCDs/LiveDVDs Last edited by jggimi; 27th February 2009 at 02:14 PM. Reason: clarity |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| track current kernel | itti | NetBSD Installation and Upgrading | 8 | 11th December 2008 05:09 PM |
| Serial connections | JMJ_coder | General software and network | 9 | 25th July 2008 03:28 PM |
| Problems with multiple ISP connections | ebzzry | FreeBSD General | 2 | 1st July 2008 11:32 PM |
| More tcp connections | tad1214 | FreeBSD General | 8 | 5th June 2008 03:05 PM |
| OpenVPN - Problem with connections | MME | General software and network | 2 | 26th May 2008 06:42 PM |