Skip to content

Instantly share code, notes, and snippets.

@antoniocampos
Last active January 27, 2023 12:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoniocampos/f5faa46dfbea19bfec2daad64f15767e to your computer and use it in GitHub Desktop.
Save antoniocampos/f5faa46dfbea19bfec2daad64f15767e to your computer and use it in GitHub Desktop.
Solve problems accessing a windows domain or apply group policies on a client using OpenVpn
; add this lines to your .ovpn
; replace x.x.x.x with your local dns servers (the server that "know" the domain)
dhcp-option DNS x.x.x.x
dhcp-option DNS x.x.x.x
; replace antoniocampos.net by your local domain
dhcp-option DOMAIN antoniocampos.net
dhcp-option ADAPTER_DOMAIN_SUFFIX antoniocampos.net
; more important!!
block-outside-dns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment