# Loopback interface
auto lo
iface lo inet loopback

# Main uplink interface (detected by install.sh)
auto __UPLINK_INTERFACE__
iface __UPLINK_INTERFACE__ inet dhcp

# Internal bridge for nested honeypot
auto potbr
iface potbr inet static
    address 192.168.100.1
    netmask 255.255.255.0
    bridge_ports none
    bridge_stp off
    bridge_fd 0

# TAP interface to be created manually and added to potbr
auto tap0
iface tap0 inet manual
    pre-up [ -d /sys/class/net/tap0 ] || ip tuntap add dev tap0 mode tap user __CONTROLLER_USER__
    pre-up ip link set tap0 up
    post-up ip link set tap0 master potbr
    down ip link set tap0 down
    post-down ip link delete tap0 mode tap
