mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
Fixes an den Netzwerkscripts und der Netzwerkroutine im Setup.
Viele alte Patches entfernt. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@775 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -16,6 +16,39 @@
|
||||
. ${rc_functions}
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
|
||||
|
||||
init_networking() {
|
||||
|
||||
boot_mesg "Loading firewall modules into the kernel"
|
||||
modprobe iptable_nat || failed=1
|
||||
for i in $(find /lib/modules/$(uname -r) -name ip_conntrack*); do
|
||||
modprobe $i || failed=1
|
||||
done
|
||||
for i in $(find /lib/modules/$(uname -r) -name ip_nat*); do
|
||||
modprobe $i || failed=1
|
||||
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
|
||||
|
||||
if [ "$CONFIG_TYPE" = "3" -o "$CONFIG_TYPE" = "4" ]; then
|
||||
boot_mesg "Setting up wireless firewall rules"
|
||||
/usr/local/bin/restartwireless; evaluate_retval
|
||||
fi
|
||||
|
||||
/etc/rc.d/init.d/dnsmasq start
|
||||
}
|
||||
|
||||
DO="${1}"
|
||||
shift
|
||||
|
||||
@@ -104,37 +137,4 @@ case "${DO}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
init_networking() {
|
||||
|
||||
boot_mesg "Loading firewall modules into the kernel"
|
||||
modprobe iptable_nat || failed=1
|
||||
for i in $(find /lib/modules/$(uname -r) -name ip_conntrack*); do
|
||||
modprobe $i || failed=1
|
||||
done
|
||||
for i in $(find /lib/modules/$(uname -r) -name ip_nat*); do
|
||||
modprobe $i || failed=1
|
||||
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
|
||||
|
||||
if [ "$CONFIG_TYPE" = "3" -o "$CONFIG_TYPE" = "4" ]; then
|
||||
boot_mesg "Setting up wireless firewall rules"
|
||||
/usr/local/bin/restartwireless; evaluate_retval
|
||||
fi
|
||||
|
||||
/etc/rc.d/init.d/dnsmasq start
|
||||
}
|
||||
|
||||
# End /etc/rc.d/init.d/network
|
||||
|
||||
Reference in New Issue
Block a user