I have applied same instruction but it's didn't work. I have tried connect to google, it doesn't work. thereafter it wasn't connecting OpenDns but it resuming ssh connection.
I searched internet and i found a answer. Link adress it's say:
script-security 2
dhcp-option DNS 192.168.1.1
dhcp-option DOMAIN example.lan
# Only on ubuntu client, you also need following directives:
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
but ''script-security'' is turned low status secuity and it's allow access some file. I removed this lines:
script-security 2
dhcp-option DOMAIN example.lan
# Only on ubuntu client, you also need following directives:
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Now it may use own router dns register. I have try your script on centos. It works normally but it's didn't work on debian 9.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/angristan/openvpn-install/pull/375
**Author:** [@bayars](https://github.com/bayars)
**Created:** 12/25/2018
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `OpendnsProblem`
---
### 📝 Commits (1)
- [`38e94f2`](https://github.com/angristan/openvpn-install/commit/38e94f2f01ec25e5b680b57f907488c219120d89) Added DHCP option
### 📊 Changes
**1 file changed** (+1 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `openvpn-install.sh` (+1 -0)
</details>
### 📄 Description
Server: Digitalocean VPS Centos 7
Client: Debian 9
I have applied same instruction but it's didn't work. I have tried connect to google, it doesn't work. thereafter it wasn't connecting OpenDns but it resuming ssh connection.
I searched internet and i found a answer. [Link adress](https://serverfault.com/questions/318563/how-to-push-my-own-dns-server-to-openvpn) it's say:
```
script-security 2
dhcp-option DNS 192.168.1.1
dhcp-option DOMAIN example.lan
# Only on ubuntu client, you also need following directives:
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
```
but ''script-security'' is turned low status secuity and it's allow access some file. I removed this lines:
```
script-security 2
dhcp-option DOMAIN example.lan
# Only on ubuntu client, you also need following directives:
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
```
Now it may use own router dns register. I have try your script on centos. It works normally but it's didn't work on debian 9.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/angristan/openvpn-install/pull/375
Author: @bayars
Created: 12/25/2018
Status: ❌ Closed
Base:
master← Head:OpendnsProblem📝 Commits (1)
38e94f2Added DHCP option📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
openvpn-install.sh(+1 -0)📄 Description
Server: Digitalocean VPS Centos 7
Client: Debian 9
I have applied same instruction but it's didn't work. I have tried connect to google, it doesn't work. thereafter it wasn't connecting OpenDns but it resuming ssh connection.
I searched internet and i found a answer. Link adress it's say:
but ''script-security'' is turned low status secuity and it's allow access some file. I removed this lines:
Now it may use own router dns register. I have try your script on centos. It works normally but it's didn't work on debian 9.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.