Hello,
Having same issue.
Having this configuration currently:
[provider_wireguard]
Type = WireGuard
Name = Mullvad
Host = pl2-wireguard.mullvad.net
Domain = my.home.network
WireGuard.Address = 10.66.185.79/32
WireGuard.ListenPort = 51820
WireGuard.PrivateKey = Z0u/4vY15F23PJUrBljSHKK+AElMJ+2UYrgSf/k=
WireGuard.PublicKey = 9v9VK6f98rFS2iZvYxqTvNWeeT34EYn6TRRZqNC=
WireGuard.PresharedKey =
WireGuard.DNS = 8.8.8.8, 1.1.1.1
WireGuard.AllowedIPs = 0.0.0.0/0
WireGuard.EndpointPort = 51820
WireGuard.PersistentKeepalive = 25
Display More
When running connman I get this:
$ connmanctl connect vpn_pl2_wireguard_mullvad_net_my_home_network
Error /net/connman/service/vpn_pl2_wireguard_mullvad_net_my_home_network: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
I ran connman with debug:
# /usr/sbin/connmand -nr --config=/etc/connman/main.conf -d
...
connmand[8613]: ../src/service.c:connect_service() service 0x1cfb180
connmand[8613]: ../src/service.c:__connman_service_connect() service 0x1cfb180 state failure connect reason user -> user
connmand[8613]: ../src/service.c:__connman_service_clear_error() service 0x1cfb180
connmand[8613]: ../src/service.c:__connman_service_ipconfig_indicate_state() service 0x1cfb180 (vpn_pl2_wireguard_mullvad_net_my_home_network) old state 7 (failure) new state 1 (idle) type 1 (IPv4)
connmand[8613]: ../src/ipconfig.c:__connman_ipconfig_disable() ipconfig 0x1cfb318
connmand[8613]: ../src/service.c:service_indicate_state() service 0x1cfb180 old failure - new idle/idle => idle
connmand[8613]: ../plugins/vpn.c:vpn_disconnect_check()
connmand[8613]: ../src/session.c:service_state_changed() service 0x1cfb180 state 1
connmand[8613]: ../src/service.c:__connman_service_disconnect() service 0x1cfb180
connmand[8613]: ../src/agent.c:connman_agent_cancel() context 0x1cfb180
connmand[8613]: ../src/provider.c:connman_provider_disconnect() provider 0x1cead48
connmand[8613]: ../plugins/vpn.c:provider_disconnect() provider 0x1cead48
connmand[8613]: ../src/provider.c:provider_indicate_state() state 6
connmand[8613]: ../src/service.c:__connman_service_ipconfig_indicate_state() service 0x1cfb180 (vpn_pl2_wireguard_mullvad_net_my_home_network) old state 1 (idle) new state 6 (disconnect) type 1 (IPv4)
connmand[8613]: ipconfig state 6 ipconfig method 1
connmand[8613]: ../src/provider.c:provider_indicate_state() state 1
connmand[8613]: ../src/6to4.c:__connman_6to4_remove() tunnel ip address (null)
connmand[8613]: ../src/inet.c:connman_inet_clear_address() index 0 address (null) prefix_len 0 peer (null) broadcast (null)
connmand[8613]: ../src/session.c:ipconfig_changed() service 0x1cfb180 ipconfig 0x1cfb318
connmand[8613]: ../src/session.c:ipconfig_changed() service 0x1cfb180 ipconfig 0x1cfb388
connmand[8613]: ../src/ipconfig.c:__connman_ipconfig_disable() ipconfig 0x1cfb318
connmand[8613]: ../src/ipconfig.c:__connman_ipconfig_disable() ipconfig 0x1cfb388
connmand[8613]: ../src/connection.c:__connman_connection_update_gateway() default 0x1cf6808
connmand[8613]: ../src/provider.c:__connman_provider_connect() provider 0x1cead48
connmand[8613]: ../plugins/vpn.c:connect_provider() data 0x1ceb8d8 user (nil) path /net/connman/vpn/connection/pl2_wireguard_mullvad_net_my_home_network sender :1.1286
connmand[8613]: ../plugins/vpn.c:connect_provider() transport ethernet_001e064234a8_cable
connmand[8613]: ../src/provider.c:provider_indicate_state() state 2
connmand[8613]: ../src/service.c:__connman_service_ipconfig_indicate_state() service 0x1cfb180 (vpn_pl2_wireguard_mullvad_net_my_home_network) old state 1 (idle) new state 2 (association) type 1 (IPv4)
connmand[8613]: ../src/service.c:service_indicate_state() service 0x1cfb180 old idle - new association/idle => association
connmand[8613]: ../plugins/vpn.c:vpn_disconnect_check()
connmand[8613]: ../src/session.c:service_state_changed() service 0x1cfb180 state 2
connmand[8613]: ../src/connection.c:__connman_connection_update_gateway() default 0x1cf6808
connmand[8613]: ipconfig state 2 ipconfig method 1
connmand[8613]: ../src/service.c:__connman_service_connect() service 0x1cfb180 err -115
connmand[8613]: ../plugins/vpn.c:connect_reply() user_data 0x1ceb8d8 path (null)
connmand[8613]: Connect reply: Invalid arguments (net.connman.Error.InvalidArguments)
connmand[8613]: ../plugins/vpn.c:connect_reply() data 0x1ceb8d8 cb_data (nil)
connmand[8613]: ../src/service.c:service_send_changed()
connmand[8613]: ../src/service.c:service_append_added_foreach() changed /net/connman/service/ethernet_001e064234a8_cable
connmand[8613]: ../src/service.c:service_append_added_foreach() changed /net/connman/service/vpn_pl2_wireguard_mullvad_net_my_home_network
connmand[8613]: ../src/service.c:connect_timeout() service 0x1cfb180
connmand[8613]: ../src/provider.c:connman_provider_disconnect() provider 0x1cead48
connmand[8613]: ../plugins/vpn.c:provider_disconnect() provider 0x1cead48
connmand[8613]: ../src/provider.c:provider_indicate_state() state 6
connmand[8613]: ../src/service.c:__connman_service_ipconfig_indicate_state() service 0x1cfb180 (vpn_pl2_wireguard_mullvad_net_my_home_network) old state 2 (association) new state 6 (disconnect) type 1 (IPv4)
connmand[8613]: ../src/service.c:service_rp_filter() disconnected vpn_pl2_wireguard_mullvad_net_my_home_network ipconfig 0x1cfb318 method 3 count 0 filter 0
connmand[8613]: ../src/service.c:service_indicate_state() service 0x1cfb180 old association - new disconnect/idle => disconnect
connmand[8613]: ../plugins/vpn.c:vpn_disconnect_check()
connmand[8613]: ../src/session.c:service_state_changed() service 0x1cfb180 state 6
connmand[8613]: ../src/provider.c:provider_service_changed() service 0x1cfb180 vpn_pl2_wireguard_mullvad_net_my_home_network state 6 index 0/-1
connmand[8613]: ../src/wispr.c:__connman_wispr_stop() service 0x1cfb180
connmand[8613]: ../src/wpad.c:__connman_wpad_stop() service 0x1cfb180
connmand[8613]: ../src/connection.c:__connman_connection_update_gateway() default 0x1cf6808
connmand[8613]: ipconfig state 6 ipconfig method 1
connmand[8613]: ../src/provider.c:provider_indicate_state() state 1
connmand[8613]: ../src/service.c:__connman_service_ipconfig_indicate_state() service 0x1cfb180 (vpn_pl2_wireguard_mullvad_net_my_home_network) old state 6 (disconnect) new state 1 (idle) type 1 (IPv4)
connmand[8613]: ../src/ipconfig.c:__connman_ipconfig_disable() ipconfig 0x1cfb318
connmand[8613]: ../src/service.c:service_indicate_state() service 0x1cfb180 old disconnect - new idle/idle => idle
connmand[8613]: ../plugins/vpn.c:vpn_disconnect_check()
connmand[8613]: ../src/session.c:service_state_changed() service 0x1cfb180 state 1
connmand[8613]: ../src/connection.c:__connman_connection_update_gateway() default 0x1cf6808
connmand[8613]: ../src/service.c:__connman_service_ipconfig_indicate_state() service 0x1cfb180 (vpn_pl2_wireguard_mullvad_net_my_home_network) old state 1 (idle) new state 7 (failure) type 1 (IPv4)
connmand[8613]: ../src/ipconfig.c:__connman_ipconfig_disable() ipconfig 0x1cfb318
connmand[8613]: ../src/service.c:service_indicate_state() service 0x1cfb180 old idle - new failure/idle => failure
connmand[8613]: ../plugins/vpn.c:vpn_disconnect_check()
connmand[8613]: ../src/session.c:service_state_changed() service 0x1cfb180 state 7
connmand[8613]: ../src/provider.c:provider_service_changed() service 0x1cfb180 vpn_pl2_wireguard_mullvad_net_my_home_network state 7 index 0/-1
connmand[8613]: ../src/agent.c:connman_agent_report_error_full() agent 0x1cf4358 sender (null) context 0x1cfb180 path //agent_wifi
connmand[8613]: ../src/service.c:service_save() service 0x1cfb180 new 1
connmand[8613]: ../src/connection.c:__connman_connection_update_gateway() default 0x1cf6808
connmand[8613]: ipconfig state 7 ipconfig method 1
connmand[8613]: ../src/service.c:run_vpn_auto_connect() stopping, no autoconnectable VPNs found
connmand[8613]: ../src/service.c:service_send_changed()
connmand[8613]: ../src/service.c:service_append_added_foreach() changed /net/connman/service/ethernet_001e064234a8_cable
connmand[8613]: ../src/service.c:service_append_added_foreach() changed /net/connman/service/vpn_pl2_wireguard_mullvad_net_my_home_network
Display More
This one is strange to me:
connmand[8613]: Connect reply: Invalid arguments (net.connman.Error.InvalidArguments)
I can add that I've tried with setting server IP instead of hostname, and removed IPv6 for local address as well, and tried few modification, always got same errors.