Answer the question
In order to leave comments, you need to log in
Network-Manager and auto-raising openvpn client connection?
Hello.
Tell me please. There is a machine with debian 10th.
Is it possible using Network-Manager and its nmtui or nmcli utilities to automatically
connect the openvpn client to the server when the machine boots? Is it possible to do with only NM utilities without openvpn services and other crutches? (does not ask for a password when connecting, already fed, and the autoconnect yes properties and another connection.something from the NM connection properties do not give any results)
(manually the connection is also established via nmcli and nmtui)
[email protected]:~#
[email protected]:~# nmcli cu mobile
Connection activated successfully (live D-Bus address: /org/freedesktop/NetworkManager/ActiveConnection/4)
[email protected]:~# nmcli cd mobile
"mobile-TO-IPFire" connection disconnected successfully (active D-Bus address: /org/freedesktop/NetworkManager/ActiveConnection/4)
[email protected]:~#
view connections
[email protected]:~# nmcli cs
NAME UUID TYPE DEVICE
mobile f5ff9403 vpn-a271-026428357848 -0c58-4130
enx0c5b8 tun0 55aac982-fc73-4547-850a 573,234,545,629 tun tun0- wire
connection 3-be09-845286457865 ethernet d3c43329-4116-376f enx0c5b8
Ifupdown (enp1s0) d4f520cc-fe82-d7ba-f35b-064572464253 ethernet --
Wired 1 b1afcf17-8a2b-32cd-a36f-804672538619 ethernet --
Wired 2 63919d98-1d3d-356e-b9af-775944304821 ethernet --
Answer the question
In order to leave comments, you need to log in
Without crutches, this is to add openvpn to the list of services that start at boot. systemctl
you know and all that...
Nmcli connection $ the
NAME the UUID the TYPE the DEVICE
apx_home f07cf12b-a843-46a0-A455-a125ac4480af the vpn wlp7s0
Apx-OpenWRT_5G f1b218cb-12a0-489d-98aa-00956b0a7e50 wifi wlp7s0
tun0 9118cee4 bc8c-4788-ae72-c0eb7fed0dad-the tun tun0
docker0 a36e55be-481a- 4f87-89eb-885a7303cd38 bridge docker0
Wired connection 1 84a9a1ae-2c90-3aae-b6f8-693b689611fb ethernet --
$ nmcli connection edit Apx-OpenWRT_5G
nmcli> set connection.secondaries f07cf12b-a843-46a0-a455-a125ac4480af
nmcli>
The connection "Apx-OpenWRT_5G" (f1b218cb-12a0-489d-98aa-00956b0a7e50) was updated successfully.
nmcli>quit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question