Fixed adlists jail´s route. Added autostart of dnsmasq at jail boot

This commit is contained in:
Victor G.Enguita
2022-01-07 00:57:25 +01:00
parent f10efffef9
commit 643fe687a8
2 changed files with 14 additions and 6 deletions

View File

@ -21,8 +21,14 @@ A simple adblock dns server. Simplified version of [https://vlads.me/post/settin
```Shell
set JAILMOUNTPOINT = "/mnt/jails"
```
* Uncoment this lines if you want to check config files difference before to copy them
```Shell
##diff $CONFIGS/dnsmasq_rcd $JAILMOUNTPOINT/$JAIL/usr/local/etc/rc.d/dnsmasq
##diff $CONFIGS/dnsmasq_conf $JAILMOUNTPOINT/$JAIL/usr/local/etc/dnsmasq.conf
```
### **INSTALL**
Just launch .sh script passing an existing jail name as argument
@ -43,7 +49,7 @@ rdr on $ext_if proto udp from any to any port $dns-> $jail_ip
Check config on jail
```console
user@host:/ # jexec jail
user@host:/ # jexec jail
user@jail:/ # dnsmasq --test
dnsmasq: syntax check OK.
```