From Hwiggy, 3 Months ago, written in Plain Text.
  1. root@mail:~# iptables -nL && iptables -S
  2. Chain INPUT (policy ACCEPT)
  3. target     prot opt source               destination
  4. WHITELIST  tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:6380
  5. WHITELIST  tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:3306
  6. ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
  7.  
  8. Chain FORWARD (policy ACCEPT)
  9. target     prot opt source               destination
  10. DOCKER-USER  all  --  0.0.0.0/0            0.0.0.0/0
  11.  
  12. Chain OUTPUT (policy ACCEPT)
  13. target     prot opt source               destination
  14.  
  15. Chain DOCKER-USER (1 references)
  16. target     prot opt source               destination
  17. RETURN     all  --  0.0.0.0/0            0.0.0.0/0
  18.  
  19. Chain WHITELIST (2 references)
  20. target     prot opt source               destination
  21. ACCEPT     all  --  192.99.239.91        0.0.0.0/0
  22. ACCEPT     all  --  151.80.161.255       0.0.0.0/0
  23. ACCEPT     all  --  151.80.161.253       0.0.0.0/0
  24. ACCEPT     all  --  151.80.161.252       0.0.0.0/0
  25. DROP       all  --  0.0.0.0/0            0.0.0.0/0
  26. -P INPUT ACCEPT
  27. -P FORWARD ACCEPT
  28. -P OUTPUT ACCEPT
  29. -N DOCKER-USER
  30. -N WHITELIST
  31. -A INPUT -p tcp -m tcp --dport 6380 -j WHITELIST
  32. -A INPUT -p tcp -m tcp --dport 3306 -j WHITELIST
  33. -A INPUT -j ACCEPT
  34. -A FORWARD -j DOCKER-USER
  35. -A DOCKER-USER -j RETURN
  36. -A WHITELIST -s [REDACTED - Node 1] -j ACCEPT
  37. -A WHITELIST -s [REDACTED - Node 2] -j ACCEPT
  38. -A WHITELIST -s [REDACTED - Node 3] -j ACCEPT
  39. -A WHITELIST -s [REDACTED - Node 4] -j ACCEPT
  40. -A WHITELIST -j DROP
  41. root@mail:~#
captcha