TommyLau / docker-ocserv

Docker OpenConnect VPN Server
349 stars 243 forks source link

Cannot ping hostname #19

Open dophlin opened 7 years ago

dophlin commented 7 years ago

Hi @TommyLau,

I deployed ocserver in a container inside a user-defined network. Then I connected my laptop to the ocserver by anyconnect. From my laptop, I can ping all containers of ocserver network by their ips, but about hostnames, it seems they are not solved . Am I missing any additional configuration?

TommyLau commented 7 years ago

Please check your DNS server first, you can use Google's public DNS for a test like this:

$ nslookup www.google.com 8.8.8.8

It should return Google's IP correctly, if the DNS resolved then it might be something wrong with your DNS settings (such as IP, or firewall and etc.)

If you didn't get results, then try to ping 8.8.8.8 to find out whether you can visit the server. If the answer is no, then it will be something wrong with you network config or NAT, ip forward related.

xiangjl commented 6 years ago

@dophlin You can try to add no-route = server ip/255.255.255.255 in /etc/ocserv/config-per-group/All and /etc/ocserv/config-per-group/Route files.