wireguard kill switch and internet connection fails

Forum Forums General Software wireguard kill switch and internet connection fails

  • This topic has 0 replies, 1 voice, and was last updated Jun 7-8:02 am by ATGhQlsvhij19tw5jgDi.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #84221
    Member
    ATGhQlsvhij19tw5jgDi

      Hi everyone,
      I guess this is for experts.
      I am following this guide:
      https://mullvad.net/en/help/wireguard-and-mullvad-vpn/
      I have replaced the default resolvconf with openresolv as it appears that wireguard does not go well with resolvconf.
      If I follow the guide and I add:

      PostUp  =  iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
      PreDown = iptables -D OUTPUT ! -o %i -m mark ! --mark $(wg show  %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -D OUTPUT ! -o %i -m mark ! --mark $(wg show  %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT

      my machine’s dns resolver stop working I guess. I say so because if I try to connect to a domain it fails, whereas if I try to connect/ping a public IP it works.

      The issue is present regardless if I use resolvconf or openresolv.

      Probably the kill switch rules create the issue.

      PS I have ufw enabled with the default configuration

      $ sudo ufw status verbose
      Status: active
      Logging: on (low)
      Default: deny (incoming), allow (outgoing), disabled (routed)
      New profiles: skip
      

      Hope someone could guide me with this 🙂

      Thanks!

      A.

      • This topic was modified 11 months ago by ATGhQlsvhij19tw5jgDi.
      • This topic was modified 11 months ago by ATGhQlsvhij19tw5jgDi.
    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.