make sysctl take effect immediately, run the following command :-Sysctl-p
4. If iptables is enabled, the following rules are required:Open Port 1723,47iptables -A INPUT -p tcp --dport 1723 -j ACCEPTiptables -A INPUT -p tcp --dport 47 -j ACCEPT
5. Start and Stop the VPN Service#/Etc/rc. d/init. d/pptpd start#/Etc/rc. d/init. d/pptpd stop close#/Etc/rc. d/init. d/pptpd restart
To enable the VPN service to be
The company now uses iptables as the firewall in the LAN, the Internet is no problem. This time, because of the test, you need to connect PPTP VPN. The problem is, the VPN dial has failed and reported 619 errors. I have no problem with my cell phone or my home dialing.
Landing the router, the PPTP support all open to
Yesterday, there is a free server, so set up a VPN, the system for CentOS 6.5 X64, build PPTP type. Incidentally recorded, except weeding ...
Action steps are as follows:
1, the installation of PPP and PPTPD related softwareThe installation commands are as follows:
Yum install-y PPPYum Clean AllYum MakecacheYum-y Install pptpdThe above commands are executed separately, you can see the prompt success.
2. Con
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/
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
To install the PPTP client and MPPE encryption module:
The code is as follows
Copy Code
OPKG UpdateOpkg Install PPTPOpkg Install Kmod-mppe
Add account number and password to config file:
The code is as follows
Copy Code
Cat/etc/ppp/chap-secrets#USERNAME PROVIDER PASSWORD IPAddressHaiyun.me VPN "haiyun.me" *
New dial-up configurati
/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
Step 2: Open your Android phone[Settings]Function, Point[Wireless and network]
Step 2: select[Virtual private network settings]
Step 2: select[Add a virtual private network]
Step 2: select[Add VPN "PPTP "]
Step 2: select[Virtual Private Network Name]
Step 2: Set the virtual private network name,For example, suvpnCan be customized, click[OK]
Step 2: Set the VPC server address: Wangkangle.co
. If Iptables is turned on, the following rules are requiredOpen 1723,47 Portiptables -A INPUT -p tcp --dport 1723 -j ACCEPTiptables -A INPUT -p tcp --dport 47 -j ACCEPT
5. Start and stop VPN services#/ETC/RC.D/INIT.D/PPTPD Start#/etc/rc.d/init.d/pptpd Stop off#/etc/rc.d/init.d/pptpd Restart reboot
To enable the VPN service to start automatically when the system boots, execute:# Chkconfig PPTPD on
Use NE
Many may not be familiar with the PPTP configuration in Linux. Below I have written a simple Shell script, which can be directly saved and executed by pptp. sh.
1. Script: yum remove-y pptpd pppIptables -- flush POSTROUTING -- table natIptables -- flush FORWARDRm-rf/etc/pptpd. confRm-rf/etc/pppYum-y install make libpcap iptables gcc-c ++ logrotate tar cpio perl pam tcp_wrappersYum-y dkms-2.0.17.5-1.noarch.r
Click "VPN connection" on the NIC to configure the VPNAdd, select "Point-to-Point Tunneling Protocol (PPTP)", and createConnection name: casualAutomatic Connection: selectGateway: VPN Server domain name or IP addressUser name: User NamePassword: PasswordNT domain: not filled
Note: Do not select available for all users. Otherwise, the connection fails.
Then click
1. Add an extended repo file to the/etc/yum. repo directory. The content is as small
[Epel]Name = Extra Packages for Enterprise Linux 6-$ basearchBaseurl = http://download.fedoraproject.org/pub/epel/6/?basearch# Items list = https://mirrors.fedoraproject.org/metalink? Epel-6 arch = $ basearchFailovermethod = priorityEnabled = 1Gpgcheck = 1Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[Epel-debuginfo]Name = Extra Packages for Enterprise Linux 6-$ basearch-DebugBaseurl = http://download.fe
is:
(1). dkms-2.0.5-1.noarch.rpm
(2). pptpd-1.3.0-0.i386.rpm
(3). ppp-2.4.3-5.rhel4.i386.rpm
(4). kernel_ppp_mppe-0.0.5-2dkms.noarch.rpm
Installation command: First with RPM–IVH installation, if the prompts do not, and then use RPM–UVH to install
Because, some of the packages are already in the system, with-U is the upgrade package.
2, first edit the file:/etc/pptpd.conf just add two lines at the end of the file:
IP address of the Localip +linux server
REMOTEIP + IP Address segment tha
Most of the logs for logging on to the linux pptp vpn user name pptpd are stored in files such as/var/log/messages,/var/log/daemon. However, after careful reading, the user name is not found in the logs, I don't know which account the user used to log on. So I looked at pppd man and found some environment variables, such as IPLOCAL and IPREMOTE. After testing, I found that PEERNAME is the user name, in this
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 IP addresses aca * jj1 password[Optional] Mod
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
Step 2: Right-clickNetwork neighbors]And then click[Attribute]
Step 2: Click[Create a new connection]
Step 2: Click[Next]
Step 2: select[Connect to my workplace network]And then click[Next]
Step 2: select[Virtual Private Network Connection]And then click[Next]
Step 2: Enter the company name,For example, suvpnCan be customized, and then click[Next]
Step 2: If this step appears, select[Do not set the initial connection], Cl
Teamviewer vpn + win7 vpn create a remote access to the Intranet environment1. teamviewer vpn is the simplest. Select vpn as follows. However, you must select this feature when installing teamviewer.Connect and remember the partner ip address.2. Set up an "incoming connectio
this setting, the client machine can access the Internet (I can perform this operation on the virtual machine ). But I still cannot access the network after performing this operation on the lab server, so we need to create a NAT. Here we use powerful iptables to create NAT. First, install iptables: sudo apt-get intall iptables www.2cto.com and add a rule to the nat table: sudo iptables-t nat-a postrouting-
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.