Category: Security

Securing Server with Iptables ( Block Except )

Securing Server with Iptables ( Block Except )

Securing Server with Iptables Iptables is a great firewall when configured properly but sometimes you can lock yourself out with what you didn’t mean to. When you are starting to work on your firewall,...

Block Ports in IPtables

Block Ports in IPtables

Blocking Ports in Iptables In order to block¬† a single port you can use the following statement : iptables -A INPUT -p <protocol – udp or tcp>¬† –dport <portno> -j REJECT In order to...

Redirect or forward ports in iptables

Redirect or forward ports in iptables

Redirect or Forward Ports using Iptables Port Redirection: iptables -t nat -A PREROUTING -i -p tcp –dport -j REDIRECT –to-port or iptables -t nat -I PREROUTING –src ip/mask –dst -p tcp –dport 80 -j...