mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 15:18:53 +01:00
Start firewall on up event for optional interface.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
fd696fbee7
commit
4690075ed8
@ -1333,6 +1333,10 @@ sub compile_updown() {
|
||||
' COMMAND=restart',
|
||||
' detect_configuration',
|
||||
' define_firewall',
|
||||
' elif [ "$state" = stopped ]; then',
|
||||
' COMMAND=start',
|
||||
' detect_configuration',
|
||||
' define_firewall',
|
||||
' fi',
|
||||
' ;;',
|
||||
);
|
||||
|
@ -318,10 +318,11 @@ None.
|
||||
The following actions occur when an interface comes up:
|
||||
|
||||
FIREWALL INTERFACE ACTION
|
||||
STATE REQUIRED?
|
||||
STATE
|
||||
----------------------------------
|
||||
Any Yes start
|
||||
started No restart
|
||||
Any Required start
|
||||
stopped Optional start
|
||||
started - restart
|
||||
|
||||
The following actions occur when an interface goes down:
|
||||
|
||||
@ -329,10 +330,11 @@ None.
|
||||
optional
|
||||
|
||||
FIREWALL INTERFACE ACTION
|
||||
STATE REQUIRED?
|
||||
STATE
|
||||
----------------------------------
|
||||
Any Yes stop
|
||||
started No restart
|
||||
Any Required stop
|
||||
stopped Optional start
|
||||
started - restart
|
||||
|
||||
For optional interfaces, the /var/lib/<product>/<interface>.state
|
||||
files are maintained to reflect the state of the interface.
|
||||
|
Loading…
Reference in New Issue
Block a user