On Tue, 2020-01-07 at 16:05 +0330, Babak Razmjoo via networkmanager- list wrote: > I have a CentOS 7 server which is connected to a PPTP VPN network. > That means CentOS7 is a PPTP client itself. I need to direct HTTP > requests to the PPTP server, but when I click the ppp0 switch in > cockpit web panel, or run 'nmcli device connect ppp0', I get this > error: > > Error: Failed to add/activate new connection: Device class > NMDevicePpp had no complete_connection method
Hi, `nmcli device connected` can do one of two things: 1) if no suitable profile exists, create one and activate it. 2) if a suitable profile exits, activate it. In that case, it's very much the same as `nmcli connection up $PROFILE`, except that NetworkManager will automatically find the profile. VPN profiles aren't handled like regular profiles, and hence `nmcli device connect` wouldn't work for it anyway. That probably should be improved. Instead, create/modify the profile to your liking. Start by looking at the available profiles with `nmcli connection`. Activate the right one with `nmcli connection up`. best, Thomas > > My system specs: > > $ uname -a > Linux localhost.localdomain 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec > 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux > > $ ip a > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN > group default qlen 1000 > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > valid_lft forever preferred_lft forever > 2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast > state UP group default qlen 1000 > link/ether 00:0c:29:2b:ba:88 brd ff:ff:ff:ff:ff:ff > inet 192.168.100.52/24 brd 192.168.100.255 scope global > noprefixroute dynamic ens33 > valid_lft 1632519sec preferred_lft 1632519sec > 37: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1446 qdisc > pfifo_fast state UNKNOWN group default qlen 3 > link/ppp > inet 192.168.73.250 peer 192.168.73.1/32 scope global ppp0 > valid_lft forever preferred_lft forever > > $ ip route > default via 192.168.100.102 dev ens33 proto dhcp metric 100 > 192.168.73.1 dev ppp0 proto kernel scope link src 192.168.73.250 > 192.168.100.0/24 dev ens33 proto kernel scope link src 192.168.100.52 > metric 100 > > $ route > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref > Use Iface > default gateway 0.0.0.0 UG 100 0 > 0 ens33 > 192.168.73.1 0.0.0.0 255.255.255.255 UH 0 0 > 0 ppp0 > 192.168.100.0 0.0.0.0 255.255.255.0 U 100 0 > 0 ens33 > _______________________________________________ > networkmanager-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/networkmanager-list
signature.asc
Description: This is a digitally signed message part
_______________________________________________ networkmanager-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/networkmanager-list
