Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to configure a remote linux (Ubuntu Precise) to use a PPTP VPN. I can only access to it using ssh, so I don't have a graphical interface (neither do I want it).

Some hours googling:

  • Guides on where to click in the graphical interface (useless);
  • pptp-linux:
    • getaddrinfo(): Name or service not known
  • nmcli
    • ** (process:5244): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files
    • ** (process:5244): WARNING **: Error enabling/disabling networking: The name org.freedesktop.NetworkManager was not provided by any .service files

Can anyone point me a tutorial, a command that actually works, or any other way to setup all network traffic to go through the PPTP VPN on that machine?


My VPN service has expired and I will not renew it. I no longer have access to a PPTP VPN, so I can not replicate the problem, nor do I have the need to verify if any given answer solves the problem I described.

share|improve this question

closed as too localized by Michael Mrozek Dec 29 '12 at 19:27

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

It's easy to configure pppd profile, try google about pppd. – warl0ck Sep 21 '12 at 13:40
Hmmm, that getaddrinfo error sounds like you may have made a typo in a host name, or maybe DNS doesn't work on the box. Any idea what its trying to resolve when getting that error? – derobert Nov 20 '12 at 16:38
It was trying to resolve the server address that the VPN provider gave me, which is not active anymore. I knew the address was good, at the time I was also using it in Mac OS. – pfac Nov 29 '12 at 18:11

There is at least two good howto about that.

Take a look at them first, please

share|improve this answer
I followed the PPTP Client documentation and got the getaddrinfo(): Name or service not known – pfac Sep 21 '12 at 18:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.