Sunday, March 20, 2011

VPN dialup PPTP


prasyarat :

Device tun sudah ada pada kernel
device tun # Packet tunnel.
Ports collection yang up to date
poptop


Tahap Instalasi

indofreebsd# cd /usr/ports/net/poptop/

indofreebsd# make install clean

Tahap configurasi

pertama buat konfigurasi poptop

indofreebsd#vi /usr/local/etc/pptpd.conf #------ Content-----# pptpd.conf

option / etc / ppp / ppp.conf

logwtmp

localip 192.168.1.23
remoteip 192.168.1.200-250
listen 122.200.55.17

#------ Finished ----------- #

make his next ppp.conf configuration

indofreebsd # vi / etc / ppp / ppp.conf

#----- Contents of the file-----# ppp.conf

loop:

set timeout 0

set log Phase Chat LCP ipcp command connects

set device localhost: pptp

set dial

set login

set of stateful MPPE *

# Server (local) IP address, Range for Clients, and Netmask

# Use the Same IP addresses you specified in / etc / pppd.conf:

192.168.1.23 ifaddr set 192.168.1.200-192.168.1.250 255 255 255 255

set server / tmp / loop "" 0177

loop-in:

set timeout 0

set ipcp command log phase LCP

allow direct mode
pptp:

load loop

# Disable unsecured auth

disable pap

disable chap

enable mschapv2

disable deflate pred1

deny deflate pred1

disable ipv6

accept MPPE

enable proxy

accept dns

# DNS Servers to assign client

# Use your own DNS server IP address:

set dns 202 162 220 110

# NetBIOS / WINS Servers to assign client

set of devices! / etc / ppp / secure

Configuration #----- ppp.conf finished ----#

The next stage to create a file is needed

indofreebsd # vi / etc / ppp / secure

#----- Contents secure file ---- #

#! / Bin / sh

exec / usr / sbin / ppp-direct loop-in
#---- Finished -------------- #

next

chmod u + x
/ Etc / ppp / secure
make further
secret file for the username and password
indofreebsd # vi
/ Etc / ppp / secret
# --- File contents secret -----#
# Username
password
host
ogeb
sayaorangganteng
*
Friends

stress
*
#----- Over secret files # ---------
then chmod 0400 the secret files
indofreebsd # chmod 0400 / etc / ppp / secret
last edit rc.conf
and input parameters
pptpd_enable = "YES"
pptpd daemon for the road every time booting
here until the installation and configuration phase has been completed,
then run the daemon pptpd
indofreebsd # / usr / local / etc / rc.d / pptpd start
installation and configuration phase
has been completed please try to dial into your vpn
using windows builtin vpn client for windows os and pptpclient
for linux

greetings,
ogeb

0 comments: