I'am trying to get openvpn server running within a container, i've done everything as per openvz wiki on tun/tap but i'm not sure what my server.conf should look like, would someone mind posting a copy of theres? or telling me what i need to edit
Hi, Hope this helps. --- server - generate the openvpn server keys/certs (ca.crt server.crt, server.key, dh1024.pem) - choose a private network to use within the vpn connection. (10.10.10.0) --- port 1066 tls-server mode server proto udp dev tun0 ca keys/ca.crt cert keys/server.crt key keys/server.key dh keys/dh1024.pem server 10.10.10.0 255.255.255.0 cipher AES-256-CBC user nobody group nobody log-append /tmp/openvpn.log verb 3 mute 20 max-clients 500 management 127.0.0.1 4444 keepalive 10 120 client-config-dir /etc/openvpn/ccd comp-lzo persist-key persist-tun -- client - generate client key/cert (client.key, client.crt). - replace 196.1.1.2 with the ip number of the openvpn server. -- client dev tun pull proto udp remote 196.1.1.2 1066 resolv-retry infinite nobind persist-key persist-tun ca keys/ca.crt cert keys/client.crt key keys/client.key ns-cert-type server cipher AES-256-CBC keysize 256 comp-lzo verb 3 mute 20