Tags » Iptables

#IpTables for a #Zimbra setup

iptables -I INPUT -p tcp --dport 2322 -j ACCEPT #SSH
iptables -I INPUT -p tcp --dport 443 -j ACCEPT #HTTPS
iptables -I INPUT -p tcp --dport 3930 -j ACCEPT
iptables -I INPUT -p tcp --dport 143 -j ACCEPT #IMAP
iptables -I INPUT -p tcp --dport 993 -j ACCEPT #IMAPS
iptables -I INPUT -p tcp --dport 389 -j ACCEPT #LDAP
iptables -I INPUT -p tcp --dport 7025 -j ACCEPT
iptables -I INPUT -p tcp --dport 5800 -j ACCEPT
iptables -I INPUT -p tcp --dport 5900 -j ACCEPT
iptables -I INPUT -p tcp --dport 7071 -j ACCEPT #Port for ZCS Web Administration
iptables -I INPUT -p tcp --dport 3894 -j ACCEPT
iptables -I INPUT -p tcp --dport 3895 -j ACCEPT
iptables -A INPUT -p tcp --dport 465 -j ACCEPT
iptables -I INPUT -p tcp --dport 80 -j ACCEPT #HTTP (for webmail)
iptables -A INPUT -p icmp -m icmp --icmp-type address-mask-request -j DROP
iptables -A INPUT -p icmp -m icmp --icmp-type timestamp-request -j DROP
# Block fragmented ICMP. 247 more words
Linux

Block A Range of IP Addresses via iptables (CentOS/RedHat)

I was asked the other day by a friend if he would be able to use iptables to block a range of IP addresses.  Of course!   116 more words

Red Hat

Setting up Iptables on DD-WRT Router

Setting up Iptables has been the hardest part of configuring a Home SOC. If I had tons of money I would get a managed switch and create a span port I could mirror all traffic on or get a tap that would do that for me. 296 more words

Postfix on CentOS

Last day, I’d been troubleshooting a problem with a new CentOS postfix installation. After having read many tutorials, I was still having problems. The server itself could send emails (using the mailx package) and it could telnet to itself via ip-address and host name, but no other device could connect to it. 207 more words

Random Troubles (hooting)

How to bandwidth monitoring/limiting and traffic shape in Linux (using iptables, tc/netem/wondershaper, trickle, ...)

You can apply bandwidth allocation for each port. You can also apply traffic shaping to outgoing or forwarding traffic.

Using iptables, shorewall, firewalld, ufw and ipset to block, masquerade (SNAT) and port forward (DNAT) in Linux

Firewall is a network security system that controls the incoming and outgoing network traffic based on an applied rule set. Some common usage is to block incomming traffic by port, do source NAT / masquerading and destination NAT / port forward. 1,562 more words

Basics of Linux iptables

iptables is a user-space application program that allows to configure the tables provided by the Linux kernel firewall and the chains and rules it stores(Wikipedia). Therefore, it is used to set up, maintain, and inspect the tables of IPv4 packet filter rules in the Linux kernel. 570 more words

Ubuntu