1
0
forked from brl/citadel
citadel/meta-citadel/recipes-citadel/citadel-config/files/citadel-network.rules
Bruce Leidl 5ff3c559a4 step one of reorganizing meta-citadel
recipes-citadel is for things other than recipes to package software
2018-03-27 18:38:34 -04:00

12 lines
534 B
Plaintext

#
# udev rule which matches all network interfaces except loopback and veth host devices created by systemd-nspawn.
# nspawn always names these interfaces with the prefix 'vb-' when they are created for a bridge-mode option.
#
# The citadel-ifconfig.sh script:
#
# 1) configures vz-clear bridge with a fixed IP address
# 2) enables ip masquerading on every interface
# 3) applies iptables filter rules on each external interface
#
ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo|vb-*", RUN+="/usr/libexec/citadel-ifconfig.sh $name"