mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-25 07:38:57 +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',
|
' COMMAND=restart',
|
||||||
' detect_configuration',
|
' detect_configuration',
|
||||||
' define_firewall',
|
' define_firewall',
|
||||||
|
' elif [ "$state" = stopped ]; then',
|
||||||
|
' COMMAND=start',
|
||||||
|
' detect_configuration',
|
||||||
|
' define_firewall',
|
||||||
' fi',
|
' fi',
|
||||||
' ;;',
|
' ;;',
|
||||||
);
|
);
|
||||||
|
@ -318,10 +318,11 @@ None.
|
|||||||
The following actions occur when an interface comes up:
|
The following actions occur when an interface comes up:
|
||||||
|
|
||||||
FIREWALL INTERFACE ACTION
|
FIREWALL INTERFACE ACTION
|
||||||
STATE REQUIRED?
|
STATE
|
||||||
----------------------------------
|
----------------------------------
|
||||||
Any Yes start
|
Any Required start
|
||||||
started No restart
|
stopped Optional start
|
||||||
|
started - restart
|
||||||
|
|
||||||
The following actions occur when an interface goes down:
|
The following actions occur when an interface goes down:
|
||||||
|
|
||||||
@ -329,10 +330,11 @@ None.
|
|||||||
optional
|
optional
|
||||||
|
|
||||||
FIREWALL INTERFACE ACTION
|
FIREWALL INTERFACE ACTION
|
||||||
STATE REQUIRED?
|
STATE
|
||||||
----------------------------------
|
----------------------------------
|
||||||
Any Yes stop
|
Any Required stop
|
||||||
started No restart
|
stopped Optional start
|
||||||
|
started - restart
|
||||||
|
|
||||||
For optional interfaces, the /var/lib/<product>/<interface>.state
|
For optional interfaces, the /var/lib/<product>/<interface>.state
|
||||||
files are maintained to reflect the state of the interface.
|
files are maintained to reflect the state of the interface.
|
||||||
|
Loading…
Reference in New Issue
Block a user