Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID
Advertise on LowEndTalk.com

In this Discussion

How to rotate ip in centos or ubuntu.

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.

[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.102"}

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

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.