Click to See Complete Forum and Search --> : Problem with iptables and the --state module


Magueta
06-11-2003, 10:37 PM
Hi all, I'm trying to setup some iptables and I'm having some problems. I can setup the regular rules but I'm unable to setup the one of the modules that I'm definitely going to need. The module is state and the argument that I want to use is ESTABLISHED. For some reason it tells me two things depending on how I write the state module in the command. Pasted below are the lines that I tried. Can anyone tell me what's wrong? One of the lines says that it can't load --state.so, is that error message accurate or does it mean something else?
Thanks

Joe



[root@FatBoy html]# iptables -A INPUT -m state ESTABLISHED
Bad argument `ESTABLISHED'
Try `iptables -h' or 'iptables --help' for more information.
[root@FatBoy html]# iptables -A INPUT -m --state ESTABLISHED
iptables v1.2.7a: Couldn't load match `--state':/lib/iptables/libipt_--state.so:
cannot open shared object file: No such file or directory

Magueta
06-11-2003, 10:51 PM
Never mind, I got the correct way of doing it from a tutorial. It's as follows:



[root@FatBoy html]# iptables -A INPUT -m state --state ESTABLISHED,RELATED




Joe