I have recently set up an ftp server in a jail. Everything works fine as long as my server's fw is off. I am unable to route the packets to the jail via my pf.conf. I have added an alias in my /etc/rc.conf to include for an ip mapped for the jail. Namely my rc.conf contains
My server's pf.conf contains:
My jail server's rc.conf contains:
Any help would be great. Thanks
Code:
ifconfig_vr0="192.168.0.101 netmask 255.255.255.0"
Code:
ifconfig_vr0_alias0="inet 192.168.0.102/32"
My server's pf.conf contains:
Code:
set skip on lo0
interface="vr0"
ftpJail="vr0_alias0"
scrub in all
block in on $interface
pass in on $interface proto tcp from any to $interface port 2222
pass in on $interface proto tcp from any to $interface port 80
pass in on $interface proto tcp from any to $interface port 6665
pass in on $ftpJail proto tcp from any to $ftpJail port 21
pass out on $ftpJail proto { tcp, udp, icmp } all
pass out on $interface proto { tcp, udp, icmp } all
My jail server's rc.conf contains:
Code:
ifconfig_vr0="192.168.0.102 netmask 255.255.255.0"
Any help would be great. Thanks