Skip to content

Instantly share code, notes, and snippets.

@P4z
Created August 15, 2019 09:31
Show Gist options
  • Save P4z/1d823b4dea6e3c6fe0093856444db372 to your computer and use it in GitHub Desktop.
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.
#!/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
@P4z
Copy link
Author

P4z commented Aug 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment