Hello,
please can me point how can I get external net from jail?
I wish to do it via pf.
Setuation 1
I have a server with external ip on rl0, and have an alias for rl0 10.10.10.1 for jail.
internet<-->[rl0=external_ip, rl0_alias_jail=10.10.10.1]<-->jail
how can I go out to inet from jail (all ports)
/etc/rc.conf fragment
/etc/pf.conf
Setuation 2
I have a server behind a router.
internet<-->[router ip=192.168.0.100]<-->[fxp0=192.168.0.1, fxp0_alias_for_jail=10.10.10.1]<-->jail(ip=10.10.10.1)
May anybody post me what correct /etc/pf.conf should be?
please can me point how can I get external net from jail?
I wish to do it via pf.
Setuation 1
I have a server with external ip on rl0, and have an alias for rl0 10.10.10.1 for jail.
internet<-->[rl0=external_ip, rl0_alias_jail=10.10.10.1]<-->jail
how can I go out to inet from jail (all ports)
/etc/rc.conf fragment
Code:
defaultrouter="213.27.0.1"
ifconfig_rl0="inet 213.27.0.8 netmask 255.255.255.0"
ifconfig_rl0_alias0="inet 10.10.10.1 netmask 255.255.255.255"
gateway_enable="YES"
pf_enable="YES"
jail_DEC_ip="10.10.10.1"
/etc/pf.conf
Code:
my_jail="10.10.10.1"
if="rl0"
if_ip=213.27.0.1
lo="rl0"
nat on $if from $lo to any -> $if
Setuation 2
I have a server behind a router.
internet<-->[router ip=192.168.0.100]<-->[fxp0=192.168.0.1, fxp0_alias_for_jail=10.10.10.1]<-->jail(ip=10.10.10.1)
May anybody post me what correct /etc/pf.conf should be?