is as follows:
Iptables-t nat-a postrouting-s 192.168.85.0/24 (PPTP client IP-j SNAT--to 192.168.0.105 (to issue public network IP)
We then enter the following instructions to let iptables save our forwarding rules so that we do not need to add them again after restarting the system:
The code is as follows:
#/etc/init.d/iptables Save
Then we restart Iptables:
The code is as follows:
#/etc/init.d/iptables restart
8, restart the
Http://www.boofee.net/bigfee/read.php? 976Modify the Windows rras vpn pptp service default port number through the Registry
The default port number used by the first-layer tunnel protocol PPtp of VPN (Virtual Private Network) is TCP 1723, which is a standard, that is to say,
/chap-secrets
Fill in the format of the IP address assigned by the user name (tab) Host Name (tab) and password (tab). The host name can be replaced, if you do not specify the IP address to which the user is allocated, you can change the last IP address to "*" to restart the pptp service.
/etc/init.d/pptpd restartWait for a moment. Hey, create a VPN connection fr
/ubuntu/ karmic main restricted universe multiverse Deb - SRC http: // Mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse Deb - SRC http: // Mirrors.163.com/ubuntu/ karmic-Updates main restricted universe multiverse Deb - SRC http: // Mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse Deb - SRC http: // Mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse
Please refer to the following link for m
Download the target RPM from http://poptop.sourceforge.net/yum/stable/packages/
My 64-bit centos5.5 download is
Http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel4.x86_64.rpm
Install
Rpm-IVH pptpd-1.3.4-2.rhel4.x86_64.rpm
1. Modify the main configuration file/etc/pptpd. conf. You only need to add the following two lines
Localip 10.0.0.1remoteip 10.0.0.100-200
2. Modify the option file/etc/PPP/options.ppt PD. You need to set the DNS assigned to the client.
MS-DNS 8.8.4.4ms-DNS
is in the form of IP multicast rams that contain PPPPackets, referred to as encapsulated PPP packets.
The second call creates the Virtual Private Networking (VPN) connection to a PPTP server on the private enterprise LAN, this is referred to asTunnel. This is shown in the following figure:
Figure1
1. The client first connects to the ISP through the first PPP dialing to ensure Internet access.
2. After you
I have recommended how to set up the PPTP VPN service in the article "VPs initial experience and self-built VPN service". This article has made some modifications and supplements based on the original article, and added"How to connect to
Tags: TCP remote maintenance efault strong end-to-end DDR FAs SWA stability PPTP VPN server VPN OverviewVPN(full name virtual PrivateNetwork)(1) relying on the ISP and other NSP, in the public network to establish a dedicated data communication network technology, can provide security between enterprises or between the individual and the Enterprise data Transfer
Pptp settings and local vpn (and solve the problem that ssh cannot access the remote host under the vpn)1. Install pptpSudo apt-get install-y ppp pptpdsudo vim/etc/pptpd. conf modification: option/etc/ppp/pptpd-optionslocalip 172.31.26.19 (local vpn address) remoteip 172.31.26.20-200 (
This article describes how to build a PPTP VPN service on a Xen VPS that installs the CentOS operating system. Includes the installation, configuration, and corresponding iptables rules for PPTP. This article temporarily does not involve the PPTP traffic control part, waits
Pptp settings and local vpn (and solve the problem that ssh cannot access the remote host under the vpn), pptpssh1. Install pptpSudo apt-get install-y ppp pptpdsudo vim/etc/pptpd. conf modification: option/etc/ppp/pptpd-optionslocalip 172.31.26.19 (local vpn address) remoteip 172.31.26.20-200 (
Build PPTP VPN1. VPN overview VPN (Virtual Private Network) Virtual Private Network. It relies on ISP and other facilities and services to establish a dedicated data communication network in a public network, A secure data transmission tunnel service can be provided between enterprises or between individuals and enterp
/pptpd/pptpd-1.3.4/
wget http://surfnet.dl.sourceforge.net/project/poptop/pptpd/pptpd-1.3.4/pptpd-1.3.4.tar.gz
Tar zxf pptpd-1.3.4.tar.gz
CD pptpd-1.3.4
./configure
--prefix=/soft/pptpd-1.3.4
--enable-bcrelay
--with-libwrap
Make
Make install
Mkdir-p/soft/pptpd-1.3.4/etc
# CP Samples/options.pptpd/soft/pptpd-1.3.4/etc
# The contents of the configuration file are as follows
The code is as follows:
Name PPTPD
Debug
#logwtmp
Logfile/var/log/pptpd.log
Lock
Refuse-pap
Refuse-chap
VPN protocols: PPTP, L2TP, and OpenVPN1. Concepts of PPTP, L2TP, and OpenVPN Tunneling Protocols 1. Default port number of PPTP (Point to Point Tunneling Protocol): 1723 PPTP, or PPTF Protocol. This protocol is a new enhanced security protocol developed on the basis of the P
This article describes how to configure packet filter support for PPTP VPN clients.
The Windows Server 2003 Routing and Remote Access service supports virtual private networks (VPNs). VPN clients can use Point-to-Point Tunneling Protocol (PPTP), second-tier Tunneling Protoc
sends)Debug# Print out all the option values which have been set.# (Often requested by mailing list to verify options)Dump# Miscellaneous# Create a UUCP-style lock file for the pseudo-tty to ensure exclusive# Access.Lock# Disable BSD-Compress compressionNobsdcomp# Disable Van Jacobson compression# (Needed on some networks with Windows 9x/ME/XP clients, see posting# Poptop-server on 14th 10000l 2005 by Pawel Pokrywka and followups,# Http://marc.theaimsgroup.com /? T = 111343175400006 r = 1 w =
Normally use Google's DNS server to edit/etc/ppp/options.pptpd files
Vim/etc/ppp/options.pptpd#把ms-dns is modified to:Ms-dns 8.8.8.8Ms-dns 4.2.2.2#推荐把调试模式开启, uncomment the # number in front of the following textDebug
Turn on the network forwarding function
#打开/etc/sysctl.confVim/etc/sysctl.conf#添加 (if there is one, remove the previous # number and uncomment)Net.ipv4.ip_forward = 1#执行如下命令使刚刚操作在系统生效Sysctl-p
PPTP
, other parameters can be modified according to need.
Note: The local address is the address of the VPN client accessing the router, and the maximum session is that the account can be used by multiple computers at the same time.
[3]
set up the
PPTP
Server
Click on
VPN >
algorithm. Iana (Internet Assigned NumbersAuthority) The official port assigned to openvpn is 1194. In openvpn 2.0 and later versions, each process can manage several concurrent tunnels at the same time.Openvpn uses the features of common network protocols (TCP and UDP) to make it an ideal alternative to protocols such as IPSec, especially when the ISP (Internet Service Provider) filters certain VPN protoc
customized settings.
[3]
add
PPTP
Server
Click
on VPN > PPTP > PPTP Server , click on, set as follows:
Note: The service interface is an outbound interface that can be connected to the Internet.
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.