Description
RouterOS Server ip:172.31.101.80
RouterOS version: RouterOS V6.15
Demand:
To configure the PPTP VPN server on the RouterOS server, the PPTP VPN Client dial-in network segment is: 172.31.101.60-172.31.101.79
Operation Steps:
/net.ipv4.ip_forward\ =\ 0/net.ipv4.ip_forward\ =\ 1/g' /etc/sysctl.conf
Change net. ipv4.ip _ forward = 0 to 1.
Run the following command to make the configuration take effect.
sysctl -p
Enable iptables forwarding
/sbin/iptables -t nat -A POSTROUTING -s 192.168.88.0/24 -o eth0 -j MASQUERADE
Save firewall rules
/etc/init.d/iptables save
Finally, set iptables and pptpd to automatically start upon startup.
chkconfig pptpd on chkconfig iptables on
Start pptpd Service
/etc/init
In enterprise applications, VPN should be the most used one. In particular, the company has a division of the case, visible VPN in the enterprise application is how extensive. Of course, there are many ways to implement VPN functionality, the company can buy VPN hardware devices, or you can use a dedicated Cisco router
One-click to build PPTP VPN scripts
Download Centos6.2 a key to build a PPTP VPN script
The code is as follows
Copy Code
#wget http://www.hi-vps.com/shell/vpn_centos6.sh#chmod a+x vpn_centos6.sh
Install Centos6.2pptpvpn script #bash vpn_centos6.sh
After the execution there are 1
Build a VPN using PPTP on CentOSCentos 6.3 64bit used in this experiment. 1. Check System compatibility before installation. Check the kernel MPPE patch to see if the kernel supports mppe: modprobe ppp-compress-18 echo OK if OK is displayed, it indicates that the kernel has mppe support. 2. to install VPN, you need to install three components: ppp,
CentOS PPTP VPN Server (32-bit) installation
1. Package Installation
The code is as follows
Copy Code
Yum install-y PPP Iptableswget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.el6.i686.rpmRPM-IVH pptpd-1.3.4-2.el6.i686.rpm
2. Configuration file2.1 Configuration/ETC/PPP/OPTIONS.PPTPD
The code is as follows
Copy Code
Mv/
/etc/ppp/chap-secretsOnly two lines after opening,
# Secrets for authentication using CHAP# Client Server Secret IP addressesUnder the two lines, add the user information in the following format, separating each entry by a space, such as:
# Secrets for authentication using CHAP# Client Server Secret IP addressesGongzi pptpd 123456 *where * means all IP can be logged in.
Next, modify the kernel parameters so
Article title: Linux study notes virtual private network VPN experiment PPTP. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The full name of VPN is "Virtual Private Network", which is translated as "Virtual Private Network "
Debian uses pptp as the VPN Server-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. Since my system version is linux-image-2.6.18-6-686> Linux kernel 2.6.15-rc1, there is no need to manually install mppe and dkms
2. install the pptpd service apt-get install pptpd
3. Edit the/etc/pptpd. conf file.
Debian :~ # Cat/etc/pptpd. conf | grep-v "#"
Ppp
Proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
idle 2592000 ms-dns 8.8.8.8 Ms-dns 8.8.4.4
#本栏目更多精彩内容: http://www.bianceng.cn/OS/Linux/
#这里的DNS可以查看服务器本机使用的DNS地址.
②, config file #/etc/ppp/chap-secrets
# Mv/etc/ppp/chap-secrets/etc/ppp/chap-secrets.bak
# vim/etc/ppp/chap-secrets
Enter the following content
# Secrets for authentication using CHAP
# client server secret IP addresses
myusername pptpd MyPassword *
Note: The M
Vpn pptp configuration, vpnpptpInstall
Yum install pptpdConfigure pptpd to modify/etc/pptpd. conf settings
Localip 192.168.00001remoteip 192.168.0000234-238,192.168 .0000245
The network segment does not conflict with the local network.Modify/etc/ppp/chap-secrets to configure user name Permissions
# Secrets for authentication using CHAP # client server secret
-JMasquerade
/Etc/init. d/iptablesSave
/Etc/init. d/iptablesRestart
ServicePptpd restart
If you find that you can only access QQ and Baidu, but cannot open the webpage, run the following command to modify the MTU of the VPN Server (you can view the MTU of the server ppp0 as 1396 through netstat-I, each 20 bytes of the IP and TCP header is 1356)
/Sbin/iptables-I forward-p tcp -- syn-I PPP +-J tcpmss -- Set-MSS 1356
You can access the Internet on yo
://www.linuxidc.com/Linux/2011-01/31746.htm for configuring NAT forwarding in PPTPd on Ubuntu VPS
Install pptp vpn http://www.linuxidc.com/Linux/2011-06/37430.htm under CentOS
Linux VPN (PPTPD) + Windows AD unified authentication http://www.linuxidc.com/Linux/2014-03/97779.htmIi. Client installation and configuration:
This article describes the procedures for configuring the PPTP client for commands.A. Installing the PPTP client softwaresudo apt-get install Pptp-linuxB. View network Configuration[emailprotected]:~# ifconfigeth0 Link encap:ethernet HWaddr 00:0c:29:19:a7:0c inet addr:192.16
Official website of Pptpclient
Pptpclient official http://pptpclient.sourceforge.net/howto-diagnosis.phtml#pppd_options
1. use yum to install ppp and pptp packagesYum-y install pppYum-y install pptpIf yum does not have pptp, go to the http://pptpclient.sourceforge.net to download the installation, here we recommend using rpm package.I installed using: http://sourceforge.net/projects/pptpclient/files/
Graphic introduction to login VPN Server in Android system settings (with a URL that allows you to register a VPN account for free, please pay attention to it !), Androidvpn
Step 1: Open the main menu of your phone, select "Settings", and then select "wireless and network"
Step 2: Select "VPC Settings"
Step 3: Select "add VPC"
Step 4: Select "add
Download pptp-1.7.2.tar.gzHttp://pptpclient.sourceforge.net/root user upload to linux host/tmp directoryUnzip installation: cd/tmptar xzf pptp-1.7.2.tar.gzcd pptp-1.7.2make make install change Configuration: 1. Change the dialing user information file cd/etc/pppvi chap-secrets # Secrets for authentication using CHAP # client
Tplink Router VPN Client setting method
1, in the lower right corner of the desktop right click on the network icon, choose to open the network and Sharing Center, click to set up a new connection or network, set up a new connection.
2, according to the Setup wizard to start setting, select Connect to the workspace, the following figure:
3. Select the connection mode
Choose to use my Internet connec
In centos6.3x64 environment, install the vpn client. specifically, I tried to check whether the server has been installed on the local server first... in centos 6.3 x64 environment, install the vpn Client. Q: www.2cto.com because the project needs to use the google Cloud Storage and facebook and twitter API services, t
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.