How do I add revolving ip address to my Linux server
by - Thursday, January 1, 1970 at 12:00 AM
My reverse proxy server ip keeps getting banned from source websites.
What's the best way to set up a vpn on my server 
I'd like if it can change ip in set intervals like every 12 hours.
Reply
the fastest solution is to use a vpn client like nord or proton and change country, or reconnecting to the same
Reply
Has to be a way to automate it.
Reply
You could probably just use any regular VPN service and use a cron job to restart it automatically.
Essentially:

1. start the vpn service and save it's PID to a file (eg VPN.pid)

./yourvpn & echo $! > VPN.pid


2. Then use a cronjob (use https://crontab.guru/ if you don't know how) to kill and restart the vpn. Something along the lines of:


kill $(cat VPN.pid) && [same thing as above to restart]


You'd have to figure out how to choose a server location, when you have server config files you could do something like this to select a random one:

./yourvpn --config $(ls ./config-directory | sort -R | tail -n 1)
Reply
You buy a linux server with a revolving ip easy
I have quit due to abuse from mods. I will be back some day
Reply
(November 17, 2022, 12:31 AM)der3kxd Wrote: You could probably just use any regular VPN service and use a cron job to restart it automatically.
Essentially:

1. start the vpn service and save it's PID to a file (eg VPN.pid)

./yourvpn & echo $! > VPN.pid



2. Then use a cronjob (use https://crontab.guru/ if you don't know how) to kill and restart the vpn. Something along the lines of:



kill $(cat VPN.pid) && [same thing as above to restart]



You'd have to figure out how to choose a server location, when you have server config files you could do something like this to select a random one:

./yourvpn --config $(ls ./config-directory | sort -R | tail -n 1)


Wow never thought of that, actually that might work. Thanks alot bro


(November 19, 2022, 11:25 PM)Sjni Wrote: You buy a linux server with a revolving ip easy


Link
Reply
How can i make it work ?
:pomlove:  @Rayzers   :pomlove: 
Reply
I've had success using proxy's in the interim not auto but manually switching them
going to try the recommended vpn setup thoe
Reply
Cant you just reuse it ? or no
:pomlove:  @Rayzers   :pomlove: 
Reply
(November 17, 2022, 12:31 AM)der3kxd Wrote: You could probably just use any regular VPN service and use a cron job to restart it automatically.
Essentially:

1. start the vpn service and save it's PID to a file (eg VPN.pid)

./yourvpn & echo $! > VPN.pid



2. Then use a cronjob (use https://crontab.guru/ if you don't know how) to kill and restart the vpn. Something along the lines of:



kill $(cat VPN.pid) && [same thing as above to restart]



You'd have to figure out how to choose a server location, when you have server config files you could do something like this to select a random one:

./yourvpn --config $(ls ./config-directory | sort -R | tail -n 1)


This is very accurate and a great way to do it, I would also set it up on random intervals, you can use $Random in bash and call it for minutes by using the last four, or be lazy and set it up as an automated job every 3-6-9-12 hours, etc. You can also have it set to kill and use different openvpn profiles to not only ensure you're in a /32 config, but also only use certain IP's during certain times.
Reply


 Users viewing this thread: How do I add revolving ip address to my Linux server: No users currently viewing.