Install and configure a VPN under FREEBSD

Source: Internet
Author: User
Install and configure a VPN under FREEBSD-Linux Enterprise Application-Linux server application information. For more information, see. Objective: To use Windows 2000/XP for VPN dial-up connection, the software selects mpd

1 mpd Installation
Install mpd through ports

# Cd/usr/ports/net/mpd
# Make all install clean


2 mpd Configuration
The VPN configuration files include mpd. conf, mpd. links, And mpd. secret.

The configuration of/usr/local/etc/mpd. conf is as follows:

Default:
Load vpn
Vpn:
New-I ng1 vpn
Set iface disable on-demand
Set iface addrs 192.168.0.1
Set iface idle 0
Set iface route 192.168.0.0/24
Set bundle disable multilink
Set bundle authname "VpnLogin"
Set bundle password "VpnPassword"
Set link yes acfcomp protocomp
Set link no pap
Set link yes chap
Set link mtu 1460
# If remote machine is NT you need this ..
# Set link enable no-orig-auth
Set link keep-alive 10 75
Set ipcp yes vjcomp
Set ipcp ranges 192.168.0.1/32 192.168.0.254/32
#
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc (8) netgraph node type.
#
Set bundle enable compression
Set ccp yes mppc
Set ccp yes mpp-e40
Set ccp yes mpp-e128
Set bundle enable crypt-reqd
Set ccp yes mpp-stateless
Open


The configuration of/usr/local/etc/mpd. links is as follows:

Vpn:
Set link type pptp
Set pptp self 192.168.0.1
# Set pptp peer 2.3.4.5
Set pptp enable originate incoming outcall


/Usr/local/etc/mpd. secret is the user's account and password:

Jerry "11111111"
Emma "88888888"
Test "test" 192.168.0.254


/Usr/local/etc/rc. d/mpd. sh

#! /Bin/sh
Case $1 in
Start)
[-X/usr/local/sbin/mpd] & \
[-F "/usr/local/etc/mpd. conf"] & \
/Usr/local/sbin/mpd-B &&\
Echo-n 'mpd'
;;
Stop)
Killall mpd & echo-n 'mpd'
;;
*)
Echo "Usage: 'basename $ 0' {start | stop}" <& 2
Exit 64
;;
Esac
Exit 0


Start with 'mpd. sh start', add a network connection to another WinXP instance, use VPN, and enter the user and password and host address to connect to the instance.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.