My OpenVZ VPS has two IPv4 and two IPv6 addresses:23.54.xx.10223.54.xx.1032604:xxxx:1::xxxx:6x0b2604:xxxx:1::xxxx:5x7cNow I want to rotate my outbound IP so that when I run any PHP, ruby or curl commands, they rotate through my IP's. I am doing a test with curl 'https://api.ipify.org?format=json', which shows me the same IP each time. root@local:~#curl 'https://api.ipify.org?format=json' {ip:23.54.xx.102}root@local:~#curl 'https://api.ipify.org?format=json' {ip:23.54.xx.102}root@local:~#curl 'https://api.ipify.org?format=json' {ip:23.54.xx.102}I used some StackExchange tables rules but the result is the same -- not rotating IP.I want the result:root@local:~#curl 'https://api.ipify.org?format=json' {ip:23.54.xx.102}root@local:~#curl 'https://api.ipify.org?format=json' {ip:23.54.xx.103}root@local:~#curl 'https://api.ipify.org?format=json' {ip:2604:xxxx:1::xxxx:6x0b}root@local:~#curl 'https://api.ipify.org?format=json' {ip:2604:xxxx:1::xxxx:5x7c}is it possible to rotate ip through IPtables and i want to use php,ruby and python.
Rotate IP outbound IP address in Ubuntu or CentOS
ubuntu;centos;networking;network interface