iptables: Allow only HTTP access for web browsing
- by user1448260
Have a linux box, want it locked down but just be able to surf internet on it. Why is this script blocking http too?
#!/bin/sh
#
#
iptables -F
#
#Set default policies for INPUT, FORWARD and OUTPUT chains
#
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
#
# Allow TCP connections on tcp port 80
#
iptables…