Setup VPN Server dengan FreeBSD + PPTP

Setup VPN Server dengan FreeBSD + PPTP

Virtual private networks(VPN) adalah point-to-point koneksi melalui private atau public network misal Internet. VPN client menggunakan tunneling protocols, untuk mengkoneksikan dengan VPN server. Di sisi Server akan menerima koneksi dari VPN Client, mengecek authentication, dan mentransfers data antara VPN client.

Gambaran Model Koneksi bisa di lihat di gambar berikut :

VPN server ini di install pada FreeBSD 6.3
Adapun langkah-langkahnya adalah sebagai berikut :

1. install poptop melalui port

# cd /usr/ports/net/poptop
# make install clean

2. vi /usr/local/etc/pptpd.conf
# Alamat IP disesuaikan dengan kondisi jaringan Anda.

debug
nobsdcomp
proxyarp
localip 172.16.0.4
remoteip 172.16.0.150-155
pidfile /var/run/pptpd.pid
+chapms-v2
mppe-40
mppe-128
mppe-stateless

3. vi /etc/ppp/ppp.conf
loop:
set timeout 0
set log phase chat connect lcp ipcp command
set device localhost:pptp
set dial
set login
# Server (local) IP address, Range for Clients, and Netmask
# if you want to use NAT use private IP addresses
set ifaddr 172.16.0.4 172.16.0.150-172.16.0.155 255.255.0.0
add default HISADDR
set server /tmp/loop “” 0177

loop-in:
set timeout 0
set log phase lcp ipcp command
allow mode direct

pptp:
load loop
disable pap
# Authenticate against /etc/passwd
enable passwdauth
disable ipv6cp
enable proxy
accept dns
enable MSChapV2
enable mppe
disable deflate pred1
deny deflate pred1
set dns 24.26.163.24
set device !/etc/ppp/secure

4. vi /etc/ppp/secure
#!/bin/sh
exec /usr/sbin/ppp -direct loop-in

5. vi /etc/ppp/ppp.secret
#user #passoword
user1 password
user2 password

6. mengaktifkan ip forwarding
# sysctl net.inet.ip.forwarding=1

7. Enable proxy arp
vi /etc/rc.conf
arpproxy_all=”YES”

8. Start pptpd
/usr/local/etc/rc.d/pptpd start

2 Responses to “Setup VPN Server dengan FreeBSD + PPTP

Trackbacks & Pings

  • User links about "pptp" on iLinkShare :

    […] days ago6 votesEnabling PPTP VPN on the Cisco Router>> saved by MysteryGuitarMan 29 days ago1 votesSetup VPN Server dengan FreeBSD + PPTP>> saved by snekse 31 days ago4 votes2K3 – PPTP VPN – Nur Domänencomputer zulassen?>> saved by […]

    8 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *


*

Skip to toolbar