Untitled
public text v1 · immutableext_if="xl0"
#int_if="int0"
port_www="8080"
port_ssh_pf="2222"
port_ssh_www="8022"
ip_www="10.0.0.9"
#block in all
#scrub in
nat on $ext_if from !($ext_if) -> ($ext_if:0)
rdr pass on $ext_if proto tcp to port $port_ssh_www -> $ip_www
rdr pass on $ext_if proto tcp to port $port_www -> $ip_www
pass in log on $ext_if proto tcp to ($ext_if) port $port_ssh_pf
#this my pf.conf and rdr(forwarding) not function...why?!
#pass too, nothing.