ip

OVH Cloud Failover IP config

nano /etc/network/interfaces.d/50-cloud-init auto lo iface lo inet loopback dns-nameservers 213.186.33.99 auto eth0 iface eth0 inet dhcp mtu 1500 auto eth0:1 iface eth0:1 inet static address x.x.x.x netmask 255.255.255.255 auto eth0:2 iface eth0:2 inet static address x.x.x.x netmask 255.255.255.255 auto eth0:3 iface eth0:3 inet static address x.x.x.x netmask 255.255.255.255

Continue reading...

Iptables forwarding

root@sklepas:~# sysctl net.ipv4.ip_forward=1 root@sklepas:~# iptables -A PREROUTING -t nat -i eth0 -p udp –dport 27102 -j DNAT –to 107.161.126.115:27106 root@sklepas:~# iptables -A PREROUTING -t nat -i eth0 -p tcp –dport 27102 -j DNAT –to 107.161.126.115:27106 root@sklepas:~# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Continue reading...