Advertisement
Leymooo

Untitled

May 3rd, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/bash
  2. iptables -N bungee
  3. # ИП ДЕДИКОВ ИДИ ВДС, КОТОРЫЕ МЫ ХОТИМ РАЗРЕШИТЬ!
  4. iptables -A bungee --src IP_DEDICA -j ACCEPT
  5. iptables -A bungee --src IP_IZ_SCOBAK -j ACCEPT
  6. iptables -A bungee --src IP_IZ_SCOBAK -j ACCEPT
  7. # etc (Тут ничего не трогаем)
  8. iptables -A bungee --src 127.0.0.1 -j ACCEPT
  9. # БЛОКИРУЕМ ДРУГИЕ ИП АДРЕСА
  10. iptables -A bungee -j DROP
  11. iptables -I INPUT -p tcp -m multiport --dports 3306,25532 -j bungee
  12. #iptables -I INPUT -p tcp -m multiport --dports 3306,25532,3000:3100 -j bungee
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement