12

My country has network block, so when i use "nmcli connection up uuid <UUID>", it always show "Connection establish successful" and then show "Network connection failed :unknown reason:" right now, I find network manager can config log, my question is where is network manager log?

Fortunately, when i use Linux mint GUI to enable VPN (Network manager GUI > VPN connections > my vpn) it work well.

Update, please don't tell me try to use OpenVPN, my country has blocked this way since too many people use it.

Pablo Bianchi
  • 17,371

1 Answers1

9

As mentioned on comments, you can grep --color NetworkManager /var/log/syslog | less, or better use journalctl:

journalctl -u NetworkManager.service

-u, --unit=UNIT|PATTERN Show messages for the specified systemd unit UNIT (such as a service unit), or for any of the units matched by PATTERN. [...]

You can use -p/--priority to also filter output by message priorities or priority ranges (err, warning, etc).

Hardly your country can block the use of OpenVPN. They probably block IPs, ports, unless they use advance Deep Packet Inspection (DPI) techniques.

Pablo Bianchi
  • 17,371