Port forwarding does not seem to work properly, incoming connections apparently are blocked.
Is there something wrong with my pf.conf?
# Performance limits
set limit states 200000
set limit src-nodes 200000
set limit frags 1000000
set limit tables 20000
set limit table-entries 40000000
set skip on lo
ext_if = "re0"
int_if = "em0"
# Add UPnP rules
#anchor miniupnpd
server = "192.168.1.250"
server_tcp = "{22, 8887, 9001, 9030}"
server_udp = "{8887, 9001, 9030}"
wwwserver = "192.168.1.99"
wwwserver_tcp = "{80, 443}"
wwwserver_udp = "{}"
x79 = "192.168.1.100"
x79_tcp = "{18887 }"
x79_udp = "{18887 }"
t420 = "192.168.1.251"
t420_tcp = "{9222 }"
t420_udp = "{9222 }"
## Bad syntax warnings.. ignore for the moment
#all_tcp = "{ $server_tcp $wwwserver_tcp $x79_tcp $t420_tcp }"
#all_udp = "{ $server_udp $wwwserver_udp $x79_udp $t420_udp }"
#pass out on $ext_if proto tcp to port $all_tcp
#pass out on $ext_if proto udp to port $all_udp
# Default rules
pass #to establish keep-state
block in on $ext_if
#pass in keep state
#pass out keep state
# Nat
pass out on $ext_if from $int_if:network to any nat-to ($ext_if)
pass in on $ext_if proto tcp from any to any port $server_tcp rdr-to $server
pass in on $ext_if proto udp from any to any port $server_udp rdr-to $server
pass in on $ext_if proto tcp from any to any port $wwwserver_tcp rdr-to $wwwserver
#pass in on $ext_if proto udp from any to any port $wwwserver_udp rdr-to $wwwserver
pass in on $ext_if proto tcp from any to any port $x79_tcp rdr-to $x79
pass in on $ext_if proto udp from any to any port $x79_udp rdr-to $x79
pass in on $ext_if proto tcp from any to any port $t420_tcp rdr-to $t420
pass in on $ext_if proto udp from any to any port $t420_udp rdr-to $t420
I found the solution. A rdr-to must be followed with ip and port like 'rdr-to $ip port $port'