Skip to content

IP Rotator – A lightweight Bash script that randomly changes your network interface’s IP address and restores the original when stopped.

Notifications You must be signed in to change notification settings

Ahmed-GoCode/ip-rotator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

IP Rotator Logo

🔄 IP Rotator

A lightweight Bash script that randomly changes your network interface’s IP address and restores the original when stopped.


⚡ Features

  • Save and restore original IP, subnet mask, and gateway.
  • Generate random private IPs.
  • Rotate IPs automatically every 5 seconds.
  • Start/Stop with one command.

📦 Usage

./ip-rotator.sh <interface> <start|stop>

▶️ Start rotating

./ip-rotator.sh eth0 start

⏹ Stop rotating

./ip-rotator.sh eth0 stop

📝 Example Output

Saved: IP=192.168.1.50 Mask=24 GW=192.168.1.1
Rotating IP every 5s on eth0 (Ctrl+C to stop)
Changing to: 10.33.141.77/24 GW:10.33.141.1
OK: 10.33.141.77
Changing to: 172.20.55.94/24 GW:172.20.55.1
OK: 172.20.55.94
Changing to: 192.168.129.200/24 GW:192.168.129.1
OK: 192.168.129.200

⭐ If you like this project, give it a star!

💻 Made with ❤️ by Ahmad

About

IP Rotator – A lightweight Bash script that randomly changes your network interface’s IP address and restores the original when stopped.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages