daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Sep 26th, 2012 31 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Flush of all rules
  2. iptables -F
  3. #permit SSH access
  4. iptables  -A INPUT -p tcp --dport 22 -j ACCEPT
  5. #Permit local traffic
  6. iptables  -A INPUT -p tcp -s 127.0.0.1/8 -j ACCEPT
  7. iptables  -A INPUT -p tcp -s <LOCAL_IP> -j ACCEPT
  8. #Permit access from you workstation
  9. iptables  -A INPUT -p tcp -s <YOUR_CLIENT_IP> -j ACCEPT
  10. #Block all Zimbra ports for incoming traffic
  11. iptables -A INPUT -i eth0 -p tcp -m multiport --dport 25,80,110,143,443,993,995 -j REJECT
  12. #Block all Zimbra outgoing traffic
  13. iptables -A OUTPUT -o eth0 -p tcp --dport 25 -j REJECT
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top