-1

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.com
ping: google.com: Temporary failure in name resolution

when i turn it off - the ping command works well

/etc/resolv.conf:

8.8.8.8
8.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 yes
nmcli 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

1
  • 1
    What do you mean with your last paragraph? You set it up again and it works? Anyway, did you try setting ipv4.dns-search to ~. so the VPN's DNS servers are used?
    – ecdsa
    Commented Jun 7 at 15:30

0

You must log in to answer this question.

Browse other questions tagged .