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 Nosuchdeviceo... 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 confirming that PPP and TUN are enabled, start to install ppp and iptables: yum install-y ppp iptables II. install pptp: rpm-ivh http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.i386.rpm # For 32-bit system rpm-ivh http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.x86_64.rpm # For 64-bit systems 3. configure pptp and edit/etc/pptpd. conf file: vim/etc/pptpd. conf: remove the # above the following field: localip 192.168.0.1 remoteip 192.168.0.234-238,192.168 .0.245 note: If you are not proficient in the command, you can use sftp to log on and modify it (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-a 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 is displayed, modify the/etc/ppp/options.ppt pd file, in front of the require-mppe-128 field # This article by seoyeo wdlinux Forum http://www.wdlinux.cn/bbs/ Post creation. For more information, see!
Related Article

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.