Bridging with PF and rdomains on OpenBSD 6.2-current
I've been alternating between two configurations on a router and am now trying to set them up to run concurrently but in different rdomains so as to have two different LANs on the same machine using the different Ethernet ports.
So on each LAN I have physical Ethernet ports. Here is that part of one LAN: Code:
# cat /etc/hostname.vr[123] I also have a virtual Ethernet interface for that LAN on which to hang an IP address: Code:
# cat /etc/hostname.vether0 Code:
# cat /etc/hostname.bridge0 Code:
# route -T2 exec tcpdump -nqpli vr3 Code:
# route -T2 exec tcpdump -nqpli vether0 |
|
Thanks. That's a bit different arrangement than I have. For me, vether0 is already inside bridge0. So pair(4) can't be used (I think):
Code:
.-----------------.-----------. .-----------------.-----------. |
I don't know enough about routing domains to provide any further recommendations. If no one else steps in, consider posting to the misc@ mailing list.
|
I'll need to improve my knowledge of logging with PF, going beyond the FAQ and Book of PF, but that is where I am looking right now and have made some progress. I have fairly simply rules and am still having to tweak them to work with the new setup.
|
Ok. I'm about to call this solved. I have one question about passing UDP packets to/from the bootps/bootpc ports.
I had to update pf.conf in three places. Here are the working values: Code:
. . . Can or should that be tightened down at all? |
I've never tried to "tighten" DHCP addresses, primarily because the protocol uses broad addresses, and I'm either using a portable device (where attaching subnets vary) or I'm using it on trusted networks.
If you want to restrict to permitted subnets and to 0.0.0.0 and 255.255.255.255, you could certainly give it a try. https://en.wikipedia.org/wiki/Dynami...ation_Protocol |
It's possible to pass an interface (without an address) or an rdomain in PF, but it looks like not both. Specifically, these two cannot be combined in the same rule:
Code:
pass in on rdomain 2 So, I'm going to call this one solved. Everything else is otherwise working. |
All times are GMT -5. The time now is 10:49 AM. |