1
Tutorials and FAQs / Install OpnSense on OVH Public VPS
« on: February 01, 2020, 10:47:29 pm »
*** Updated process below https://forum.opnsense.org/index.php?topic=15699.msg187076#msg187076
Hello -
This process can be confusing, I wanted to post the steps I took:
1. Reboot into rescue mode from the OVH console, you will get a temporary root password via email. You can also go into Account Summary, emails sent to me.
2. SSH into the rescue VM with port forwarding. You can do this with putty or if you have a shell:
8. I did guided install, some notes:
- There are sections that take forever to complete, specifically cdpup but this install did finish after many long delays within 20 min
- I did DHCP, manually set the WAN interface to vtnet0
- When selecting a drive to install to, the first drive is ~2500mb and the rescue partition. You should be installing to the second, larger drive. Mine was ~ 18000mb
9. When the install finishes, it will reboot. Go into the OVH panel and reboot your VM, not into rescue mode.
10. After reboot, open the KVM panel and login as root. Select option 8 for Shell access
11. Add route (your default gateway is typically x.x.x.1 of your primary IP with OVH)
13. Go to Gateways, edit the ipv4 DHCP one... set the ip x.x.x.1 and set it as a "far gateway"
14. Make sure you have a rule or interface to access the admin interface
15. Reboot and test
Let me know if you have any suggestions or questions.
Hello -
This process can be confusing, I wanted to post the steps I took:
1. Reboot into rescue mode from the OVH console, you will get a temporary root password via email. You can also go into Account Summary, emails sent to me.
2. SSH into the rescue VM with port forwarding. You can do this with putty or if you have a shell:
Code: [Select]
ssh root@x.x.x.x -L 5900:localhost:5900
3. Download the iso to the RAM /tmp, I used "DVD" "i386" Code: [Select]
wget -P /tmp http://mirror.wdc1.us.leaseweb.net/opnsense/releases/20.1/OPNsense-20.1-OpenSSL-dvd-i386.iso.bz2
4. Install bz2Code: [Select]
apt update
apt install bzip2
5. Extract and delete oldCode: [Select]
cd /tmp
bzip2 -dk OPNsense-20.1-OpenSSL-dvd-i386.iso.bz2
rm OPNsense-20.1-OpenSSL-dvd-i386.iso.bz2
6. Download and start VNCCode: [Select]
wget -qO- /tmp http://www.danpros.com/content/files/vkvm.tar.gz | tar xvz -C /tmp
/tmp/qemu-system-x86_64 -net nic -net user,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443 -m 1024M -localtime -enable-kvm -hda /dev/sda -hdb /dev/sdb -vnc 127.0.0.1:0 -cdrom /tmp/OPNsense-20.1-OpenSSL-dvd-i386.iso -boot d
7. Connect your VNC client to 127.0.0.1:5900, i use VNC connect by RealVNC8. I did guided install, some notes:
- There are sections that take forever to complete, specifically cdpup but this install did finish after many long delays within 20 min
- I did DHCP, manually set the WAN interface to vtnet0
- When selecting a drive to install to, the first drive is ~2500mb and the rescue partition. You should be installing to the second, larger drive. Mine was ~ 18000mb
9. When the install finishes, it will reboot. Go into the OVH panel and reboot your VM, not into rescue mode.
10. After reboot, open the KVM panel and login as root. Select option 8 for Shell access
11. Add route (your default gateway is typically x.x.x.1 of your primary IP with OVH)
Code: [Select]
route add -inet x.x.x.1/32 -link -iface vtnet0
route add default x.x.x.1
11. Disable firewall to access the web guiCode: [Select]
pfctl -d
12. Log into the GUI via the WAN IP (https://), I skip the wizard.. you can always go back to it.13. Go to Gateways, edit the ipv4 DHCP one... set the ip x.x.x.1 and set it as a "far gateway"
14. Make sure you have a rule or interface to access the admin interface
15. Reboot and test
Let me know if you have any suggestions or questions.

