enable TCP ECN by default (see #3001 for more information)
[openwrt.git] / package / comgt / files / 3g.iface
1 include /lib/network
2 config_load network
3 scan_interfaces
4 config_get proto "$INTERFACE" proto
5 [ "$proto" = "3g" ] && {
6 config_get iface "$INTERFACE" ifname
7 case "$ACTION" in
8 ifup)
9 iptables -I LAN_ACCEPT 1 -i "$iface" -j RETURN
10 iptables -A FORWARD -o "$iface" -j ACCEPT
11 iptables -t nat -A POSTROUTING -o "$iface" -j MASQUERADE
12 set_3g_led 1 1 0
13 ;;
14 ifdown)
15 iptables -D LAN_ACCEPT -i "$iface" -j RETURN
16 iptables -D FORWARD -o "$iface" -j ACCEPT
17 iptables -t nat -D POSTROUTING -o "$iface" -j MASQUERADE
18 set_3g_led 0 0 0
19 ;;
20 esac
21 }
This page took 0.039513 seconds and 5 git commands to generate.