What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

OpenVPN server: Advertise DNS & block LAN access?

Zonkd

Very Senior Member
Can these 2 OpenVPN server settings be used together?
  1. Client will use VPN to access: Internet only
  2. Advertise DNS to clients: Yes
I want remote clients to resolve DNS via router for stubby DNS-over-TLS and Diversion dnsmasq filtering but block all other LAN access. Has anyone done this?
 
Push it manually in the config options:

Code:
push "dhcp-option DNS 10.8.0.1"
push "dhcp-option myrouterdomain.lan"
 
Push it manually in the config options:

Code:
push "dhcp-option DNS 10.8.0.1"
push "dhcp-option myrouterdomain.lan"
I believe there is a typo in the second line. It should be:

push "dhcp-option DNS 10.8.0.1"
push "dhcp-option DOMAIN myrouterdomain.lan"
 
I believe there is a typo in the second line. It should be:

push "dhcp-option DNS 10.8.0.1"
push "dhcp-option DOMAIN myrouterdomain.lan"

Correct.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top