New in Nethserver, coming from Zentyal. The reasons are known. Sorry for my english, is not my native language.
I’m not a technical guy, just a entusiastic user using a home server. Pls, talk to me like as I have 7 years old.
Nethserver with 1 NIC
When I connect to Nethserver is not possible browse any site who is not the Nethserver (google, facebook, etc). I can only browse the server itself.
I think is related with the fact we can not define a dns address in the Openvpn server configuration. I think if we can configure one dns address from the lan and another one from the internet the system work without problems.
I think you hit a bug I discovered recently. Unfortunately I didn’t find time to try to replicate it.
A client connected to NethServer via openvpn receives a DNS server: it’s the NethServer address.
I think that dnsmasq (NethServer DNS server) refuses connections from the vpn client.
I worked around the problem forcing the dns on my client to the first ip address of the openvpn range.
Could you try my workaround and confirm it works even for you?
@filippo_carletti
in the openvpn config file i found : push “dhcp-option DNS $nethserverip” ,have you choosed this option to join windows client over vpn?
Sometimes it is not necessary to force dns server to client. Wouldn’t be better to have a check box in vpn module? Or even better a check box during the vpnclient creation?
NethServer pushes the DNS option to the client. It pushes itself if it’s the dns server or it pushes the configured DNS if it’s not the dns.
Since you don’t have DNS installed, your client should receive the configured dns.
Could you post the output of the command
grep push /etc/openvpn/host-to-net.conf
You should find that your client DNS is the same in the server.
At my laptop the dns is the router ( 192.168.1.1 ) or the dns address from the network I connect outside my lan.
In the server are two external dns. the beavior is the same when i connect from my lan or from another local
Now when I’m outside my network everithing works fine.
When I connect from my network I have the same problem. I can connect onlly to the Nethserver and can not connect to any other box.
I can ping 8.8.8.8
Hi Filippo
I tried with an external dns (208.67.222.222) and internal IP from my router (192.168.1.1) configured in the NethServer.
In the 2 modes I have the same result I can only connect to the NethServer, I can not connect to the internet or another box from my home network (SSH).
Can you tell me how to force a dns address in the client?
I am using the official OpenVPN comunity client