Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4437

Hostnames are not resolved when i turn on Strongswan VPN ubuntu 22.04

$
0
0

I have created a connection on my VPS:

nmcli connection add type vpn vpn-type strongswan con-name "vpn" ifname "*" vpn.data "address=<ADDRESS>, certificate-ignore=yes, encap=yes, ipcomp=yes, method=eap, password-flags=0, request-inner-ip=yes, user=<USER>, remote-identity=<ADDRESS>, local-identity=<IDENTITY>, virtual=yes" vpn.secrets "password=<PASSWORD>"

Then i have run it:

nmcli c up vpn

and after that i can not ping any hostname (it works only if i ping just an IP - ping 4.2.2.2)

ping google.comping: google.com: Temporary failure in name resolution

when i turn it off - the ping command works well

/etc/resolv.conf:

8.8.8.88.8.4.4

I have also tried to set DNS manually:

nmcli connection modify vpn ipv4.dns "8.8.8.8, 8.8.4.4"nmcli connection modify vpn ipv4.ignore-auto-dns yesnmcli connection modify vpn ipv4.dns-priority -1

I also have set up such a VPN with the same settings (i have compared it using nmcli c show vpn) and it works as expected.I will be grateful for any ideas


Viewing all articles
Browse latest Browse all 4437

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>