Saturday, 24. February 2007, 04:08:54
Hari untuk pertma kalinya……, dan masih sering nanya sama temenku ..Rizzurant.., terus terang lebih enak memanggil nama dengan..Rizzurant..mengajari panduan dan intstalasi VPN Client pada Linux
Beberapa Parameter :
IP PC/Router Pelanggan : 10.14.200.117
Subnet Mask : 255.255.255.0
Gateway : 10.14.200.1
IP VPN Server : 172.16.1.1
IP VPN Gateway : 10.14.203.100
Username : 111020169
Password : *******
Kebetulan software yang ingin saya instal itu udahh tersedia di
http://pinguin.stttelkom.ac.id atau bisa juga cari di
http://sourceforge.net bentuknya :
pptp-command.tar.gz
pptp-linux (versi) .tar.gz
Berikut ini langkah awal intalasinya, kebetulan untuk pptp-linuxnya menggunkan pptp-linux-1.4.0.tar.gz untuk :
[root@localhost root]# tar -xvzf pptp-linux-1.4.0.tar.gz
Setelah selesai kemudian masuklah ke folder/direktori pptp-linux-nya :
[root@localhost root]# cd pptp-linux-1.4.0 (lalu baca readme atau langsung tekan)
[root@localhost pptp-linux-1.4.0]# make
echo “/* text added by Makefile target config.h */” > config.h
echo “#define PPTP_LINUX_VERSION \”1.4.0\”" >> config.h
echo “#define PPPD_BINARY \”/usr/sbin/pppd\”" >> config.h
Lanjutkan dengan tekan make install :
[root@localhost pptp-linux-1.4.0]# make install
mkdir -p /usr/sbin
install -o root -m 555 pptp /usr/sbin
mkdir -p /usr/share/man/man8
install -m 644 pptp.8 /usr/share/man/man8
Lalu lanjutkan dengan mengetik $PATH untuk mengetahui bahwa pptp-command itu ada dimana ?
[root@localhost pptp-linux-1.4.0]# $PATH
bash: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin: No such file or directory
[root@localhost pptp-linux-1.4.0]# cd /root (kopikan/pindahkan pptp-command ke /sbin/)
[root@localhost root]# cp pptp-command /sbin/
[root@localhost root]# pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?: 3
ls: /etc/pptp.d: No such file or directory
1.) Manage CHAP secrets
2.) Manage PAP secrets
3.) List PPTP Tunnels
4.) Add a NEW PPTP Tunnel
5.) Delete a PPTP Tunnel
6.) Configure resolv.conf
7.) Select a default tunnel
8.) Quit
?: 1
1.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) Quit
?: 2
Add a NEW CHAP secret.
NOTE: Any backslashes (\) must be doubled (\\).
Local Name:
This is the ‘local’ identifier for CHAP authentication.
NOTE: If the server is a Windows NT machine, the local name
should be your Windows NT username including domain.
For example:
domain\\username
Local Name: 111020169
Remote Name:
This is the ‘remote’ identifier for CHAP authentication.
In most cases, this can be left as the default. It must be
set if you have multiple CHAP secrets with the same local name
and different passwords. Just press ENTER to keep the default.
Remote Name [PPTP]:
Password:
This is the password or CHAP secret for the account specified. The
password will not be echoed.
Password:
Adding secret 111020169 PPTP *****
1.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) Quit
?: 4
1.) Manage CHAP secrets
2.) Manage PAP secrets
3.) List PPTP Tunnels
4.) Add a NEW PPTP Tunnel
5.) Delete a PPTP Tunnel
6.) Configure resolv.conf
7.) Select a default tunnel
8.) Quit
?: 8
[root@localhost root]# pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?: 3
ls: /etc/pptp.d: No such file or directory
1.) Manage CHAP secrets
2.) Manage PAP secrets
3.) List PPTP Tunnels
4.) Add a NEW PPTP Tunnel
5.) Delete a PPTP Tunnel
6.) Configure resolv.conf
7.) Select a default tunnel
8.) Quit
?: 4
Add a NEW PPTP Tunnel.
1.) Other
Which configuration would you like to use?: 1
Tunnel Name: gandulbosok
Server IP: 10.14.203.100
What route(s) would you like to add when the tunnel comes up?
This is usually a route to your internal network behind the PPTP server.
You can use TUNNEL_DEV and DEF_GW as in /etc/pptp.d/ config file
TUNNEL_DEV is replaced by the device of the tunnel interface.
DEF_GW is replaced by the existing default gateway.
The syntax to use is the same as the route(8) command.
Enter a blank line to stop.
route:
Local Name and Remote Name should match a configured CHAP or PAP secret.
Local Name is probably your NT domain\username.
NOTE: Any backslashes (\) must be doubled (\\).
Local Name: 111020169
Remote Name [PPTP]:
Adding gandulbosok - 10.14.203.100 - 111020169 - PPTP
Added tunnel gandulbosok
1.) Manage CHAP secrets
2.) Manage PAP secrets
3.) List PPTP Tunnels
4.) Add a NEW PPTP Tunnel
5.) Delete a PPTP Tunnel
6.) Configure resolv.conf
7.) Select a default tunnel
8.) Quit
?: 8
[root@localhost root]# pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?: 1
1.) gandulbosok
Start a tunnel to which server?: 1
/usr/sbin/pppd: Can’t open options file /etc/ppp/options.pptp: No such file or directory
Nah sekarang tadi kata si mbah SuRo kita membuat file kosong< /etc/ppp/options.pptp>
caranya :
[root@localhost root]# touch /etc/ppp/options.pptp
Setelah itu kembali masuk ke pptp-command-nya :
[root@localhost root]# pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?: 1
1.) gandulbosok
Start a tunnel to which server?: 1
All routes added.
Tunnel gandulbosok is active on ppp0. IP Address: 172.16.10.53
..:: selamat mencoba ::.. (kalau ada yang salah mohon dikoreksi)