Run pppd over SSH (the simplest linuxvpn)

Source: Internet
Author: User

Run pppd over SSH (the simplest linuxvpn)

Http://www.lupaworld.com/action_viewstutorial_itemid_8226.html

Run pppd over SSH (the simplest Linux VPN)
SBA 2003.1.10
In order to pass the firewall of UDP packets to QQ
Tried many methods
It's good to use snake's SOCKS5 proxy. You can use Windows as an Internet host.
In Linux, Stunnel only forwards packets that do not support qq udp.
So I thought that VPN pptpd is a very good VPN Client that supports windows.
It is a pity that the firewall should enable IP Forwarding, which does not meet my requirements,

Today, I saw an SSH-PPP script.ArticleIt turned out to be so simple !!

As long as you have two Linux instances? With sshd service on the Internet, you can use the Firewall
Create a VPN!

My dialing machine ADSL is a dynamic domain name sba.3322.org
A Linux Intranet (10.9.0.16) in our company can access 22 (SSH) of sba.3322.org through the company's gateway Nat)

If both machines have pppd conditions, OK!

Start:
On a home machine
Useradd VPN
Ssh-keygen
Enter file in which to save the key (/root/. Ssh/identity): vpnkey

Now we have vpnkey and vpnkey. Pub
Configure sshd/etc/ssh/sshd_config
Enable rsaauthentication Yes

CP vpnkey. pub/home/VPN/. Ssh/authorized_keys

Add the following content to/etc/sudoers
Cmnd_alias VPN =/usr/sbin/pppd
VPN all = nopasswd: VPN

Test the Local Machine
Sudo/usr/sbin/pppd noauth
~

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.