MPD4 PPTP Server pada FreeBSD 6.2

Install mpd4 pada freeBSD 6.2
# mpd4 -v
Version 4.0b4 (root@freebsd.org 15:54 15-Oct-2006)

Mpd4 disini diperuntukan sebagai PPTP server. Asumsi sudah melakukan installasi dan ip address local server adalah 172.16.0.60.
# ee /usr/local/etc/mpd4/mpd.conf

default:
load client1
load client2

client1:
new -i ng0 pptp1 pptp1
set ipcp ranges 192.168.1.1/32 192.168.1.60/32
load client_standard

client2:
new -i ng1 pptp2 pptp2
set ipcp ranges 192.168.1.1/32 192.168.1.51/32
load client_standard

client_standard:
set iface disable on-demand
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set bundle enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link yes chap-md5 chap-msv2
set link mtu 1460
set link keep-alive 10 60
set ipcp yes vjcomp
# set ipcp dns 192.168.1.3
# set ipcp nbns 192.168.1.4
set bundle enable compression
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e128
set ccp yes mpp-stateless

# ee /usr/local/etc/mpd4/mpd.links

pptp1:
set link type pptp
set pptp self 172.16.0.60
set pptp enable incoming
set pptp disable originate
# agar windows xp firewall dapat mengakses tanpa packet loss
set pptp disable windowing
set pptp enable always-ack

pptp2:
set link type pptp
set pptp self 172.16.0.60
set pptp enable incoming
set pptp disable originate
# agar windows xp firewall dapat mengakses tanpa packet loss
set pptp disable windowing
set pptp enable always-ack

# ee /usr/local/etc/mpd4/mpd.secret

user1 “inipassworduntukuser1” 192.168.1.60/32
user2 “inipassworduntukuser2” 192.168.1.51/32

# chmod 600 /usr/local/etc/mpd4/mpd.secret
# /usr/local/etc/rc.d/mpd4.sh start

Apabila tidak ada masalah, maka client dapat mengakses ke server vpn dengan menggunakan user dan password yang terletak pada file mpd.secret.

NB:Untuk debug koneksi, dapat menjalankan service nya secara manual.
# mpd4

Untuk startup, dapat menambahkan mpd_enable=”YES”.
# ee /etc/rc.conf

mpd_enable=”YES”

Ref :
http://community.livejournal.com/unix_solution/1020.html
http://www.freebsd.org.in/2007/05/31/setting-up-vpn-on-freebsd-using-mpd/
http://sourceforge.net/tracker/?func=detail&aid=1154634&group_id=14145&atid=314145
http://mpd.sourceforge.net/doc/mpd.html

freebsd-logo-new

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: