Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- if [ "$1" = "start" ]; then
- ipset create bypass hash:ip family ipv4 timeout 43200
- ipset create bypass2 hash:ip family ipv4 timeout 43200
- elif [ "$1" = "stop" ]; then
- ipset flush bypass bypass2
- else
- echo "Usage: $0 start|stop"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement