Linux Tutorial | Matt Cooper - Open Source Support
Linux Tutorial | Matt Cooper - Open Source Support
Debian Tutorial

Open VPN Access Server – Admin setup

Few tips to setup the admin section.

OpenVPN hostname/IP setup (you can use NOIP)

Server Network Settings

Server Network Settings

Routing/Subnets  (allow user to see all other machines on the remote network)

Routing/Subnet OpenVPN AS

Routing/Subnet OpenVPN AS

Everything else I left as default.

November 10, 2013by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Debian Troubleshooting

OpenVPN – iptables service not started because of error (SVC_RUN_EXCEPT)

So you install OpenVPN-AS via the tutorial located here –

OpenVPN Acess Server Install Debian + Proxmox

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

vz.conf

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.

 

 

November 10, 2013by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Debian Tutorial

OpenVPN Acess Server Install Debian + Proxmox

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.

openvpnlogin

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

https://www.linuxtutorial.co.uk/openvpn-iptables-service-not-started-because-of-error-svc_run_except/

ERROR: iptables service not started because of error (SVC_RUN_EXCEPT)

November 10, 2013by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon

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

Recent Comments

  • Andrew on Export list of Amazon EC2 Instances to CSV
  • Matt Cooper on Proxmox – add a second hard drive to node for Backups
  • karis on Proxmox – add a second hard drive to node for Backups
  • Matt Cooper on Remote MySQL Database – Slow Connection
  • Matt Cooper on Bash script to send public IP address to Email

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

“See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too." Linus Torvalds

© 2017 copyright www.linuxtutorial.co.uk // All rights reserved