How to rotate ip in centos or ubuntu.
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

How to rotate ip in centos or ubuntu.

247247 Member
edited July 2016 in Requests

my OpenVZ vps using 2xipv4 & 2xipv6

23.54.xx.102

23.54.xx.103

2604:xxxx:1::xxxx:6x0b

2604:xxxx:1::xxxx:5x7c

Now I want to rotate my ip so when I run any PHP,ruby or curl command rotate my ip. I am doing a test with curl 'https://api.ipify.org?format=json' show me same ip.

I used some iptables rules but the result is same and not rotating ip.

I want result

[email protected]:~#curl 'https://api.ipify.org?format=json' {"ip":"23.54.xx.102"}

[email protected]:~#curl 'https://api.ipify.org?format=json' {"ip":"23.54.xx.103"}

[email protected]:~#curl 'https://api.ipify.org?format=json' {"ip":"2604:xxxx:1::xxxx:6x0b"}

[email protected]:~#curl 'https://api.ipify.org?format=json' {"ip":"2604:xxxx:1::xxxx:5x7c"}

Requesting expert to help me.

Comments

Sign In or Register to comment.