openvpn server in client-to-client mode
Hi
I would like to run an openvpn server on a shell account without root. A server that does only client-to-client, with no interface on the server itself. But openvpn says it needs an tun or tap device.
I understand this might require the tun or tap device itself to be emulated.
Yours faithfully,
Tor Håkon Gjerde
Quoted 7 lines · Tor Håkon Gjerde
Hi
I would like to run an openvpn server on a shell account without root. A server that does only client-to-client, with no interface on the server itself.
But openvpn says it needs an tun or tap device.
I understand this might require the tun or tap device itself to be emulated.
How from userspace you are going to access tap/tun device and insert
IP/Ethernet packets? If you run openvpn and want it to drop it's privileges you have to use --persist-tun - it can not open the device after dropping it's privileges. Imagine what happends if any user can create such device and start sending packets!
SSH can be used to pipe std{in,out,err}, forward ports and emulate
SOCKS proxy, but that's another story... maybe that's what you need?
Signature · 4 lines
Regards, Doncho N. Gunchev Registered Linux User #291323 at counter.li.org GPG-Key-ID: 1024D/DA454F79 http://pgp.mit.edu Key fingerprint = 684F 688B C508 C609 0371 5E0F A089 CB15 DA45 4F79
Quoted 2 lines · Doncho N. Gunchev
How from userspace you are going to access tap/tun device and insert
IP/Ethernet packets?
He's not going to insert IP or ethernet packets at all -- he's only doing client-to-client relaying, and so just using regular sockets will do. In short, the host running a VPN is not in this instance an endpoint for the VPN -- the only endpoints are the clients.
(I had a discussion w/ him about this on IRC before he posted to the list).
Quoted 5 lines · Charles Duffy
Quoted 2 lines · Doncho N. Gunchev
How from userspace you are going to access tap/tun device and insert
IP/Ethernet packets?
Quoted 7 lines
He's not going to insert IP or ethernet packets at all -- he's only doing client-to-client relaying, and so just using regular sockets will do. In short, the host running a VPN is not in this instance an endpoint for the VPN -- the only endpoints are the clients.
(I had a discussion w/ him about this on IRC before he posted to the list).
Ops, sorry. I've missed the point...
Signature · 4 lines
Regards, Doncho N. Gunchev Registered Linux User #291323 at counter.li.org GPG-Key-ID: 1024D/DA454F79 http://pgp.mit.edu Key fingerprint = 684F 688B C508 C609 0371 5E0F A089 CB15 DA45 4F79
Quoted 6 lines · On Mon, 20 Dec 2004, [iso-8859-1] Tor Håkon Gjerde wrote:
Hi
I would like to run an openvpn server on a shell account without root. A server that does only client-to-client, with no interface on the server itself.
But openvpn says it needs an tun or tap device.
I understand this might require the tun or tap device itself to be emulated.
It's possible but would require a patch.
Essentially you would use a normal server configuration, but then use "dev null" rather than tun or tap. It should be possible to run from a non-root shell since no tun/tap device needs to be opened.
Right now the OpenVPN server mode only supports "dev tap" or "dev tun" so someone would need to go through to the code to add support for "dev null" as well.
"dev null" is presently only supported in point-to-point mode.
James
Hi
It doesn't sound that hard to make that patch.
If someone would be so kind and send me one, I would be very grateful.
Tor Håkon Gjerde
----- Original Message ----- From: "James Yonan" <[email protected]...>
Subject: Re: [Openvpn-devel] openvpn server in client-to-client mode
Quoted 6 lines · On Mon, 20 Dec 2004, [iso-8859-1] Tor Håkon Gjerde wrote:
Hi
I would like to run an openvpn server on a shell account without root. A server that does only client-to-client, with no interface on the server itself.
But openvpn says it needs an tun or tap device.
I understand this might require the tun or tap device itself to be emulated.
It's possible but would require a patch.
Essentially you would use a normal server configuration, but then use "dev null" rather than tun or tap. It should be possible to run from a non-root shell since no tun/tap device needs to be opened.
Right now the OpenVPN server mode only supports "dev tap" or "dev tun" so someone would need to go through to the code to add support for "dev null" as well.
"dev null" is presently only supported in point-to-point mode.
James
Quoted 2 lines · Tor Håkon Gjerde
It doesn't sound that hard to make that patch. If someone would be so kind and send me one, I would be very grateful.
Presuming that you aren't a coder yourself -- it typically doesn't work that way. Generally speaking, folks in the OSS world scratch their own itches -- and by asking you to submit a patch, James was gently declining to implement your feature (at least free-of-charge) and urging you to write or commission an implementation yourself.
WRT the latter -- I don't know what the market will bear at the moment, but after Christmas I might be available[1] for contract work for $70/hr or so, and for this project in particular I'd be willing to agree to a 3-hour cap. Better, you could ask James if you could hire him to implement this feature -- in all likelihood, he'd be done faster and provide better-quality work.
[1] - Depends on how my employer is doing; I also might be entirely unavailable for outside work.
Quoted 18 lines · Charles Duffy
Quoted 2 lines · Tor Håkon Gjerde
It doesn't sound that hard to make that patch. If someone would be so kind and send me one, I would be very grateful.
Presuming that you aren't a coder yourself -- it typically doesn't work that way. Generally speaking, folks in the OSS world scratch their own itches -- and by asking you to submit a patch, James was gently declining to implement your feature (at least free-of-charge) and urging you to write or commission an implementation yourself.
WRT the latter -- I don't know what the market will bear at the moment, but after Christmas I might be available[1] for contract work for $70/hr or so, and for this project in particular I'd be willing to agree to a 3-hour cap. Better, you could ask James if you could hire him to implement this feature -- in all likelihood, he'd be done faster and provide better-quality work.
Quoted 2 lines
[1] - Depends on how my employer is doing; I also might be entirely unavailable for outside work.
That's reasonably well-said and sort of gets down to the economic reality of open source development. Most of us who are actively working on GPL projects need to somehow juggle our open source activities with consulting work that pays the bills. So the best way to get your wishlists implemented quickly is to help fund the project.
The proposed feature is intriguing, and if someone submitted it as a patch, I'd probably accept it (for post 2.0). It would essentially allow you to run an OpenVPN client-to-client server without needing any tun/tap interface on the server side, and without needing to start the openvpn daemon as root. You could even run OpenVPN this way on platforms which have no TUN/TAP driver. It's also interesting from a testing perspective, since it would let someone test new versions of the code on lots of different platforms while only needing non-root shell access.
But given where we are in the 2.0 release cycle, and the economic realities of constantly needing to find funding to support the project, etc. I'd have to put a request like this on the wishlist for now.
James