DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I create simple firewall for Etch.
Kernel 2.6.22.5
Iptables 1.3.6
After that rule :
iptables -A INPUT -p tcp -i eth0 -m state --state ESTABLISHED -j ACCEPT
I'v get this error:
"No chain/target/match by that name"
And:
iptables -t filter -A INPUT -p tcp -i eth0 -m state --state ESTABLISHED -j ACCEPT
you don't need to specify a protocol; drop the "-p tcp"
then anything you permit via other rules (eg, the first tcp/80 packet to a web server, an icmp type 8[echo], a udp/53 packet to a dns server) will have it's established traffic the other way allowed.
Sorry, same error
This is clean Debian net install and I compile kernel from default config.
debian:~# iptables -A INPUT -p tcp -i eth0 -m state --state ESTABLISHED -j ACCEPT
iptables: No chain/target/match by that name
debian:~# iptables -A INPUT -i eth0 -m state --state ESTABLISHED -j ACCEPT
iptables: No chain/target/match by that name
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Iptables misses the state module. It complains about "-m state". The module you are missing is ipt_state.
You may try to modprobe ipt_state, but if that module isn't there you might have to re-install iptables with the correct modules. Honestly I never had this problem with Debian, so I can't tell you what to do if it is missing.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
I take it /lib/iptables/libipt_state.so is not available on your system.
NO idea how to get it there. I compiled my own kernel as well, but I did not add/remove anything in the NETFILTER section. It just worked right.
AFAIK installing iptables only installs the user land part of iptables, the real thing runs in the kernel and during kernel compilation the module should have been compiled.
What if you install a pre-compiled Etch kernel 2.6.18?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.