Proxmox 2 and openvpn as

c0mputerking

Renowned Member
Oct 5, 2011
174
5
83
I have created a ubuntu 10.04 64bit openvz container using veth interface as intructed in the link below. I also added this line to the /etc/vz/vz.conf file again as instructed in the link below. I get error (futher below) when trying to start openvpn using the latest package (openvpn-as-1.8.3-Ubuntu10.amd_64.deb
) for ubuntu on the openvpn site. I know these intructions are old what do i need to change for openvpn to work with proxmox 2?

Also there is a vmware file for openvpn now, i think vmware files need to be installed into KVM right? I was hoping to install openvpn into openvz as it is faster better that way right?

Code:
IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack  ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS  ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"


http://martinlanner.com/2009/06/10/how-to-install-openvpn-access-server-on-proxmox-ve/

process started and then immediately exited: ['Tue Mar 6 08:07:02 2012 Cannot open TUN/TAP dev /dev/as0t0: No such file or directory (errno=2)']

service failed to start or returned error status
process started and then immediately exited: ['Tue Mar 6 08:07:02 2012 Cannot open TUN/TAP dev /dev/as0t1: No such file or directory (errno=2)']

service failed to start or returned error status
 
Sweet it works thanks for the link to the instructions instructions. I made the following changes to my vz.conf to as most of the option recommended by Martin are not needed? less is more sometimes right. Not sure about the reboot issue maybe you could send me the contents of your script? ;)

Code:
## IPv4 iptables kernel modules to be loaded by init.d/vz script
IPTABLES_MODULES="$IPTABLES"
#IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"
IPTABLES="ipt_state iptable_nat"
 
I just fired up nano, created a file called vpn_modprobe in /etc/init.d and entered this:

#! /bin/sh
### BEGIN INIT INFO
# provides: modprobe
# required-start:
# required-stop:
# Default-start:
# Default-stop:
# Short-description: modify server for openvpn
# Description:
### END INIT INFO

modprobe ipt_mark
modprobe ipt_MARK
modprobe tun


after which i issued the command ---> update-rc.d vpn_modprobe defaults
 
Thanks everyone I am very glad to have gotten openvpn up and running and I have added the following to /etc/modules


ipt_mark
ipt_MARK
tun
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!