OpenVZ Forum


Home » General » Support » OpenVPN inside Container
OpenVPN inside Container [message #47449] Fri, 10 August 2012 20:39 Go to next message
arejay is currently offline  arejay
Messages: 1
Registered: August 2012
Location: United States
Junior Member
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
Re: OpenVPN inside Container [message #47465 is a reply to message #47449] Sun, 12 August 2012 21:28 Go to previous message
JAlbstmeijer is currently offline  JAlbstmeijer
Messages: 12
Registered: April 2006
Junior Member
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

Previous Topic: Java
Next Topic: Moving containers from CentOS 5 to CentOS 6
Goto Forum:
  


Current Time: Mon Nov 18 21:36:44 GMT 2024

Total time taken to generate the page: 0.02935 seconds