unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.95k stars 419 forks source link

AdGuard Home port 80 not working using nspawn container #591

Open benjaminprojas opened 9 months ago

benjaminprojas commented 9 months ago

Describe the bug I've followed the very detailed instructions to create a custom container to use AdGuard Home on my UDM Pro from here: https://github.com/unifi-utilities/unifios-utilities/tree/main/nspawn-container

I've got everything working very well except for the fact that when I run the AdGuard install process, it won't let me choose port 80 as it's already in use. In fact when I go to Port 80 it redirects me to the login for the UDM pro.

I'd prefer to use port 80 for the AdGuard home setup, but am unsure on how to change this inside the UDM so it doesn't set up it's webserver on port 80 for the specific IP address I am using for AdGuard. Any thoughts or ideas on what I can do to fix this?

To Reproduce Steps to reproduce the behavior:

  1. Follow steps here for simple networking: https://github.com/unifi-utilities/unifios-utilities/tree/main/nspawn-container
  2. Additionally, I combined some of the steps in the isolated VLAN section in order to give the AdGuard box an IP address.

Expected behavior When I visit 192.168.2.4:80, I should see AdGuard Home, however it redirects to UDM Pro login screen.

Screenshots image

I can get AdGuard Home working on any other port: image

UDM Information

Additional context None

FriendlyNGeeks commented 9 months ago

so the host machine will not allow docker/podman to bind any port that is already in use ie controller uses port 80/443 for its UI

EugenMayer commented 8 months ago

I cannot reproduce this, working just fine for me on 3.x with nspawn