1 | local 192.168.1.10 # This is the IP address of the real network interface on the server connected to the router |
---|
2 | |
---|
3 | port 1194 # This is the port OpenVPN is running on - make sure the router is port forwarding this port to the above IP |
---|
4 | |
---|
5 | proto udp # UDP tends to perform better than TCP for VPN |
---|
6 | |
---|
7 | mssfix 1400 # This setting fixed problems I was having with apps like Remote Desktop |
---|
8 | |
---|
9 | #push "dhcp-option DNS 192.168.0.10" # Replace the Xs with the IP address of the DNS for your home network (usually your ISP's DNS) |
---|
10 | |
---|
11 | #push "dhcp-option DNS X.X.X.X" # A second DNS server if you have one |
---|
12 | |
---|
13 | dev tap |
---|
14 | |
---|
15 | #dev-node MyTAP #If you renamed your TAP interface or have more than one TAP interface then remove the # at the beginning and change "MyTAP" to its name |
---|
16 | |
---|
17 | ca "c:\\OpenVPN\\config\\ca.crt" |
---|
18 | |
---|
19 | cert "c:\\OpenVPN\\config\\server.crt" |
---|
20 | |
---|
21 | key "c:\\OpenVPN\\config\\server.key" # This file should be kept secret |
---|
22 | |
---|
23 | dh "c:\\OpenVPN\\config\\dh1024.pem" |
---|
24 | |
---|
25 | server 192.168.150.0 255.255.255.0 # This assigns the virtual IP address and subent to the server's OpenVPN connection. Make sure the Routing Table entry matches this. |
---|
26 | |
---|
27 | ifconfig-pool-persist ipp.txt |
---|
28 | |
---|
29 | #push "redirect-gateway def1" # This will force the clients to use the home network's internet connection |
---|
30 | |
---|
31 | keepalive 10 120 |
---|
32 | |
---|
33 | cipher BF-CBC # Blowfish (default) encryption |
---|
34 | |
---|
35 | comp-lzo |
---|
36 | |
---|
37 | max-clients 60 # Assign the maximum number of clients here |
---|
38 | |
---|
39 | persist-key |
---|
40 | |
---|
41 | persist-tun |
---|
42 | |
---|
43 | status openvpn-status.log |
---|
44 | |
---|
45 | verb 1 # This sets how detailed the log file will be. 0 causes problems and higher numbers can give you more detail for troubleshooting |
---|
46 | |
---|
47 | |
---|
48 | # lines starting with # or ; will not be read by OpenVPN |
---|