Solved Error: bastille0 interface does not exist.

Dear All,

I would like to use Bastille on my workstation and I followed the quick guide but I could't get the interfaces working properly.


I believe I followed the guide step by step and I can't figure out where is the pebcak... 🤦‍♂️

rc.conf
Code:
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="dbsd"
ifconfig_alc0="DHCP"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
##
ntpd_sync_on_start=YES
##
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"

##
dbus_enable="YES"
kld_list="nvidia nvidia-modeset fusefs"
lightdm_enable="YES"
cupsd_enable="YES"
devfs_system_ruleset="system"
avahi_daemon_enable="YES"
dsbmd_enable="YES"
#wlans_iwm0="wlan0"
#ifconfig_wlan0="WPA DHCP"
saned_enable="YES"

# Bastille BSD
bastille_enable="YES"
cloned_interface="lo1"
ifconfig_lo1_name="bastille0"
pf_enable="YES"

I repeated the commands again (actually several times 😅)

Code:
service netif cloneup
service pf restart
ifconfig
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=c319a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
    ether 80:fa:5b:28:36:69
    inet 10.0.0.108 netmask 0xffffff00 broadcast 10.0.0.255
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    inet 127.0.0.1 netmask 0xff000000
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

But the new interfaces weren't created at all, and as a matter of fact:
Code:
doas bastille create sp 13.2-RELEASE 192.168.0.10/24
Valid: (192.168.0.10/24).

Creating a thinjail...

Error: bastille0 interface does not exist.
[sp]: Not started. See 'bastille start sp'.
[sp]: Not started. See 'bastille start sp'.
Error: bastille0 interface does not exist

My FreeBSD: 13.2-RELEASE-p5

Thanks! 🙏
 
This time I copied and pasted the commands and the jail was created without issues... 🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️

Code:
ifconfig                                                                           1.29s 13:47
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=c319a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
    ether 80:fa:5b:28:36:69
    inet 10.0.0.108 netmask 0xffffff00 broadcast 10.0.0.255
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    inet 127.0.0.1 netmask 0xff000000
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bastille0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 fe80::1%bastille0 prefixlen 64 scopeid 0x3
    inet 192.168.0.10 netmask 0xffffff00
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
 
Back
Top