You are not logged in.

#1 2012-07-08 22:45:48

halhen
Member
From: Gothenburg, Sweden
Registered: 2009-04-08
Posts: 56
Website

pvpn - VPN over SSH

There are several ways of setting up a Layer 3 or even Layer 2 VPN using OpenSSH. pvpn is a small wrapper around pppd and SSH to set up Layer 3 VPNs and route traffic through them.

Typical use cases: quick-and-dirty access to a private network (for example setting up a "regular" reverse SSH tunnel out of a NAT:ed office network, and connect to it from home), or to encrypt your traffic on an open wireless network.

Requirements

  • pppd installed on both client and server

  • ssh on client and sshd running on server

  • root access on client and root login using authentication key on the SSH server

For routing you also need

  • iproute2

  • IP forwarding and masquerading enabled

Hopefully, the --help switch will tell you enough to use it:

pvpn --help

Let me know if I screwed up somewhere.

Last edited by halhen (2012-07-16 13:10:45)


statnot - status text manager and notification-daemon for dwm, wmii and the like
shic - SHellscript Irc Client

Offline

#2 2012-07-16 12:57:36

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: pvpn - VPN over SSH

How convenient! I'll have to check this out smile


Visit my blog and my DeviatArt page

Offline

#3 2012-07-16 13:06:27

halhen
Member
From: Gothenburg, Sweden
Registered: 2009-04-08
Posts: 56
Website

Re: pvpn - VPN over SSH

Well, it grew and it moved. Sources and docs are now at https://github.com/halhen/pvpn . It is also in AUR as pvpn.


statnot - status text manager and notification-daemon for dwm, wmii and the like
shic - SHellscript Irc Client

Offline

#4 2012-07-16 22:41:00

chneukirchen
Member
Registered: 2010-02-11
Posts: 100

Re: pvpn - VPN over SSH

Tried sshuttle? Doesn't need root on server.

Offline

Board footer

Powered by FluxBB