Ticket #689: server.ovpn

File server.ovpn, 1.6 KB (added by Puzovic, 8 years ago)

server config file

Line 
1local 192.168.1.10 # This is the IP address of the real network interface on the server connected to the router
2
3port 1194 # This is the port OpenVPN is running on - make sure the router is port forwarding this port to the above IP
4
5proto udp # UDP tends to perform better than TCP for VPN
6
7mssfix 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
13dev 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
17ca "c:\\OpenVPN\\config\\ca.crt" 
18
19cert "c:\\OpenVPN\\config\\server.crt"
20
21key "c:\\OpenVPN\\config\\server.key"  # This file should be kept secret
22
23dh "c:\\OpenVPN\\config\\dh1024.pem"
24
25server 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
27ifconfig-pool-persist ipp.txt
28
29#push "redirect-gateway def1"  # This will force the clients to use the home network's internet connection
30
31keepalive 10 120
32
33cipher BF-CBC        # Blowfish (default) encryption
34
35comp-lzo
36
37max-clients 60 # Assign the maximum number of clients here
38
39persist-key
40
41persist-tun
42
43status openvpn-status.log
44
45verb 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