You want to use an iptables rule which makes use of the "recent" match.
This is not part of your installation - not yet.
The commands I posted where to:
- show what software is available to you,
- show what software is already installed,
- show what modules are available to you,
- show what modules are already loaded,
- try to load the module - had it been available to you
Quote:
I got error message when I enter ls -al /lib/modules/'uname -r' / | grep recent:
ls: /lib/modules/uname -r: No such file or directory
|
There is a difference between:
Code:
ls -al /lib/modules/'uname -r' / | grep recent
and
ls -al /lib/modules/`uname -r`/ | grep recent
the latter is what I wrote - and which will work.
It lists the contents of the directory named after your kernel-version, where all modules are stored - and filters the list for the module you want.
Code:
ls -al /lib/modules/2.4.22-uc0/ | grep recent
will also do.
Or look at:
ls -al /lib/modules/2.4.22-uc0/
for all installed modules.
You will need to install some software to to get support for the "
recent" match.
I don't know exactly which and if it is even called the same name for you.
I can only tell you what I have installed here ("recent" match is working):
Code:
root@112-2:~# ls -al /lib/modules/`uname -r`/ | grep recent
-rw-rw-r-- 1 root root 14292 Feb 26 20:52 ipt_recent.o
Kernel is 2.4.30
ipkg install iptables-mod-filter
ipkg install tc
ipkg install iptables-mod-conntrack
ipkg install iptables-mod-ipopt
ipkg install iptables-extra
ipkg install freifunk-openwrt-compat
The last one is most definitely not available to you - the second one (tc) is one you will not need.
In one of the others is the module and library you need to use the "recent" match.
I'm talking an example here - the example is OpenWRT on a MIPS based system - and the software available to it.
Again: I don't know your system or what software is available for it - you will need to read through the packets descriptions - or go to the manufacturers website and look there for descriptions.