mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-19 01:37:17 +01:00
see #2239 added var firewall_name to installer configlets that define commands installer runs on the machine to activate policy
This commit is contained in:
parent
88ad545d1d
commit
f3f08d170d
2
VERSION
2
VERSION
@ -7,7 +7,7 @@ FWB_MICRO_VERSION=0
|
||||
# build number is like "nano" version number. I am incrementing build
|
||||
# number during development cycle
|
||||
#
|
||||
BUILD_NUM="3501"
|
||||
BUILD_NUM="3502"
|
||||
|
||||
VERSION="$FWB_MAJOR_VERSION.$FWB_MINOR_VERSION.$FWB_MICRO_VERSION.$BUILD_NUM"
|
||||
|
||||
|
||||
@ -1,3 +1,13 @@
|
||||
2011-03-17 vadim <vadim@netcitadel.com>
|
||||
|
||||
* PIXImporter.cpp (newObjectGroupNetwork): see #2234 Added support
|
||||
for import of PIX/ASA "object-group" statements.
|
||||
|
||||
* FirewallInstaller.cpp (getActivationCmd): see #2239 Added
|
||||
variable "firewall_name" to configlets that define commands
|
||||
installer runs on the firewall to activate new policy (all
|
||||
platforms).
|
||||
|
||||
2011-03-16 vadim <vadim@netcitadel.com>
|
||||
|
||||
* Importer.cpp (prepareForDeduplication): fixed #1548 "Object
|
||||
|
||||
@ -719,6 +719,8 @@ QString FirewallInstaller::getActivationCmd()
|
||||
configlet.setVariable("with_rollback", false);
|
||||
configlet.setVariable("no_rollback", true);
|
||||
|
||||
configlet.setVariable("firewall_name", cnf->fwobj->getName());
|
||||
|
||||
configlet.setVariable("with_compression", cnf->compressScript);
|
||||
configlet.setVariable("no_compression", ! cnf->compressScript);
|
||||
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
##
|
||||
## We only use root to authenticate to Sveasoft firewall
|
||||
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
|
||||
{{if run}}
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
##
|
||||
## We only use root to authenticate to Sveasoft firewall
|
||||
|
||||
|
||||
@ -23,6 +23,8 @@
|
||||
## {{$rbtimeout}} -- rollback timeout (min)
|
||||
## {{$rbtimeout_sec}} -- rollback timeout (sec)
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
|
||||
{{if run}}
|
||||
|
||||
@ -21,6 +21,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
## See #1368 for the explanation of the need for the "sleep2; echo" commands
|
||||
##
|
||||
## Note: all commands should be on one line to avoid unnecessary linefeeds.
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
## See #1368 for the explanation of the need for the "sleep2; echo" commands
|
||||
|
||||
|
||||
|
||||
@ -16,6 +16,8 @@
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
## {{$rbtimeout_sec}} -- rollback timeout (sec)
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
{{if using_scp}}
|
||||
copy {{$fwdir}}{{$fwscript}} running-config
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
##
|
||||
## On IPCOP we use standard system script to reload firewall policy
|
||||
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
## On IPCOP we use standard system script to reload firewall policy
|
||||
|
||||
{{if run}}
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
## Note: all commands should be on one line to avoid unnecessary linefeeds.
|
||||
## These linefeeds are sent to the server side (to the firewall) and end up
|
||||
## on the input of sudo and other commands. This creates difficult to catch
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
|
||||
{{if run}}
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
## Note: all commands should be on one line to avoid unnecessary linefeeds.
|
||||
## These linefeeds are sent to the server side (to the firewall) and end up
|
||||
## on the input of sudo and other commands. This creates difficult to catch
|
||||
|
||||
@ -21,6 +21,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
|
||||
{{if run}}
|
||||
|
||||
@ -21,6 +21,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
## See #1368 for the explanation of the need for the "sleep2; echo" commands
|
||||
## On the other hand, since we use ssh keepalives in v4.0.2 and later, these
|
||||
## commands may not be necessary anymore.
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
## See #1368 for the explanation of the need for the "sleep2; echo" commands
|
||||
|
||||
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
##
|
||||
## We only use root to authenticate to OpenWRT firewall
|
||||
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
|
||||
echo '{{$fwbprompt}}';
|
||||
|
||||
@ -16,6 +16,8 @@
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
## {{$rbtimeout_sec}} -- rollback timeout (sec)
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
{{if using_scp}}
|
||||
copy /noconfirm {{$fwdir}}{{$fwscript}} running-config
|
||||
|
||||
@ -16,6 +16,8 @@
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
## {{$rbtimeout_sec}} -- rollback timeout (sec)
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
{{if using_scp}}
|
||||
copy {{$fwdir}}{{$fwscript}} running-config
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
##
|
||||
|
||||
{{if run}}
|
||||
|
||||
@ -15,6 +15,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
{{if run}}
|
||||
{{endif}}
|
||||
|
||||
@ -23,6 +23,8 @@
|
||||
## {{$rbtimeout}} -- rollback timeout (min)
|
||||
## {{$rbtimeout_sec}} -- rollback timeout (sec)
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
## Note: all commands should be on one line to avoid unnecessary linefeeds.
|
||||
## These linefeeds are sent to the server side (to the firewall) and end up
|
||||
## on the input of sudo and other commands. This creates difficult to catch
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
|
||||
echo '{{$fwbprompt}}';
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
## {{$fwscript}} -- script name on the firewall
|
||||
## {{$rbtimeout}} -- rollback timeout
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
##
|
||||
## We only use root to authenticate to Sveasoft firewall
|
||||
|
||||
|
||||
@ -23,6 +23,8 @@
|
||||
## {{$rbtimeout}} -- rollback timeout (min)
|
||||
## {{$rbtimeout_sec}} -- rollback timeout (sec)
|
||||
##
|
||||
## {{$firewall_name}} -- the name of the firewall object
|
||||
##
|
||||
|
||||
|
||||
{{if run}}
|
||||
|
||||
@ -174,10 +174,13 @@ object service ip2
|
||||
object service icmp6-1
|
||||
service icmp6 neighbor-advertisement
|
||||
!
|
||||
! named object using unknown protocol name
|
||||
object service ip3
|
||||
service some_weird_protocol
|
||||
|
||||
! incomplete statement
|
||||
!
|
||||
object service ip3
|
||||
object service ip4
|
||||
|
||||
!
|
||||
object-group network outside.id178211X29963.osrc.net.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user