PageRenderTime 134ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/silverlining/server-root/lib/ufw/user.rules

https://bitbucket.org/ianb/silverlining/
Unknown | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | cd1a685259902f0f81711c0234237bd0 MD5 | raw file
Possible License(s): GPL-2.0
  1. :ufw-user-output - [0:0]
  2. :ufw-user-forward - [0:0]
  3. :ufw-user-limit - [0:0]
  4. :ufw-user-limit-accept - [0:0]
  5. ### RULES ###
  6. ### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
  7. -A ufw-user-input -p tcp --dport 22 -j ACCEPT
  8. -A ufw-user-input -p udp --dport 22 -j ACCEPT
  9. ### tuple ### allow tcp 80 0.0.0.0/0 any 0.0.0.0/0 in
  10. -A ufw-user-input -p tcp --dport 80 -j ACCEPT
  11. ### END RULES ###
  12. -A ufw-user-limit -m limit --limit 3/minute -j LOG --log-prefix "[UFW LIMIT BLOCK] "
  13. -A ufw-user-limit -j REJECT
  14. -A ufw-user-limit-accept -j ACCEPT
  15. COMMIT