Security: Script for iptables and how to start up.

#!/bin/bash IPTABLES=/sbin/iptables SAVE=/sbin/iptables-save #RESTORE=/sbin/iptables-restore #INITIALIZE IPTABLES $IPTABLES --flush $IPTABLES --delete-chain #INBOUND RULES, ALLOW ONLY TRAFFIC IN THE STATE TABLE $IPTABLES -A INPUT -m state -p tcp --state ESTABLISHED -j ACCEPT $IPTABLES -A INPUT -m state -p udp --state ESTABLISHED -j ACCEPT $IPTABLES -A INPUT -m state -p icmp --state ESTABLISHED,RELATED -j ACCEPT #$IPTABLES -A INPUT … Continue reading Security: Script for iptables and how to start up.

Security: Configuring basic stateful firewall for Backtrack 5

Outbound rules iptables -A OUTPUT -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -p udp -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -p icmp -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT Inbound rules iptables -A INPUT -p tcp -m state --state ESTABLISHED -j ACCEPT iptables -A INPUT -p udp -m state … Continue reading Security: Configuring basic stateful firewall for Backtrack 5