No chain/target/match by that name
steve.turnbull at yhgfl.net
Sun Sep 5 16:31:24 CEST 2004
Our web server is configured;
Debian (Woody) (No X installed)
Kernel 2.4.23 - configured with iptables in mind
When we start the firewall script, we get this message;
'No chain/target/match by that name'
The firewall works however, but is constantly logging;
'Sep 5 16:00:52 www kernel: Input: IN=eth0 OUT=
DST=220.127.116.11 LEN=302 TOS=0x00 PREC=0x00 TTL=61 ID=0 DF PROTO=UDP
SPT=53 DPT=32833 LEN=282'
Something is ammis here, and we can't ping out from the server with the
firewall running, also, we can't use Lynx to browse. Turn the firewall
off and all is well for both of these.
Has anybody got any ideas what is wrong? Our firewall rule is below.
# This is the firewall up script.
# Lets start by dropping all incoming traffic and allowing all
# outbound traffic
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
# Flush any existing rules...
# Allow any established connections to come on through...
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# This is a web server. We only require access to http ports
# 80,21,53 and 443. New ports to allow will be added here...
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 53 -j ACCEPT
iptables -A INPUT -p udp --dport 53 -j ACCEPT
# Allow the loopback connection...
iptables -A INPUT -i lo -j ACCEPT
# Log stuff that doesn't match above rules...
iptables -A INPUT -j LOG --log-prefix="Input: "
Digital Content Developer
t 01724 275030
e steve.turnbull at yhgfl.net
More information about the netfilter