Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- iptables -N bungee
- # ИП ДЕДИКОВ ИДИ ВДС, КОТОРЫЕ МЫ ХОТИМ РАЗРЕШИТЬ!
- iptables -A bungee --src IP_DEDICA -j ACCEPT
- iptables -A bungee --src IP_IZ_SCOBAK -j ACCEPT
- iptables -A bungee --src IP_IZ_SCOBAK -j ACCEPT
- # etc (Тут ничего не трогаем)
- iptables -A bungee --src 127.0.0.1 -j ACCEPT
- # БЛОКИРУЕМ ДРУГИЕ ИП АДРЕСА
- iptables -A bungee -j DROP
- iptables -I INPUT -p tcp -m multiport --dports 3306,25532 -j bungee
- #iptables -I INPUT -p tcp -m multiport --dports 3306,25532,3000:3100 -j bungee
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement