VPN Server – Poptop FreeBSD

Buat vpn server di freebsd dengan menggunakan poptop. Simple kok caranya, tinggal liat ajah di website http://www.linux-bsd-central.com/index.php/content/view/8/.

    Ato lihat ajah di sini dah:

  • Install poptop
    # pkg_add -r poptop
  • Buat file dengan isi berikut
    # ee /usr/local/etc/pptpd.conf

    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

    # ee /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

    # ee /etc/ppp/secure

    #!/bin/sh
    exec /usr/sbin/ppp -direct loop-in

    # ee /etc/ppp/ppp.secret

    #user #password #host
    user1 password *
    user2 password *

  • Pastikan bahwa ip forward kebuka
    # sysctl net.inet.ip.forwarding=1
    atau apabila ingin diset default ketika startup
    # ee /etc/rc.conf

    gateway_enable=”YES”

  • Aktifkan proxy arp
    # sysctl net.link.ether.inet.proxyall=1
    atau apabila ingin diset default ketika startup
    # ee /etc/rc.conf

    arpproxy_all=”YES”

  • Lalu jalankan daemonnya
    # /usr/local/etc/rc.d/pptpd start

Tambahan:
Buat file /etc/ppp/ppp.linkdown agar dapat menghapus interface ketika disconnect.
# ee /etc/ppp/ppp.linkdown

pptp:
delete! HISADDR
iface clear

Udah deh …

Ref : http://www.linux-bsd-central.com/index.php/content/view/8/

linux-poptop

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: