You are not logged in.

#1 2019-08-11 15:22:26

shashilx
Member
Registered: 2009-06-02
Posts: 14

nmcli or nmtui - how to create vpn connection?

Hi all!

Trying to create VPN connection using nmcli or nmtui but can't find any examples for this. Some people say how to import, some how to connect but no one - how to create from scratch. I only have address where I need to connect, login and password. Have only ssh access, no graphical interface at all. So question - how to create (no other than create) vpn connection from command line?
networkmanager-pptp is installed. nmtui have no offers to create vpn connection.

Last edited by shashilx (2019-08-11 15:23:58)

Offline

#2 2019-08-11 15:56:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: nmcli or nmtui - how to create vpn connection?

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-08-11 16:19:25

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: nmcli or nmtui - how to create vpn connection?

What are you trying to connect to?

Offline

#4 2019-08-11 16:21:06

shashilx
Member
Registered: 2009-06-02
Posts: 14

Re: nmcli or nmtui - how to create vpn connection?

pptp. I know how to create it putting file in /etc/ppp/peers but my question is in my first post. I don't need help with anything but what topic say.

Offline

#5 2019-08-11 16:22:32

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: nmcli or nmtui - how to create vpn connection?

Offline

#6 2019-08-11 16:33:15

shashilx
Member
Registered: 2009-06-02
Posts: 14

Re: nmcli or nmtui - how to create vpn connection?

This article don't say anything about nmcli or nmtui. And I say before - I know how to connect and my connection worked great. My question ONLY abount nmcli/nmtui and create pptp connection. No any other.

Last edited by shashilx (2019-08-11 16:33:36)

Offline

#7 2019-08-11 16:55:25

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: nmcli or nmtui - how to create vpn connection?

Probably something like

nmcli connection add type vpn con-name "PPTP VPN" vpn-type pptp ... vpn.user USER vpn.password PASSWORD vpn.gateway EXAMPLE.COM ...

https://github.com/GNOME/NetworkManager … ines.h#L36

Last edited by progandy (2019-08-11 17:01:27)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB