Having problems getting AdGuard working

Started by ajoeiam, July 09, 2024, 11:59:22 PM

Previous topic - Next topic
Quote from: cookiemonster on July 21, 2024, 10:42:59 PM
System > Settings > Administration.
The UI has the ability to change the port the GUI is listening on. Many of us change it from the default for a variety of reasons. No need to worry about changing it here, is not a hack, and it survives updates and upgrades.
That said, in general, the advice is sound.

(Greatly appreciating the patience of those assisting!!)

OK - - - now - - sockstat -4l says
root      AdGuardHom  22252  13  tcp4   192.168.1.1:80         *:*
and
root      ligthtpd            44161  7    tcp4   *:82                           *:*

( had set the web gui protocol to https (following HomeNetworkGuy so re-set to http with a restart)

Firefox was barfing at using http so changed the setting for network security to false

Still cannot load into either of 192.168.1.1:80 or 192.168.1.1:3000  for AdGuardHome setup.

Suggestions - - - please?

TIA

So now OPN GUI is listening on port 82 and AdGH on 80 it seems.

Quote"Still cannot load into either of 192.168.1.1:80 or 192.168.1.1:3000  for AdGuardHome setup."
What happens? Whether you can not reach it or you can but errors, different solutions.
The AdGH config can be modified manually but it is no good if you can't reach it.
Please tell where you are trying to reach it from, the same network, or a different one?
I can't assume because of your previous setup with machines on different ports on the firewall.

p.s from your screenshot (re-added here for reference), the interface is called vtnet1. Is this a virtualised setup? If so, can you please provide the complete setup with all interfaces, assignments, etc. all is relevant.

Quote from: cookiemonster on July 23, 2024, 11:24:40 PM
So now OPN GUI is listening on port 82 and AdGH on 80 it seems.

Quote"Still cannot load into either of 192.168.1.1:80 or 192.168.1.1:3000  for AdGuardHome setup."
What happens? Whether you can not reach it or you can but errors, different solutions.
The AdGH config can be modified manually but it is no good if you can't reach it.
Please tell where you are trying to reach it from, the same network, or a different one?
I can't assume because of your previous setup with machines on different ports on the firewall.

I am using the browser to reach http://192.168.1.1:80 or :3000 - - - the browser just sends a timed out message.
This is from a machine with the address 192.168.1.100 (so I think that's the same network - - yes?)

Sorry - - - at this point I am totally lost so I get to wait until you offer some kind of solution to try.

TIA

Quote from: cookiemonster on July 24, 2024, 12:12:02 AM
p.s from your screenshot (re-added here for reference), the interface is called vtnet1. Is this a virtualised setup? If so, can you please provide the complete setup with all interfaces, assignments, etc. all is relevant.

What was added for reference was actually taken from the document that I was using for setup and configuration.

This was NOT from my machine - - - I am not using any kind of virtualised setup.
(Was cured of that idea a few years ago investigating LXD, on snapd - - - don't need that kind of mess again!)

Sorry for the not accurate info - - - the machine that I'm doing this on is a mini-pc and I'm using a laptop for its control and modification. This all is on a separate network with its own ip address so getting a screenshot - - - dunno how I'd even do it as the laptop does not connect with the other network.

Thanking you for your consideration and assistance!

Ok that helps to clear.
Check please that AdgH is running, before and after stopping/starting it from the OPN dashboard, in services list, or console.
You can look for the service in the console and start/restart it.
$ sudo service adguardhome status
Password:
adguardhome is running as pid 31785.
$ sudo ps -vvv 31785
  PID STAT    TIME SL  RE PAGEIN   VSZ  RSS LIM TSIZ %CPU %MEM COMMAND
31785 Is   0:00.09 75 127      0 12728 2260   -   12  0.0  0.0 daemon: /usr/local/AdGuardHome/AdGuardHome[31884] (daemon)

$ sudo service adguardhome onerestart
Stopping adguardhome.
Waiting for PIDS: 31785
done.
Starting adguardhome.
$ sudo service adguardhome onestatus
adguardhome is running as pid 44395.


What we're interested in is seeing if it is up and running. Then start it or restarting it from console in the hope it will spit out errors if it fails silently from the OPN UI. You should also use sockstat as before.
AdgH will use two processes and ports. One for the UI and one for the listener for traffic to filter.

I am tempted to suggest to uninstall it, followed by re-installation so you can re-run the wizard with the correct ports this time.

Well - - - I gambled on understanding what you meant in your last sentence.

So I uninstalled adguardhome then re-installed it and was successful in connecting to the ports suggested
that is ip:3000 to access and ip:53 for DNS server listening.

Thank you very much for your assistance!!!!!!!!!!!!!!!!!

Now - - - how do I find a good configuration/setup chart for adguardhome?

Please?

TIA

congratulations on building your next time sink :)
For configuration - the site documentation https://github.com/AdguardTeam/AdguardHome/wiki/Getting-Started
For which blocklists to use - there are many. I suggest to start with the Steven Black list https://github.com/StevenBlack/hosts
Be ready to start allow-listing to fine tune to your requirements.

Quote from: cookiemonster on July 24, 2024, 10:51:25 PM
congratulations on building your next time sink :)
For configuration - the site documentation https://github.com/AdguardTeam/AdguardHome/wiki/Getting-Started
For which blocklists to use - there are many. I suggest to start with the Steven Black list https://github.com/StevenBlack/hosts
Be ready to start allow-listing to fine tune to your requirements.

ja - - - time sink - - - first it was information then it was puters then its all the facets inside of that - - - - where will it end?
(likely won't - - - lol)

OK - - am trying to learn - - - that last sentence  "Be ready to start allow-listing to fine tune to your requirements." - - - what does that mean?

TIA

it means that AdgH as any host-based Ad blocker, the block lists are not perfect for everyone. They block so much that at some point there will be "things" that will not work until you allow a particular domain.
Let's say your family member is looking at a product website and likes something, and tries to buy it. Then the sign up for the site dialog just spins and never finishes. They complain to you.
Your just starting with AdGH so you disabe AdGH and that works now. So now you need to figure out which of the blocked items is the one that corresponds to that particular site. You need to whitelist that.
That is a requirement just for your network because although it is using Ads to complete the registration, you are OK with whitelisting it, making an exception in the list that otherwise works fine for you and most users.

A bit like intrusion detection. You need to create your own exceptions for your needs.
Hope it makes sense.