Configure the vpn Server (pptp) under suselinux-Linux Enterprise Application-Linux server application information. For details, refer to the following. 1. Install the required software package:
Pptpd-*. rpm
Ppp-*. rpm
Pptp-*. rpm
Generally, the system has installed the pptp and ppp packages, so you only need to install the pptpd (pptpd server daemon) package. The yast tool provided by suse linux is easy to install and can automatically resolve dependencies.
Ii. configuration file.
/Etc/pptpd. conf
/Etc/ppp/chap-secrets
/Etc/ppp/options. ppp0 (Note: The options.ppp0file is copied from the options.ppt p file)
The specific configuration of each file is as follows:
1./etc/pptpd. conf
########################################
#
# Sample PoPToP configuration file
#
# For PoPToP version 1.0.0
#
#######################################
# TAG: speed
#
# Specifies the speed for the PPP daemon to talk.
# Some PPP daemons will ignore this value.
#
Speed115200
# TAG: option
#
# Specifies the location of the PPP options file.
# By default PPP looks in '/etc/ppp/Options'
#
# Option/this/is/the/options/file
Option/etc/ppp/options. ppp0
# TAG: debug
#
# Turns on (more) debugging to syslog.
#
Debug
# TAG: localip
# TAG: remoteip
#
# Specifies the local and remote IP address ranges.
#
# You can specify single IP addresses seperated by commas or you can
# Specify ranges, or both. For example:
#
#192.168.0.234, 192.168.0.245-249,192.168 .0.254
#
# Important restrictions:
#
#1. No spaces are permitted between commas or within addresses.
#
#2. If you give more IP addresses than MAX_CONNECTIONS, it will
# Start at the beginning of the list and go until it gets
# MAX_CONNECTIONS IPs. Others will be ignored.
#
#3. No shortcuts in ranges! Ie. 234-8 does not mean 234 to 238,
# You must type 234-238 if you mean this.
#
#4. If you give a single localIP, that's OK-all local IPs will
# Be set to the given one. You MUST still give at least one remote
# IP for each simultaneous client.
#
# Localip 192.168.0.234-238,192.168 .0.245
# Remoteip 192.168.1.234-238,192.168 .1.245
Localip 10.10.10.10 // specify the address of the vpn Server, which can be a virtual ip address.
Remoteip 192.168.137.128-200 // specifies the ip address range specified here after the client is connected.
# TAG: ipxnets
#
# This gives the range of IPX networks to allocate to clients.
# Default IPX network number allocation is not handled internally.
# By putting a low and high network number here a pool of IPX networks
# Can be defined. If this is done then there must be one IPX network
# Per client.
#
# The format is a pair of hex numbers without any 0x prefix separated
# By a hyphen.
#
# Ipxnets 00001000-00001FFF
# TAG: listen
#
# Defines the IP address of the local interface on which pptpd
# Shoshould listen for connections. The default is to listen on all
# Local interfaces (even ones brought up by pptp connections, thus
# Permitting pptp tunnels inside the pptp tunnels ).
#
# Listen 192.168.0.1
Listen 10.10.10.10
# TAG: pidfile
#
# This defines the file name in which pptpd shocould store its process
# ID (or pid). The default is/var/run/pptpd. pid.
#
Pidfile/var/run/pptpd. pid
2. Configure/etc/ppp/options. ppp0 as follows:
#
# Lock the port
#
Lock
#
# We don't need the tunnel server to authenticate itself
#
Noauth
#
# Turn off transmission protocols we know won't be used
#
Nobsdcomp
Nodeflate
#
# We want MPPE
#
Mppe-40
Mppe-128
Mppe-stateless
#
# We want a sane mtu/mru
#
Mtu 1000
Mru 1000
#
# Time this thing out of it goes poof
#
Lcp-echo-failure 10
Lcp-echo-interval 10
3. Configure/etc/ppp/chap-secrets as follows:
# Secrets for authentication using CHAP
# Client server secret IP addresses
# OUTBOUND CONNECTIONS
# Here you shoshould add your PPP Login and PPP password to connect to your
# Provider via pap. The * means that the entry (login and passoword may be
# Used for ANY host you connect.
# Thus you do not have to worry about the foreign machine name. Just
# Replace password with your password.
# Hostname * password
# PREDIFINED CONNECTIONS
# These are user and password entries for publically accessible call-by-call
# Internet providers in Germany. If they confict with your config, remove them.
# READ_IN_CALLBYCALL_SECRETS
# INBOUND CONNECTIONS
# Client hostname 192.168.1.1
A *
// Specify the user name and password for the vpn Client connection as a/a. The last * indicates that an ip address is randomly allocated from the IP range specified in/etc/pptpd. conf.
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