Now you need to make a few changes to the /etc/openvpn/server.conf. You need to change the red parameters to match your network configuration.
+
Now you need to make a few changes to the /etc/openvpn/server.conf. Change the domain name listed as ''yourdomain.com'', ensure that the DNS server pushed to the clients is correct (dhcp-option DNS 192.168.1.1) and lastly the route net pushed (route 192.168.1.0).
port 1194
port 1194
Line 90:
Line 90:
push "ping 10"
push "ping 10"
push "ping-restart 60"
push "ping-restart 60"
−
push "dhcp-option DOMAIN yourdomain.com" # push the DNS domain suffix
+
push "dhcp-option DOMAIN <b>yourdomain.com</b>" # push the DNS domain suffix
−
push "dhcp-option DNS 192.168.1.1" # push primary DNS entry to the openvpn clients.
+
push "dhcp-option DNS <b>192.168.1.1</b>" # push primary DNS entry to the openvpn clients.
−
push "route 192.168.1.0 255.255.255.0 192.168.100.1" # add route to to protected network
+
push "route <b>192.168.1.0</b> 255.255.255.0 192.168.100.1" # add route to to protected network
comp-lzo
comp-lzo
status-version 2
status-version 2
Line 107:
Line 107:
#!/bin/sh
#!/bin/sh
−
route del -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.1.1
+
route del -net 192.168.100.0 netmask 255.255.255.0 gw <b>192.168.1.1</b>
route del -net 192.168.100.0 netmask 255.255.255.0 dev tap0
route del -net 192.168.100.0 netmask 255.255.255.0 dev tap0