done
(exit ${failed})
evaluate_retval
-
- boot_mesg "Setting up firewall"
- /etc/rc.d/init.d/firewall start; evaluate_retval
-
-# boot_mesg "Setting up traffic accounting"
-# /etc/rc.d/helper/writeipac.pl || failed=1
-# /usr/sbin/fetchipac -S || failed=1
-# (exit ${failed})
-# evaluate_retval
- boot_mesg "Setting up DMZ pinholes"
- /usr/local/bin/setdmzholes; evaluate_retval
+ # Enable netfilter accounting
+ sysctl net.netfilter.nf_conntrack_acct=1 > /dev/null
- if [ "$CONFIG_TYPE" = "3" -o "$CONFIG_TYPE" = "4" ]; then
- boot_mesg "Setting up wireless firewall rules"
- /usr/local/bin/wirelessctrl; evaluate_retval
+ if [ -e /var/ipfire/main/disable_nf_sip ]; then
+ rmmod nf_nat_sip
+ rmmod nf_conntrack_sip
+ rmmod nf_nat_h323
+ rmmod nf_conntrack_h323
fi
+ boot_mesg "Setting up firewall"
+ /etc/rc.d/init.d/firewall start; evaluate_retval
+
/etc/rc.d/init.d/dnsmasq start
+ /etc/rc.d/init.d/static-routes start
}
DO="${1}"