You can use a combination of Linux commands to filter out IP:port pairs from a text file and create a list. Assuming that the IP:port pairs in the file are separated by a space, you can use the grep command to filter out lines that match the IP:port pattern, and...
Continue reading...ip
IP Failover enable
nano /etc/rc.local #!/bin/bash ifconfig ens3:0 188.165.x.x/32 exit 0 save chmod +x /etc/rc.local Don’t forget to edit your correct network interface (ens3)
Continue reading...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...
Recent Comments