Advertisement
odcold

S52ipset

Jan 8th, 2025
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  4.  
  5. if [ "$1" = "start" ]; then
  6.         ipset create bypass hash:ip family ipv4 timeout 43200
  7.         ipset create bypass2 hash:ip family ipv4 timeout 43200
  8. elif [ "$1" = "stop" ]; then
  9.         ipset flush bypass bypass2
  10. else
  11.     echo "Usage: $0 start|stop"
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement