peacey / split-vpn

A split tunnel VPN script for Unifi OS routers (UDM, UXG, UDR) with policy based routing.
GNU General Public License v3.0
802 stars 56 forks source link

FORWARD_SERVERS does not work #196

Open ddkedr opened 10 months ago

ddkedr commented 10 months ago

Hey, Peacey

I've put my Synology NAS (running Pihole) IP into FORWARD_SERVERS in VPN_domains.conf file, but it only gets DNS requests from UDMP itself, but not the clients.

Can you point me at anything I should check to throubleshoot this?

I also have same IP in my vpn.conf file:

# Example: Get DNS from DHCP
DNS_IPV4_IP="192.168.10.115"
DNS_IPV4_PORT=53

Please, help! I'm out of ideas :(

ddkedr commented 10 months ago

Fixed (kinda)

The problem is that the old 10-dns-host.sh script is still running even though I did CHMOD -x for it.

I have no idea how is this happening, but I found this line in logs bash[5396]: udm-boot.service: sourcing /data/on_boot.d/10-dns-host.sh

I guess the only thing I can do Is to delete the 10-dns-host.sh script

ddkedr commented 10 months ago

If anyone have any ideas, please leave your comments