Thursday, April 26, 2018

Help iptables

Hello, Having those few lines.. Would you say that is a machine acting as a server or as a client? Do you detect any error on the configuration?

iptables -t filter -F iptables -t filter -X iptables -t filter -P INPUT DROP iptables -t filter -P OUTPUT DROP iptables -t filter -P FORWARD DROP lan = “192.168.1.0/24” www = “eth0” iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A OUTPUT -p tcp -s $lan -o $www --dport 80 -j ACCEPT iptables -A OUTPUT -p udp -s $lan -o $www --dport 53 -j ACCEPT iptables -A OUTPUT -p tcp -s $lan -o $www -j ACCEPT



No comments:

Post a Comment