I'm using FreeBSD + PF to act as a NAT gateway for a project. As part of this, I need to redirect packets meant for port 8080 to port 80 but keep the original destination address the same. So far I have the rule
rdr on $ext inet proto tcp from $localnet to any port 8080 -> xxx.xxx.xxx.xxx port 80
working for a specific IP address, but I want this to work for dynamically for any IP address. Is there anyway to do this using PF?