;;
esac
-if [ "$(basename ${0})" = "network" ]; then
- init_run
-fi
mkdir -p /var/run/ppp 2>/dev/null
}
-register_init ppp_init
+init_register ppp_init
function ppp_common_ip_pre_up() {
local zone=${1}
function virtual_init() {
module_load 8021q
+
+ ebtables-restore <<EOF
+*filter
+:INPUT ACCEPT
+:FORWARD ACCEPT
+:OUTPUT ACCEPT
+
+*broute
+:BROUTING ACCEPT
+-A BROUTING -p 802_1Q -j DROP
+EOF
}
init_register virtual_init
# Process the given action
case "${action}" in
+ init)
+ init_run
+ ;;
+
config|port|device|zone|start|stop|restart|status|reset)
cli_${action} $@
;;