Ett_tingest
Hello everyone!
I am rather new to OpenVPN and would need some help.
Goal:
Clients shall be able to connect to server by VPN and get access to specific servers which is behind the VPN server on a LAN.
Clients shall also be able to reach the VPN server itself and be able to see shares on that server. (my server handles AD, DNS, DHCP and works as a Filestorage server also which is why I want the clients to be able to reach the server)
How far have i come?
At this moment, i´ve only been able to get the VPN tunnel to establish itself between the client and the server.
I would need some help in how to make it possible to ping the server through the VPN tunnel which I cant get to work.
(I´ve set the windows firewall on the server to accept icmp packets)
The server is a 64-bits Windows Server 2012.
Below is my server and client configuration:
Server:
port 1194
proto udp
dev tun
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\server.key"
dh "C:\\Program Files (x86)\\OpenVPN\\config\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway"
push "dhcp-option DNS 8.8.8.8" (just choosed one to verify that the client got the DNS set)
Question regarding the push to client function: Is it possible to push a static gateway address to the clients? If it is, how do I do it?
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Client:
client
dev tun
proto udp
remote 192.168.3.2 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\test-laptop.crt"
key "C:\\Program Files\\OpenVPN\\config\\test-laptop.key"
ns-cert-type server
comp-lzo
verb 3
Would appreciate any help I can get.
Since Im new to VPNs it is fully possible Ive missed something or missunderstood something about how it works.
Thanks!
Best regards/
Peter