Senin, 17 Oktober 2016

KONFIGURASI USB MODEM



1.      apt-get install wvdial
2.      lsusb
3.      modprobe usbserial vendor=0x.... product=0x....
4.      wvdialconf
5.      nano /etc/wvdial.conf
            [Dialer flash]
            Init1 : ATZ
            Init2 : ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
            Carrier check = no
            Modem = /dev/ttyUSB0
            Command Line = ATDT
            Phone = *99#
            Idie second = 0
            Password = 3data
            Modem Type = Analog Modem
            Stupid Mode = yes                 
            Baud = 115200
            New PPD = yes
            Ask Password = 0
            ISDN = 0
            Username = 3data
6.      wvdial flash
7.      nano /etc/rc.local
            beri tanda #
            iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
            kemudian tambahkan
            iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
8.      iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
9.      iptables-save > /etc/iptables
10.  iptables -L -t nat
11.  nano /etc/network/interfaces
12.  nano /etc/resolv.conf
13.  nano /etc/dhcp/dhcpd.conf
            tambahkan IP Address ke DNS
14.  /etc/init.d/isc-dhcp-server restart
15.  /etc/init.d/bind9 restart
16.  /etc/init.d/netwoking restart
17.  echo "1" > /proc/sys/net/ipv4/ip_forward
reboot 

0 komentar:

Posting Komentar