Cant enable DHCP in AdGuardhome jail

gunnahafta

Dabbler
Joined
Nov 5, 2018
Messages
32
I'm a long term user of TrueNas and think its great. Most recently I decided to switch from PiHole that requires as full blown Ubuntu VM to AdGuardhome that can run in a jail. I got it up and running and blocking no issues as both the plugin version and as a jail installing AdGuardhome manually.

My trouble starts when I try to use the jail to also run DHCP. I can configure it all fine but when I go to enable DHCP I get the error:

DHCP: POST /control/dhcp/set_config: enabling dhcp: setting static ip: setting static ip is unsupported on freebsd

I created both the jail and the plugin with a static IP so I don't know of AdGuard thinks the IP is not static so its trying to set it as static or something else is going on. Am i maybe just missing a package etc?

Screen shot shows the jail config, not using DHCP etc.
Capture.PNG


Appreciate input.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
is your host using DHCP?
 

gunnahafta

Dabbler
Joined
Nov 5, 2018
Messages
32
did you found a solution to this issue? i'm facing the same one
I did not. It’s something to do with the jail needing to use a “privileged” port on the base O/S (Truenas). At least that’s the reason I couldn’t get it to work in Docker
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you're not running as root in the jail, you may need to think about the settings in:
sysctl -a | grep net.inet.ip.portrange

As I understand it, only members of wheel or root can break those port limits.
 
Top