r00igev@@r
Honorary Master
- Joined
- Dec 14, 2009
- Messages
- 15,058
- Reaction score
- 13,510
- Location
- Draadloos Bantha poo doo in 4ways
I tried this out and it really works well...
Except it causes a crash when using ookla's speedtest cli.
and it thought this command was too long...
GitHub - OliveTin/OliveTin: OliveTin gives safe and simple access to predefined shell commands from a web interface.
OliveTin gives safe and simple access to predefined shell commands from a web interface. - GitHub - OliveTin/OliveTin: OliveTin gives safe and simple access to predefined shell commands from a web...
github.com
Except it causes a crash when using ookla's speedtest cli.
and it thought this command was too long...
Code:
echo "WAN1 IP Address: $(ip -4 addr show eth1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -1)"; echo "WAN2 IP Address: $(ip -4 addr show eth2 | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -1)"; echo "WAN3 IP Address: $(ip -4 addr show eth3 | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -1)"; echo "LAN Local: $(ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -1)"; echo "LAN Gateway: $(ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | sed -n '2p')"; echo "Public IP Address: $(curl -s ifconfig.me)"