
REGISTER TODAY!
LOPSA Training at OLFUNavigationEvents
Recent Updates |
Small PF revelationSubmitted by tdelporto on Tue, 2009-12-15 12:08.Networking
I use OpenBSD's packet filter, PF, and am in the middle of building a new router/firewall with a moderately complex ruleset. I generally code rulesets the same way I write shell scripts: adding small bits and testing. My basic ruleset was preventing routing, and the logs kept telling me that the routing packets were being blocked by a rule that I thought shouldn't. PF has a feature called "antispoof" that builds a set of rules that block packets that claim to originate from interfaces they shouldn't. The rule looks something like:
Now, 192.0.2.0/24 (example) is the network I should be getting RIP packets from, and there is an explicit rule that allows those packets in the ruleset. So, why are the packets being blocked?! Here's the part where I say aloud "Ohhhhhhhh!" and headdesk (from tcpdump):
The external interface is re0 on which I have tied multiple VLAN interfaces. The antispoof rule sees the packet come in on re0, and blocks, because it expects packets in that netblock only on vlan1. Trackback URL for this post:http://lopsa.org/trackback/1874
tdelporto's blog | add new comment | 639 reads
|
|||||||||||||||||||||||||||||||||||||||||||||||||