sossego
Retired from the forums
The rc.conf file:
The jail_quick_start script:
The pf.conf setup:
The problem: the jail is not properly created. The path is not recognized.
Questions:
Code:
hostname="nunca-conhecado"
sshd_enable="YES"
moused_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
jail_enable="YES"
jail_list="bsdevel"
The jail_quick_start script:
Code:
#!/bin/sh
ifconfig lo1 create && ifconfig lo1 127.1.2.7/32 alias && jail -c /jails/FreeBSD-Google_projects mount.devfs host.hostname=weeby ip4.addr=127.1.2.7 command=/bin/sh
The pf.conf setup:
Code:
ext_if="wlan0"
jail_if="lo1"
IP_JAIL_WWW="127.1.2.7"
NET_JAIL="127.1.2.7/32"
PORT_WWW="{80}"
scrub in all
# nat all jail traffic
nat pass on $ext_if from $NET_JAIL to any -> $IP_PUB
# WWW
rdr pass on $ext_if proto tcp from any to $IP_PUB port $PORT_WWW -> $IP_JAIL_WWW
# demo only, passing all traffic
pass out
pass in
The problem: the jail is not properly created. The path is not recognized.
Questions:
- How do I create the jail ID? I do not know how to do such nor am I finding any reference in any tutorial or within the man page on properly doing this.
- Do I use a jail.conf reference within my jail_quick_start script or not? I need feedback. Is anyone willing to test the script and tell me the results from their machine?