So you install OpenVPN-AS via the tutorial located here –
Now when you login to the admin console and click “Start Server” you get the following error:
iptables service not started because of error (SVC_RUN_EXCEPT)
This indicates that the IP tables service isn’t running on your VM. To fix the error carry out the following:
Stop the VM from your proxmox host server:
vzctl stop 101
Make the iptables state and nat modules accessible to containers.
vim /etc/vz/vz.conf
Add “ipt_state iptable_nat” to the end of the list of IPTABLES modules
vim /etc/vz/vz.conf
Allow the container to open the TUN/TAP interface. These steps specifically affect container ID 101:
vzctl set 101 --devices c:10:200:rw --save vzctl set 101 --capability net_admin:on --save
These kernel modules and commands should be ran/installed on the host node before the container is started:
modprobe ipt_mark modprobe ipt_MARK modprobe tun
Now start the container:
vzctl start 101
After starting the container run these commands on the host node:
vzctl exec 101 mkdir -p /dev/net vzctl exec 101 mknod /dev/net/tun c 10 200 vzctl exec 101 chmod 600 /dev/net/tun
Now reboot the host machine, login to OpenVPN admin and start theOpenVPN server. Hopefully all should be working well.
Add a new Debian container within Proxmox. For this tutorial I am using Debian Wheezy.
Shell into the server and run the following to update it:
apt-get update
Then::
apt-get upgrade
Now we install OpenVPN Access Server:
Debian 32 bit:
wget http://swupdate.openvpn.org/as/openvpn-as-1.8.5-Debian6.i386.deb
Debian 6 64 Bit:
wget http://swupdate.openvpn.org/as/openvpn-as-1.8.5-Debian6.amd_64.deb
To Install, run the following command
32 Bit:
dpkg -i openvpn-as-1.8.5-Debian6.i386.deb
64 Bit:
dpkg -i openvpn-as-1.8.5-Debian6.amd_64.deb
Now lets change the openvpn user password:
passwd openvpn
Now browse to http://xxx.xxx.xxx.xx:943/admin/
(change x’s with your actual IP address)
Login with user: openvpn and the password you set above. This gives you access to the admin panel.
To install the local OpenVPN client browse to http://xxx.xxx.xxx.xx:943
and you should be presented with a download. Simply download the client and run it. You should be prompted with username and password.
OpenVPN ADMIN SETUP
https://www.linuxtutorial.co.uk/open-vpn-access-server-admin-setup
PORT FORWARDING
Remember to Port forward 443, 1194 and 943 through to your VM on the router to allow VPN access.
TROUBLESHOOTING
ERROR: iptables service not started because of error (SVC_RUN_EXCEPT)
About me
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk
Categories
- AdvancedTomato
- Amazon AWS
- Amazon Linux
- Amazon S3
- Apache
- Apache Kafka
- Backup Tutorial
- Bash Scripting
- Centos Tutorial
- CloudFlare
- Command line Tutorial
- CPanel Troubleshooting
- CPanel Tutorial
- Debian Troubleshooting
- Debian Tutorial
- DKIM
- Docker
- EC2
- ESXi
- Faildows
- Google Adwords
- Google Analytics
- Google Chromebook
- Google Mail
- graylog
- IAM
- imapsync
- iRedmail Tutorial
- ISPConfig3 Tutorial
- Java
- ldap
- letsencrypt
- MyDNS
- MySQL Troubleshooting
- MySQL Tutorial
- Nest Install
- Netbeans
- Nginx
- Nginx Troubleshooting
- openssl
- PCI Compliance
- Percona
- PHP
- Plex Media Server Tutorial
- Postfix
- Proxmox Tutorial
- Pure FTPd
- Resourcespace Tutorial
- Route 53
- Rsync Tutorial
- Security
- Smoothwall Troubleshooting
- Smoothwall Tutorial
- SSH
- tcpdump
- Thunderbird
- Tomcat Troubleshooting
- Ubuntu Tutorial
- Uncategorized
- Unison
- vmware
- vzdump
- WHM
- Wireshark
- Wordpress Troubleshooting
- WordPress Tutorial
Recent Comments