PPTP in Container - Kernel 2.6.32 [message #41332] |
Sun, 02 January 2011 12:47 |
shatter
Messages: 18 Registered: September 2009 Location: Germany
|
Junior Member |
|
|
Hello *,
with the search option fon "pptp" I found a pointer to wiki article "http://wiki.openvz.org/PPP_in_container".
In there a kernel version 2.6.27 is said to be required.
On my "production system" I run kernel version 2.6.32 ... ist there a chance/way to get PPTP running in a Debian-5 container on that kernel version?
Thanx,
Joachim
|
|
|
Re: PPTP in Container - Kernel 2.6.32 [message #41339 is a reply to message #41332] |
Mon, 03 January 2011 12:36 |
|
curx
Messages: 739 Registered: February 2006 Location: Nürnberg, Germany
|
Senior Member |
|
|
Hi,
please post your OpenVZ kernel version and vzctl package:
% cat /proc/vz/version
% vzctl --version
as mentioned on the OpenVZ wiki:
---8<...
* 2.6.27 briullov.1 or later
---8<...
and vzctl 3.0.24 (the feature ppp patched are included)
a ppp(d) should work
Bye,
Thorsten
[Updated on: Mon, 03 January 2011 12:36] Report message to a moderator
|
|
|
|
|
Re: PPTP in Container - Kernel 2.6.32 [message #44153 is a reply to message #41387] |
Tue, 22 November 2011 06:29 |
Rene
Messages: 40 Registered: September 2006
|
Member |
|
|
I just followed the wiki article from the OP and was able to get the gibberish output shown in the end, using the 2.6.32-042stab039.11 kernel (latest stable at this time), so I would think that part ought to work now.
According to the same article, from here on it should be like installing PPTP in a standalone server, so for next step I followed the description in http://www.anindya.com/installing-configuring-pptp-vpn-rhel- centos/.
Everything goes fine until I add the line
iptables -t nat -A POSTROUTING -o venet0 -j MASQUERADE
(eth0 changed to venet0)
but this throw an error "iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)"
# insmod ipt_MASQUERADE
insmod: can't read 'ipt_MASQUERADE': No such file or directory
Installing a VPN server on a VE ought to be a pretty routine issue, yet this forum is full of unanswered questions about how to set this up. Would it perhaps be possible to create/update an up-to-date wiki page explaining how to set this up with the current kernels once and for all.
[Updated on: Tue, 22 November 2011 07:01] Report message to a moderator
|
|
|
|
Re: PPTP in Container - Kernel 2.6.32 [message #48660 is a reply to message #44285] |
Sat, 27 October 2012 17:36 |
mustardman
Messages: 91 Registered: October 2009
|
Member |
|
|
For OpenVZ I believe the iptables rule should be.
iptables -t nat -A POSTROUTING -j SNAT --to-source 11.22.33.44
Change 11.22.33.44 to your VPS's public IP address.
I realize this thread is almost a year old but better late than never. I just went through this myself so thought I would contribute. Seems to work well on latest 2.6.32 kernels.
[Updated on: Sat, 27 October 2012 22:08] Report message to a moderator
|
|
|