lxc.net.1.flags = up
lxc.net.1.link = bonde-dev
+lxc.cgroup.devices.allow =
+lxc.cgroup.devices.deny =
+
lxc.autodev = 1
lxc.signal.halt = SIGRTMIN+4
REAL_PATH=$(realpath $(dirname $0))
-nft list ruleset
nft list ruleset | grep ^table | sed 's/ {$//' | while read TABLE_SPEC
do
nft flush $TABLE_SPEC
nft --echo --file $REAL_PATH/nftables.config
nft list ruleset >/etc/nftables/efg.nft
+nft list ruleset
systemctl enable nftables.service
lxc.net.0.type = veth
lxc.net.0.flags = up
lxc.net.0.link = bri-dev
+lxc.net.0.name = eth0
lxc.net.0.hwaddr = 02:0c:18:03:6d:fe
lxc.net.1.type = veth
lxc.net.1.flags = up
lxc.net.1.link = brh-dev
+lxc.net.1.name = eth1
lxc.net.1.hwaddr = 02:0c:18:03:ad:01
+lxc.cgroup.devices.allow =
+lxc.cgroup.devices.deny =
+
lxc.autodev = 1
lxc.signal.halt = SIGRTMIN+4
CONNECTIONS=$(nmcli --terse connection show | wc -l)
done
-INTERNAL_DEVICE=ifg
-PM_DEVICE=eth0
+INTERNAL_DEVICE=eth0
+PM_DEVICE=eth1
nmcli connection add \
connection.autoconnect yes \
REAL_PATH=$(realpath $(dirname $0))
-nft list ruleset
nft list ruleset | grep ^table | sed 's/ {$//' | while read TABLE_SPEC
do
nft flush $TABLE_SPEC
nft --echo --file $REAL_PATH/nftables.config
nft list ruleset >/etc/nftables/ifg.nft
+nft list ruleset
systemctl enable nftables.service