On 07/15/17 20:08, Edgar Pettijohn wrote: >> pass in on egress inet proto tcp from any to (egress) port { 80 443 } >> rdr-to 192.168.1.2 >> >> would redirect $ext_if port http, https to $int_if port http, https [---] > Looked through the manual again and it looks like I need to use a map. > The syntax is throwing me off however. Can anyone provide an example > that would be similar to the above pf example?
Is this what you're looking for: $ext_if = "re0" $ext_v4 = inet4(re0) # Map incoming port 10022 to .4.16's port 22 map $ext_if dynamic 192.168.4.16 port 22 <- $ext_v4 port 10022 .. ? -- Kind Regards, Jan Danielsson