Start firewall on up event for optional interface.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-05-18 20:29:03 -07:00
parent fd696fbee7
commit 4690075ed8
2 changed files with 12 additions and 6 deletions

View File

@ -1333,6 +1333,10 @@ sub compile_updown() {
' COMMAND=restart',
' detect_configuration',
' define_firewall',
' elif [ "$state" = stopped ]; then',
' COMMAND=start',
' detect_configuration',
' define_firewall',
' fi',
' ;;',
);

View File

@ -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.