Openwrt problem in windows10

Hello, I have created an openvpn config file and I have installed openwrt on my
xiami-router-4a-gigabit-edition, my own openvpn config works perfectly on windows 10 and on my android phone apps but when I import my openvpn config in my openwrt router, I cant access some websites like youtube.com or bbc.com on my WINDOWS 10, I cant even ping these websites (it says "Ping request could not find host youtube.com. Please check the name and try again."). (I dont have problem in my android phone when using openwrt on my router)
Please help me
Thanks in advance

Sounds like a dns issue. Have you specified a valid dns server in either the client config file or in the server config as a push directive?

1 Like

HI, Yes, I have specified Google DNS server addresses (8.8.8.8 and 8.8.4.4) in both server and client configs, I used these two lines in the client config
(dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4)
also I have installed openvpn app in windows 10 and I can access these websites without problem using openvpn app for windows 10, I cant access these websites through openwrt.
this is my client config
"client
proto udp
explicit-exit-notify
remote
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_ABRWE7Dv3NR4Py33 name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
ignore-unknown-option block-outside-dns
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3

put actual dns name here

dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
tun-mtu 1390

-----BEGIN CERTIFICATE-----
MIIB1zCCAX2gAwIBAgIUAUfV23ZJAfKJMiKDlQw00aXBPXcwCgYIKoZIzj0EAwIw
HjEcMBoGA1UEAwwTY25fSGYwZElXWUlIYUllSUsySzAeFw0yNDA2MDYxMTA4NTla
Fw0zNDA2MDQxMTA4NTlaMB4xHDAaBgNVBAMME2NuX0hmMGRJV1lJSGFJZUlLMksw
WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATRiQ9OA0/LxBTyaw7HBAVU6v08IWbl
Q+IbXYtb1R4zPbhf+i+v6zy1WWMt1Opmhm3nqOgku7FSMIIYIsnpUDlYo4GYMIGV
MAwGA1UdEwQFMA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IBAQQgX6u+sVTyta+cChsd
CxqrF636gCcJZKShU7/9vaTOF42hRANCAATp7hRfuY1VzqPxqAEeb1sc+PaSRWKo
8RraC/hTUmv/wc0svDkaissPaq5HeuP2nIF62KF8d/0tH/pKRjSox/+0
-----END PRIVATE KEY-----

2048 bit OpenVPN static key

-----BEGIN OpenVPN Static key V1-----
144be3295676be99c04b7a4af5c9c504
db3f39e66ca142c428be341ce1505a95
b8909e2fda207bb910532adc664a5811
0ead73031019fed4b1576639cf47f283
d4e9e34ff1915a5ca8b0312daefdadb0
25b1777a2f511d29e2e3e82b2bb3e891
3310ba7e5a0884b5931efadf727fbe6a
8f83399acbe7744efd49c6ea8a5dac78
99079fb05d109b3749b78c93a9631f22
c492335a956f93fc5da60a8d1cb74eb9
b30e972afc98dd27591cb185e799bf7b
6b7f77d8ffb38cd7bde78be1001644ca
12e4670553d3dc302c5dbef9730494a2
f80fefcf485acbfda074fa2d4c55eb56
0030bd588137124d25b4b25b5c27f14c
20b3907869704786a160a3909ccc7d6f
-----END OpenVPN Static key V1-----
"

thanks for your response :pray: