Using pf to redirect traffic from a jail

tomrapier tomrapier at mailvault.com
Fri Sep 12 22:25:19 UTC 2008


Hello,

I'm having trouble redirecting traffic from a jail using pf. An example
rule is this:

  rdr on lo0 proto tcp from 10.24.0.1 to !10.24.0.1 -> 127.0.0.1 port
8080

The jail is assigned 10.24.0.1, which is an alias on the loopback
interface. nc -l 8080 is running on the host for testing. 

In the jail, running nc -vv 192.168.0.1 80 times out after a time, and
the listening nc doesn't pick up. 

What am I doing wrong?



More information about the freebsd-jail mailing list