https://github.com/ohmydevops/ohmynet
Which interface has the internet? I'll choose that one! (Linux distors only)
https://github.com/ohmydevops/ohmynet
bash internet iran routing
Last synced: 4 months ago
JSON representation
Which interface has the internet? I'll choose that one! (Linux distors only)
- Host: GitHub
- URL: https://github.com/ohmydevops/ohmynet
- Owner: ohmydevops
- License: mit
- Created: 2025-08-04T14:25:43.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-08-04T15:22:45.000Z (6 months ago)
- Last Synced: 2025-08-04T19:16:58.732Z (6 months ago)
- Topics: bash, internet, iran, routing
- Language: Shell
- Homepage: https://github.com/ohmydevops/ohmynet
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🛠️ Ohmynet - Auto Internet Interface Switcher
**Ohmynet** is a Bash script that continuously monitors internet connectivity and automatically switches to a working network interface if the current one goes offline.
## 🔍 Features
- Checks for internet connectivity every 3 seconds
- Detects the default route interface
- Switches to an alternative connected interface if internet is lost
- Uses `nmcli` to bring connections up/down (safe with NetworkManager)
- Works with multiple interfaces: Ethernet, Wi-Fi, USB NICs, etc.
---
## 🚀 Usage
- Run script:
```bash
wget -qO- https://raw.githubusercontent.com/ohmydevops/ohmynet/main/ohmynet.sh | bash
```
- It should be:
