dragon2611
22-01-2015, 22:20
For Vyos
Assuming I've not screwed up somewhere as I'm quite tired at the moment.
Vyos does not like the way OVH use /32 masks so we have to inject our default route directly into the underlaying Linux OS
reboot (or run /config/scripts/vyatta-postconfig-bootup.script)
In theory if you then put a VM on vmbr1 and give it an Ip of 10.0.0.2 and a subnet of 255.255.255.0 gateway 10.0.0.1 (Change as approriate if you've choosen a different internal ip range) it should be able to pingout towards the internet, I'd suggest tryign to ping google's dns server 8.8.8.8 or some other ip.
Assuming I've not screwed up somewhere as I'm quite tired at the moment.
Code:
configure set interfaces ethernet eth0 address 'failoverip/32' set interfaces eth1 address 10.0.0.1/24 set interfaces eth1 firewall local protect-router set protocol static interface-route xxx.xxx.xxx.254 next-hop-interface eth0 (the xxx.xxx.xxx is the first 3 octets from your main server IP) e.g 96.123.255.254 set firewall name protect-router default-action drop set service ssh port 22 set nat source rule 999 description "nat outbound to primary external IP" set nat source rule 999 outbound-interface eth0 set nat source rule 999 protocol all set nat source rule 999 translation address masquerade commit save exit
Vyos does not like the way OVH use /32 masks so we have to inject our default route directly into the underlaying Linux OS
Code:
sudo bash nano /config/scripts/vyatta-postconfig-bootup.script add ip route add 0.0.0.0/0 via xxx.xxx.xxx.254 Save and exit nano
In theory if you then put a VM on vmbr1 and give it an Ip of 10.0.0.2 and a subnet of 255.255.255.0 gateway 10.0.0.1 (Change as approriate if you've choosen a different internal ip range) it should be able to pingout towards the internet, I'd suggest tryign to ping google's dns server 8.8.8.8 or some other ip.