Created
August 15, 2019 09:31
-
-
Save P4z/1d823b4dea6e3c6fe0093856444db372 to your computer and use it in GitHub Desktop.
My solution to prevent sending syslog messages to untrusted remote host for ZTE's 4G modems.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/bin/netstat -rn | grep ^195.54.122.206 > /dev/null | |
if [[ $? -eq 1 ]] ; then /bin/iproute add 195.54.122.206/32 dev usb0; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can find other interesting hacks for MF823 at https://www.development-cycle.com/2017/04/27/zte-mf823-inside/ and https://blog.elevendroids.com/2014/06/changing-zte-mf823-4g-modem-ip-address/