Internet Sharing Modem GSM / CDMA from Debian Squeeze to Windows - This paper is a continuation of previous writings smartfren Connex Modem (ZTE AC682) on Debian Squeeze . This trick also applies to the GSM modem. The following are the steps to do internet sharing with a modem in Debian Squeeze CMDA / GSM:
Previously, the IP address for each computer are:
Debian:
addreess: 192.168.137.1
netmask: 255.255.255.0
Windows XP:
addreess: 192 168 137 100
netmask: 255.255.255.0
gateway: 192.168.137.1
Preferred DNS Server: 10.17.3.244
Alternate DNS Server: 10.17.3.252
For DNS servers may vary according to provider is used, in this case using the provider smartfren. To check please see the file / etc / resolv.conf.
1. Make sure both computers are already connected in a network. could check the receipts for the following commands, if no reply message is the second computer is connected salary:
$ Ping 192.168.137.0 or ping 192 168 137 100
2. Make sure the Internet is connected, according to the writing here .
3. If steps 1 & 2 have been successful, there needs to be done now enable internet sharing on debian squeeze, the following command via terminal:
$ Ifconfig-F
4. Enable NAT for an interface ppp0:
$ Iptables-t nat-A POSTROUTING-o ppp0-j MASQUERADE
5. Enable routing:
$ Echo "1"> / proc/sys/net/ipv4/ip_forward
4. Completed