mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
firewall: add firewall bridge IP for UI access
when firewall switched to bridge mode, we want to have WebUI access to manage the firewall, allow user setup IP address on the firewall bridge interface through the UI. Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -456,6 +456,8 @@ iptables_init() {
|
||||
ip link set $RED_DEV master $FWBRIDGE
|
||||
ip link set $GREEN_DEV master $FWBRIDGE
|
||||
ip link set $FWBRIDGE up
|
||||
ip a add $FWBRIDGEIP/$FWBRIDGEMASK dev $FWBRIDGE
|
||||
iptables -t filter -A GUIINPUT -i $FWBRIDGE -p tcp -m tcp --dport 444 -j ACCEPT
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user