unknownsoldierx
New Around Here
I've set up my first VPN, using openvpn, between my Windows PC and my Android phone. I can't get name resolution to work, so I have to connect to SMB and devices using IPs.
After a bit of reading, it seemed all I needed to do was have the server push "dhcp-option WINS" for each device on my LAN. That isn't working for me.
Server is hosted on Windows 7
LAN is 192.168.11.0
VPN is 192.168.2.0
server
client
After a bit of reading, it seemed all I needed to do was have the server push "dhcp-option WINS" for each device on my LAN. That isn't working for me.
Server is hosted on Windows 7
LAN is 192.168.11.0
VPN is 192.168.2.0
server
Code:
port 1194
proto tcp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh4096.pem"
server 192.168.2.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.11.0 255.255.255.0"
route 0.0.0.0 0.0.0.0 vpn_gateway 50
push "dhcp-option WINS 192.168.11.100"
push "dhcp-option WINS 192.168.11.101"
push "dhcp-option WINS 192.168.11.103"
keepalive 10 120
tls-auth "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key"
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
client
Code:
client
dev tun
proto tcp
remote mydyndnsprovider.com xxxx
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
key-direction 1
cipher AES-256-CBC
verb 3
Last edited: