I'm trying to properly setup the firewall on my gateway (OpenBSD 4.7) using pf
to allow amule
(on 10.0.0.104
) to operate properly as discussed here:
Now I know pf
has changed a bit from OpenBSD 4.7 to 4.9 with some of the rules being rewritten and I believe the '->' symbol is no longer used with port forwarding. So my question is:
Which rule set do I use for pf
on OpenBSD 4.7 on the gateway? This:
# pass in on $int_if proto tcp from any to any port 4662 rdr-to 10.0.0.104
# pass in on $int_if proto udp from any to any port 4672 rdr-to 10.0.0.104
# pass in on $int_if proto udp from any to any port 4665 rdr-to 10.0.0.104
or this:
# rdr pass on egress proto tcp to port 4662 -> 10.0.0.104
# rdr pass on egress proto udp to port 4672 -> 10.0.0.104
# rdr pass on egress proto udp to port 4665 -> 10.0.0.104
The OBSD site has updated everything to reflect 4.9 now and no longer seems to have the old pf
stuff up there.