399
401
[ -f "$shorewallrc1" ] || fatal_error "Compiling for export requires a shorewallrc file"
404
if [ -n "$g_conditional" ] && uptodate $g_file; then
405
echo "$g_file is up to date -- no compilation required"
402
409
options="--verbose=$VERBOSITY --family=$g_family --config_path=$CONFIG_PATH --shorewallrc=${shorewallrc}"
403
410
[ -n "$shorewallrc1" ] && options="$options --shorewallrc1=${shorewallrc1}"
404
411
[ -n "$STARTUP_LOG" ] && options="$options --log=$STARTUP_LOG"
467
474
[ -n "$nolock" ] || mutex_off
469
progress_message3 "Compiling..."
471
476
if compiler $g_debugging $nolock compile ${VARDIR}/.start; then
472
477
run_postcompile ${VARDIR}/.start
473
478
[ -n "$nolock" ] || mutex_on
656
[ -n "$g_export" ] && file=firewall || file=${VARDIR}/firewall
665
[ -n "$g_export" ] && g_file=firewall || g_file=${VARDIR}/firewall
660
[ -d $file ] && fatal_error "$file is a directory"
669
[ -d $g_file ] && fatal_error "$g_file is a directory"
663
672
[ -n "$g_shorewalldir" -a -z "$g_export" ] && usage 2
673
682
g_shorewalldir=$(resolve_file $1)
681
[ "x$file" = x- ] || progress_message3 "Compiling..."
690
[ "x$g_file" = x- ] && g_doing=''
683
compiler $g_debugging compile $file && run_postcompile $file
692
compiler $g_debugging compile $g_file && run_postcompile $g_file
946
955
if [ -z "$g_fast" ]; then
947
progress_message3 "Compiling..."
949
956
if compiler $g_debugging $nolock compile ${VARDIR}/.restart; then
950
957
run_postcompile ${VARDIR}/.restart
951
958
[ -n "$nolock" ] || mutex_on
1037
1044
[ -n "$STARTUP_ENABLED" ] || fatal_error "Startup is disabled"
1039
progress_message3 "Compiling..."
1041
1046
if compiler $g_debugging $nolock compile ${VARDIR}/.refresh; then
1042
1047
run_postcompile ${VARDIR}/.refresh
1043
1048
[ -n "$nolock" ] || mutex_on
1577
1578
echo "where <command> is one of:"
1578
1579
echo " add <interface>[:<host-list>] ... <zone>"
1579
1580
echo " allow <address> ..."
1580
echo " check [ -e ] [ -r ] [ -p ] [ -r ] [ -T ] [ <directory> ]"
1581
echo " [ check | ck ] [ -e ] [ -r ] [ -p ] [ -r ] [ -T ] [ <directory> ]"
1582
echo " compile [ -e ] [ -p ] [ -t ] [ -d ] [ -T ] [ <directory name> ] [ <path name> ]"
1583
echo " [ compile | co ] [ -e ] [ -p ] [ -t ] [ -c ] [ -d ] [ -T ] [ <directory name> ] [ <path name> ]"
1583
1584
echo " delete <interface>[:<host-list>] ... <zone>"
1584
1585
echo " disable <interface>"
1585
1586
echo " drop <address> ..."
1622
1623
echo " safe-restart [ -t <timeout> ] [ <directory> ]"
1623
1624
echo " safe-start [ -t <timeout> ] [ <directory> ]"
1624
1625
echo " save [ <file name> ]"
1625
echo " show [ -x ] [ -t {filter|mangle|nat|raw|rawpost} ] [ {chain [<chain> [ <chain> ... ]"
1626
echo " show actions"
1627
echo " show [ -f ] capabilities"
1628
echo " show classifiers"
1630
echo " show connections"
1631
echo " show dynamic <zone>"
1632
echo " show filters"
1626
echo " [ show | list | ls ] [ -x ] [ -t {filter|mangle|nat|raw|rawpost} ] [ {chain [<chain> [ <chain> ... ]"
1627
echo " [ show | list | ls ] actions"
1628
echo " [ show | list | ls ] [ -f ] capabilities"
1629
echo " [ show | list | ls ] classifiers"
1630
echo " [ show | list | ls ] config"
1631
echo " [ show | list | ls ] connections"
1632
echo " [ show | list | ls ] dynamic <zone>"
1633
echo " [ show | list | ls ] filters"
1634
echo " [ show | list | ls ] ip"
1635
1636
if [ $g_family -eq 4 ]; then
1637
echo " [ show | list | ls ] ipa"
1639
echo " show [ -m ] log [<regex>]"
1640
echo " show macro <macro>"
1643
echo " show [ -x ] mangle|nat|raw|rawpost|routing"
1645
echo " show policies"
1646
echo " show routing"
1647
echo " show tc [ device ]"
1640
echo " [ show | list | ls ] [ -m ] log [<regex>]"
1641
echo " [ show | list | ls ] macro <macro>"
1642
echo " [ show | list | ls ] macros"
1643
echo " [ show | list | ls ] marks"
1644
echo " [ show | list | ls ] [ -x ] mangle|nat|raw|rawpost|routing"
1645
echo " [ show | list | ls ] nfacct"
1646
echo " [ show | list | ls ] policies"
1647
echo " [ show | list | ls ] routing"
1648
echo " [ show | list | ls ] tc [ device ]"
1649
echo " [ show | list | ls ] vardir"
1650
echo " [ show | list | ls ] zones"
1650
1651
echo " start [ -f ] [ -n ] [ -p ] [ -c ] [ -T ] [ <directory> ]"