Shoeisparrows’s Weblog

Just another weblog

sharing pppo internet di ubuntu

Posted by shoeisparrows on January 25, 2011

hal pertama yang mesti di lakukan adalah menginstall wvdial di mesin ubuntunya dengan cara :

sudo apt-get -f  install wvdial

setelah proses instalasi selesai edit file wvdial di nano /etc/wvdial.conf sebelum mengedit file wvdial ketikan terlebih dahulu wvdialconf agar modem terdeteksi dan berada di posisi apa, OK lanjut ke posisi edit file wvdial.confnya

[Dialer Defaults]

Modem = /dev/ttyACM0 (sesuai wvdialconf)

ISDN = off

Modem Type = Analog Modem

Baud = 460800

Init = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Init3 =

Init4 =

Init5 =

Init6 =

Init7 =

Init8 =

Init9 =

Phone = #777

Phone1 =

Phone2 =

Phone3 =

Phone4 =

Dial Prefix =

Dial Attempts = 1

Dial Command = ATM1L3DT

Ask Password = off

Password = smart

Username = smart

Auto Reconnect = on

Abort on Busy = off

Carrier Check = on

Check Def Route = on

Abort on No Dialtone = on

Stupid Mode = off

Idle Seconds = 0

lalu save dengan menekan ctrl+x

lanjut ke sharing internetnya dengan menggunakan iptables :

iptables -A FORWARD -i ppp0 -o eth0 -s -m conntrack –ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack –ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

NB: disini saya menggunakan ip untuk servernya

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: