Finalizing the OpenVPN-AS Home Server Build - Hak5 1823

Hak5

Finalizing the OpenVPN-AS Home Server Build - Hak5 1823

Follow up on our quick and dirty OpenVPN guide from last week with the final setup to getting it online and accessible from outside your LAN

Follow up on our quick and dirty OpenVPN guide from last week with the final setup to getting it online and accessible from outside your LAN.

1. Setup Static IP
2. Configure Xen to start VM automatically
3. Port Forward

==Set Static IP==

#SSH Into the Ubuntu OpenVPN Server
ssh hak5@10.73.31.240

#Edit the network interfaces file and replace auto eth0 dhcp with static config
sudo nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.73.31.152
netmask 255.255.255.0
gateway 10.73.31.1

==Configure XenServer to automatically start the VM==

#SSH into your XenServer
ssh root@10.73.31.152

#Determine the server/pool UUID
xe pool-list

#Enable autostart on the pool
xe pool-param-set uuid=[your UUID] other-config:auto_poweron=true

#Determine the Virtual Machine UUID
xe vm-list

#Set the Virtual Machine to power on boot
xe vm-param-set uuid=[your UUID] other-config:auto_poweron=true

==Configure Port Forwarding for the OpenVPN-AS Server==
10.73.31.240:943/admin
# Port forward TCP 443, UDP 1194, and TCP 943 as per your router