Changes

From SME Server
Jump to navigationJump to search
156 bytes added ,  12:05, 1 September 2008
no edit summary
Line 66: Line 66:  
  chmod 700 *.up
 
  chmod 700 *.up
   −
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
 
  route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.100.1  
 
  route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.100.1  
Line 137: Line 137:  
  port 1194
 
  port 1194
 
  dev tap
 
  dev tap
  remote vpn.yourdomain.com
+
  remote <b>vpn.yourdomain.com</b>
 
  tls-client
 
  tls-client
 
  auth-user-pass
 
  auth-user-pass
177

edits

Navigation menu