J65nko said:You can do this kind of thing with 'rdr' statement in a pf.conf(5) firewall rule set.
Redirections cannot reflect packets back through the interface they arrive on, they can only be redirected to hosts connected to different interfaces or to the firewall itself.
SirDice said:Just keep in mind that you cannot bounce traffic out the same interface it came in on.
rdr on $int_if proto tcp from $internal_addr to $self_addr port 80 -> 192.168.133.5 port 80
#pass area
Pass quick from any to 192.168.133.5
pass quick from 192.168.133.5 to any
nat on $int_if from 192.168.133.5 to any -> $int_if
<<same rdr>>
<<same pass>>