Advertisement
Guest User

Untitled

a guest
Sep 27th, 2012
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement