Linux Tutorials
Building Hadoop Clusters On Linux In EC2
Installing And Using Hadoop
Setting Up SSH Keys Using SSH Agents And Tunnels
Creating OpenSSL Certificates and Certificate Authorities
Installing and configuring Xen
IPTables Primer
Linux Basic Bash Scripting

IPTables Primer


Drop all inbound telnet traffic

iptables -I INPUT -p tcp --dport 23 -j DROP

Drop all outbound web traffic

iptables -I OUTPUT -p tcp --dport 80 -j DROP

Drop all outbound traffic to

iptables -I OUTPUT -p tcp --dest -j DROP

Allow all inbound web traffic

iptables -I INPUT -p tcp --dport 80 -j ACCEPT

Allow inbound HTTPS traffic from

iptables -I INPUT -s -p tcp -m tcp --dport 443 -j DROP 

Deny outbound traffic to

iptables -I OUTPUT -d -j DROP
Basic Uses <<  1 2 3 4
New Content