# This file is /etc/openvpn/pwd-server.conf port 1194 proto udp dev tun ca certauthority.crt cert thisserver.crt key thisserver.key dh dh2048.pem client-cert-not-required # the following options enable username and passwords based on pam username-as-common-name plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so "login login USERNAME password PASSWORD" # this is the network that clients on this vpn are a part of. # note that it is only the bottom part of the subnet # the upper part is used by a tcp openvpn server 192.168.30.0 255.255.255.192 # this file should exist in /etc/openvpn ifconfig-pool-persist ipp30udp.txt push "route remote_host 255.255.255.255 net_gateway" # push routes to the other networks that are a part of my # virtual private net push "route 192.168.31.0 255.255.255.0" push "route 192.168.30.0 255.255.255.192" push "route 192.168.30.64 255.255.255.192" push "route 192.168.40.0 255.255.255.0" push "route 192.168.41.0 255.255.255.0" push "route 192.168.42.0 255.255.255.0" push "route 192.168.43.0 255.255.255.0" push "dhcp-option DNS 192.168.31.1" #push "dhcp-option WINS 192.168.31.1" client-config-dir ccd client-to-client keepalive 10 120 comp-lzo user nobody group nobody persist-key persist-tun status openvpn-status.log verb 4