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', ' COMMAND=restart',
' detect_configuration', ' detect_configuration',
' define_firewall', ' define_firewall',
' elif [ "$state" = stopped ]; then',
' COMMAND=start',
' detect_configuration',
' define_firewall',
' fi', ' fi',
' ;;', ' ;;',
); );

View File

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