Advanced Policy Firewall localhost forwarding
Posted on 2013-06-24
I am semi-familiar with advanced policy firewall (APF) routing chains, however I am having issues writing a rule to forward port localhost:139 to 10.0.0.1:139
I'm not sure where to put it. In the preroute, or postroute file?
I basically want something like:
$IPT -t nat [output?] -p tcp --dport 139 -d 127.0.0.1 -j DNAT --to-destination 10.0.0.1:139