Vpn in wdcp

Source: Internet
Author: User
Tags vps

If you have installed wdcp in the linux virtual host management system, you may have questions about how to use vpn normally under wdcp. The following describes the solution. 1. First, check whether the PPP and TUN of your VPS are enabled: run the command cat/dev/ppp # Show No such device or address to pass through cat/dev/net/tun # Show File descriptor in bad state to pass, these two parameters must pass at the same time. If they are not enabled, you can send a Ticket request to the VPS provider for activation: hellococould you enabled TUN-TAP for me? I want run pptp-vpn on my VPS. thank you. after PPP and TUN are enabled, start to install ppp and iptables: yum install-y ppp iptables. 2. install pptp: rpm-ivh http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.i386.rpm # rpm-ivh http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.x86_64.rpm for 32-bit systems # For 64-bit Systems 3. Configure pptp, edit/etc/pptpd. conf file: vim/etc/pptpd. conf removes the # Above the following field: localip 192.168.0.1 remoteip 192.168.0.234-238,192.168 .0.245 Note: As shown in Figure If you are not proficient in commands, you can use sftp to log on and modify (similar to FTP) 4. Edit the/etc/ppp/options.ppt pd file vim/etc/ppp/options.ppt pd, remove the # Before ms-dns, and use the Google DNS server to change it to the following fields: ms-dns 8.8.8.8ms-dns 8.8.4.4 5. Set the VPN account password and edit the/etc/ppp/chap-secrets file: vim/etc/ppp/chap-secrets 6. Modify kernel settings to support forwarding and edit/etc/sysctl. conf file: vim/etc/sysctl. conf. the value of ipv4.ip _ forward is changed to 1, and. ipv4.tcp _ syncookies = 1 "prefix #7. Enable sysctl. the conf configuration file takes effect and adds iptables forwarding rules: sysctl-p iptables-t nat- POSTROUTING-s 192.168.0.0/24-j SNAT -- to-source ***. ***. ***. ***#(***. ***. ***. * ** Save the iptables forwarding rule for the public IP address of your VPS:/etc/init. d/iptables save restart iptables:/etc/init. d/iptables restart pptp service:/etc/init. d/pptpd restart set to automatically run pptp service upon startup: chkconfig pptpd on set to automatically run iptables service upon startup: chkconfig iptables on if connection error 619 occurs, enter the following command to solve the problem: rm/dev/pppmknod/dev/ppp c 108 0 Note: If error 734 occurs, modify the/etc/ppp/options.ppt pd file and add # book before the require-mppe-128 Field By seoyeo in wdlinux Forum http://www.wdlinux.cn/bbs/ published the creation, reprint please note!

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.