4 /android/bin/iptables --flush;
5 /android/bin/iptables --table nat --flush;
6 /android/bin/iptables --delete-chain;
7 /android/bin/iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE;
8 /android/bin/iptables --append FORWARD --in-interface ppp1 -j ACCEPT;
9 echo 0 > /proc/sys/net/ipv4/ip_forward;
10 echo 1 > /proc/sys/net/ipv4/ip_forward;
11 echo $PPPD_PID > /etc/ppp/ppp1.pid;
14 /system/bin/setprop "net.interfaces.defaultroute" "gprs";
15 echo $PPPD_PID > /etc/ppp/ppp0.pid;
19 # Use interface name if linkname is not available
20 NAME=${LINKNAME:-"$1"}
22 /system/bin/setprop "net.$NAME.dns1" "$DNS1"
23 /system/bin/setprop "net.$NAME.dns2" "$DNS2"
24 /system/bin/setprop "net.$NAME.local-ip" "$IPLOCAL"
25 /system/bin/setprop "net.$NAME.remote-ip" "$IPREMOTE"
26 /system/bin/setprop "net.$NAME.gw" "$IPREMOTE"