Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. VPN
  3. OpenVPN with AdGuard ?

OpenVPN with AdGuard ?

Scheduled Pinned Locked Moved VPN
4 Posts 2 Posters 2.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    santabroo
    wrote on last edited by girish
    #1

    Hello,

    how can I connect OpenVPN with AdGuard (both are on the same VPS)(using 1 main IP (x.x.x.x)).

    1. Clean install for both apps
    2. Give myself admin on OpenVPN
    3. Click the settings on OpenVPN panel
    4. Under the DNS put the main VPS IP (x.x.x.x) and check the client-to-client connections ?

    Or am I missing something ? Is there some additional settings in AdGuard that needs to be made ?

    Because when I do it like that it doesnt quite work. Im on discord and the discord works fine in the voice. But when searching something on google it doesnt. Even tho some Query Logs are being made on AdGuard ?

    1 Reply Last reply
    1
    • S Offline
      S Offline
      santabroo
      wrote on last edited by
      #2

      I did check out this post: https://forum.cloudron.io/topic/6929/openvpn-with-adguard/35

      And nothing worked from it. I also had to use another VPS and install cloudron on it to host AdGuard and then use that IP on the VPS where OVPN is.

      I am alright with it but I do have few concerns.

      1. The second VPS is in another country. Will that affect end user timings or anything like that ?
      2. Because its two difference VPSes (crappy VPSes) will it affect negatively in any way ?

      Basically is there any downside for the end user ? Since its not only me using the OpenVPN from the main VPS.

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        I would expect your initial setup to work assuming x.x.x.x is a public IP . If you want to keep AdGuard internal, then you have to install it in another VPS. This is because AdGuard's internal Cloudron IP is not part of the VPN and clients need a way to access it somehow.

        As for whether VPSs have any effect, I guess the main thing is latency from the client to the servers. I think only way to test this is to try it out and see if it's good enough.

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          I tried following setup and it works:

          • Install AdGuard Home
          • Install VPN app in same cloudron
          • In VPN app, set DNS to public IP of cloudron (where AdGuard is installed).
          • Connected from linux

          I can see all DNS requests are going via AdGuard. I can see that in systemctl status systemd-resolved the DNS of tun0 is set correctly.

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search