1. Copy profile (.pcf) dari windows, paste di /etc/opt/cisco-vpnclient/Profiles/
2. edit sudoers, agar user lain bisa menjalankan vpnclient tanpa password.
vi /etc/sudoers
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
%users ALL = (ALL) NOPASSWD:/usr/local/bin/vpnclient
3. Buat Script connect vpn
vi vpnclient_connect
#!/bin/bash
sudo /usr/local/bin/vpnclient connect "KlikBCA Bisnis"
4. Simpan, taruh file di /usr/local/bin/vpnclient_connect
5. Buat Script disconnect vpn
vi vpnclient_disconnect
#!/bin/bash
sudo /usr/local/bin/vpnclient disconnect
echo ""
echo "Press ENTER to continue"
read
6.Masuk ke /usr/local/bin/
jalankan vpnclient_connect
syahal@redarix:~>./vpnclient_connect
7. Untuk disconnect vpnclient_disconnect.
jalankan vpnclient_disconnect
syahal@redarix:~>./vpnclient_disconnect
8. Selesai.
Rabu, 11 Februari 2009
Langganan:
Posting Komentar (Atom)
0 comments:
Posting Komentar