Hello, please sign in or register
You are here: Home

Firewall Settup

iptables -P INPUT DROP  iptables -A INPUT -i ! ${UPLINK} -j ACCEPT  
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT  
#our new rule follows  
iptables -A INPUT -p tcp --dport http -m state --state NEW -j ACCEPT  
iptables -A INPUT -p tcp -i ${UPLINK} -j REJECT --reject-with tcp-reset  
iptables -A INPUT -p udp -i ${UPLINK} -j REJECT --reject-with icmp-port-unreachable  
iptables -A INPUT -p icmp -i ppp0 -j REJECT

Comments

Title*
Comment

Prove you are not a robot

To prove you are not a robot, please type in the six character code you see in the picture below
Security confirmation codeI can't see this!
Contact
Name*
Email never shown*
Home Page

Author

Andrew Dodson
Since:Feb 2007

Comment | flag

Categories

Bookmark and Share