Compare commits
4 Commits
support_lo
...
setup_vnet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd60e7f175 | ||
|
|
32d67aea40 | ||
|
|
b30a7484bb | ||
|
|
86cb374732 |
@@ -474,9 +474,9 @@ if [ -n "${OPTION}" ] && [ "${OPTION}" != "${HW_MACHINE}" ] && [ "${OPTION}" !=
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## allow override bootstrap URLs via environment variables
|
## allow override bootstrap URLs via environment variables
|
||||||
[ -n ${BASTILLE_URL_FREEBSD} ] && bastille_url_freebsd="${BASTILLE_URL_FREEBSD}"
|
[ -n "${BASTILLE_URL_FREEBSD}" ] && bastille_url_freebsd="${BASTILLE_URL_FREEBSD}"
|
||||||
[ -n ${BASTILLE_URL_HARDENEDBSD} ] && bastille_url_hardenedbsd="${BASTILLE_URL_HARDENEDBSD}"
|
[ -n "${BASTILLE_URL_HARDENEDBSD}" ] && bastille_url_hardenedbsd="${BASTILLE_URL_HARDENEDBSD}"
|
||||||
[ -n ${BASTILLE_URL_MIDNIGHTBSD} ] && bastille_url_midnightbsd="${BASTILLE_URL_MIDNIGHTBSD}"
|
[ -n "${BASTILLE_URL_MIDNIGHTBSD}" ] && bastille_url_midnightbsd="${BASTILLE_URL_MIDNIGHTBSD}"
|
||||||
|
|
||||||
## Filter sane release names
|
## Filter sane release names
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
|||||||
@@ -57,6 +57,19 @@ configure_vnet() {
|
|||||||
|
|
||||||
info "Bringing up new interface: bastille1"
|
info "Bringing up new interface: bastille1"
|
||||||
service netif cloneup
|
service netif cloneup
|
||||||
|
|
||||||
|
if [ ! -f /etc/devfs.rules ]; then
|
||||||
|
info "Creating bastille_vnet devfs.rules"
|
||||||
|
cat << EOF > /etc/devfs.rules
|
||||||
|
[bastille_vnet=13]
|
||||||
|
add include \$devfsrules_hide_all
|
||||||
|
add include \$devfsrules_unhide_basic
|
||||||
|
add include \$devfsrules_unhide_login
|
||||||
|
add include \$devfsrules_jail
|
||||||
|
add include \$devfsrules_jail_vnet
|
||||||
|
add path 'bpf*' unhide
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Configure pf firewall
|
# Configure pf firewall
|
||||||
|
|||||||
Reference in New Issue
Block a user