OpenVZ Forum


Home » General » Support » PPTP in Container - Kernel 2.6.32
PPTP in Container - Kernel 2.6.32 [message #41332] Sun, 02 January 2011 12:47 Go to next message
shatter is currently offline  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 Go to previous messageGo to next message
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 #41342 is a reply to message #41339] Mon, 03 January 2011 14:57 Go to previous messageGo to next message
shatter is currently offline  shatter
Messages: 18
Registered: September 2009
Location: Germany
Junior Member
blade2:~#  cat /proc/vz/version
ovz005
blade2:~#  vzctl --version
vzctl version 3.0.24
blade2:~#


I hate to ask: does
* 2.6.27 briullov.1 or later
mean
a later 2.6.27 "briullov.x" Kernel or just a kernel version greater than 2.6.27 - like 2.6.32 ... ?

Kind regards,

Joachim
Re: PPTP in Container - Kernel 2.6.32 [message #41387 is a reply to message #41342] Wed, 12 January 2011 20:45 Go to previous messageGo to next message
tutt is currently offline  tutt
Messages: 19
Registered: April 2007
Junior Member
I would like to know the answer to this as well..
Re: PPTP in Container - Kernel 2.6.32 [message #44153 is a reply to message #41387] Tue, 22 November 2011 06:29 Go to previous messageGo to next message
Rene is currently offline  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 #44285 is a reply to message #44153] Tue, 29 November 2011 06:53 Go to previous messageGo to next message
Rene is currently offline  Rene
Messages: 40
Registered: September 2006
Member
Nobody? Not even a hint? If I can get this working I pledge to write a Wiki article explaining the procedure.

[Updated on: Tue, 29 November 2011 06:57]

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 Go to previous message
mustardman is currently offline  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

Previous Topic: How to download through venet0 on host
Next Topic: IP outgoing connections goes through host IP not VE - mail refuses to work
Goto Forum:
  


Current Time: Sun Nov 17 17:19:09 GMT 2024

Total time taken to generate the page: 0.03949 seconds