> > Can you pls provide a CLI usage example of how to call /execute the 
> > "init_ipsets4" that's defined in lib.private?
> >
> /var/lib/shorewall-lite/firewall call foo

fails on exec, 

/var/lib/shorewall-lite/firewall call init_ipsets4
        Usage: /var/lib/shorewall-lite/firewall [ options ] <command>

        <command> is one of:
           start
           stop
           clear
           disable <interface>
           down <interface>
           enable <interface>
           reset
           reenable <interface>
           refresh
           restart
           run <command> [ <parameter> ... ]
           status
           up <interface>
           savesets <file>
           version

        Options are:

           -v and -q        Standard Shorewall verbosity controls
           -n               Don't update routing configuration
           -p               Purge Conntrack Table
           -t               Timestamp progress Messages
           -c               Save/restore iptables counters
           -V <verbosity>   Set verbosity explicitly
           -R <file>        Override RESTOREFILE setting

sh -x /var/lib/shorewall-lite/firewall call load_ipsets4_INT
        + LEFTSHIFT='<<'
        + g_debug_iptables=
        + '[' 2 -gt 1 ']'
        + '[' xcall = xtrace ']'
        + '[' xcall = xdebug ']'
        + '[' -z '' ']'
        + '[' -n '' ']'
        + g_purge=
        + g_noroutes=
        + g_timestamp=
        + g_recovering=
        + g_sha1sum1=sha-lh-73145d05f5a28ed02482
        + g_sha1sum2=sha-rh-3f5cb9070190a2e81061
        + g_counters=
        + initialize
        + umask 077
        + g_family=4
        + g_confdir=/etc/shorewall-lite
        + g_product='Shorewall Lite'
        + g_program=shorewall-lite
        + g_basedir=/usr/share/shorewall-lite
        + CONFIG_PATH=/etc/shorewall-lite:/usr/share/shorewall-lite
        + '[' -f /etc/shorewall-lite/vardir ']'
        + '[' -n /var/lib/shorewall-lite ']'
        + '[' -n /var/lib ']'
        + TEMPFILE=
        + DISABLE_IPV6=
        + MODULESDIR=
        + MODULE_SUFFIX=ko
        + LOAD_HELPERS_ONLY=
        + LOCKFILE=
        + SUBSYSLOCK=/var/lock/subsys/shorewall
        + LOG_VERBOSITY=2
        + '[' -n restart ']'
        + '[' -n 0 ']'
        + '[' -n restore ']'
        + SHOREWALL_VERSION=4.6.9
        + PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
        + TERMINATOR=fatal_error
        + DONT_LOAD=
        + STARTUP_LOG=/var/log/shorewall/shorewall-lite-init.log
        + IPTABLES=/usr/sbin/iptables
        + '[' -x /usr/sbin/iptables ']'
        + IP6TABLES=/usr/sbin/ip6tables
        + IPTABLES_RESTORE=/usr/sbin/iptables-restore
        + '[' -x /usr/sbin/iptables-restore ']'
        + g_tool=/usr/sbin/iptables
        + IP=/sbin/ip
        + '[' -x /sbin/ip ']'
        + TC=/usr/sbin/tc
        + '[' -x /usr/sbin/tc ']'
        + IPSET=/usr/sbin/ipset
        + '[' -x /usr/sbin/ipset ']'
        + IDS_LOGLVL=
        + LESS='-i -N -w  -z-4 -g -e -M -X -F -R -P%t?f%f \\
            :stdin .?pb%pb\\%:?lbLine %lb:?bbByte %bb:-...'
        + OLDPWD=
        + SHLVL=6
        + SITE_RSYNC_OPTS='
            
--human-readable--recursive--links--perms--times--compress--delete-after--delete-excluded'
        + g_stopping=
        + '[' -d /var/lib/shorewall-lite ']'
        + '[' -n /var/log/shorewall/shorewall-lite-init.log ']'
        + touch /var/log/shorewall/shorewall-lite-init.log
        + chmod 0600 /var/log/shorewall/shorewall-lite-init.log
        + '[' 0 -eq 1 ']'
        + finished=0
        + '[' 0 -eq 0 -a 2 -gt 0 ']'
        + option=call
        + case $option in
        + finished=1
        + '[' 1 -eq 0 -a 2 -gt 0 ']'
        + COMMAND=call
        + case "$COMMAND" in
        + usage 2
        + echo 'Usage: /var/lib/shorewall-lite/firewall [ options ] <command>'
        Usage: /var/lib/shorewall-lite/firewall [ options ] <command>
        + echo

        + echo '<command> is one of:'
        <command> is one of:
        + echo '   start'
           start
        + echo '   stop'
           stop
        + echo '   clear'
           clear
        + echo '   disable <interface>'
           disable <interface>
        + echo '   down <interface>'
           down <interface>
        + echo '   enable <interface>'
           enable <interface>
        + echo '   reset'
           reset
        + echo '   reenable <interface>'
           reenable <interface>
        + echo '   refresh'
           refresh
        + echo '   restart'
           restart
        + echo '   run <command> [ <parameter> ... ]'
           run <command> [ <parameter> ... ]
        + echo '   status'
           status
        + echo '   up <interface>'
           up <interface>
        + echo '   savesets <file>'
           savesets <file>
        + echo '   version'
           version
        + echo

        + echo 'Options are:'
        Options are:
        + echo

        + echo '   -v and -q        Standard Shorewall verbosity controls'
           -v and -q        Standard Shorewall verbosity controls
        + echo '   -n               Don'\''t update routing configuration'
           -n               Don't update routing configuration
        + echo '   -p               Purge Conntrack Table'
           -p               Purge Conntrack Table
        + echo '   -t               Timestamp progress Messages'
           -t               Timestamp progress Messages
        + echo '   -c               Save/restore iptables counters'
           -c               Save/restore iptables counters
        + echo '   -V <verbosity>   Set verbosity explicitly'
           -V <verbosity>   Set verbosity explicitly
        + echo '   -R <file>        Override RESTOREFILE setting'
           -R <file>        Override RESTOREFILE setting
        + exit 2

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to