Using pf to redirect traffic from a jail

tomrapier tomrapier at mailvault.com
Sat Sep 13 00:19:41 UTC 2008


On 13-Sep-2008 00:30:50 +0200, you wrote:
> 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?
> 
> 

solved it myself. needed a route-to rule.


More information about the freebsd-jail mailing list