|
Post by badboy1985ro on Jun 21, 2008 20:45:38 GMT 7
Thanks omega an apleman I recompiled the kernel and now it works. One more thing. Whe i configured the n1200 kernel i selected "packet mangle" option. I used the Ipt_ttl.ko file and loaded into the nas using insmod. everithing was fine. the module was laoded. i check it with lsmod. then i used the command: iptables -A PREROUTING -t mangle -d wan_ip -j TTL --ttl-set 21 for ttl modify. iptables -A PREROUTING -t mangle -d 192.168.2.254 -j TTL --ttl-set 21 iptables v1.3.5: Unknown arg `--ttl-set' Try `iptables -h' or 'iptables --help' for more information.i get the error
what other modules do i need to load for modifi tt?
help please
|
|
|
Post by omega on Jun 21, 2008 22:51:52 GMT 7
Why don't you use the actual version of iptables 1.4.1.1 (get it HERE)? Most likely the --ttl-set is not available in the version you use (more than 18 month old). Andreas
|
|
|
Post by badboy1985ro on Jun 22, 2008 2:37:39 GMT 7
The same thing will happen if i compoile that. Looks like you have no idea what ttl modify is. ip tables has nothing to do with it
|
|
|
Post by omega on Jun 22, 2008 4:34:53 GMT 7
Looks like you don't know what your real problem is.... You've quoted this error: and at least my iptables understands the arg --ttl-set. So why doesn't it have something to do with iptables? You should be more clear in what you say.. Andreas
|
|
|
Post by appleman1234 on Jun 23, 2008 3:01:46 GMT 7
You may want to run patch-o-matic or patch-o-matic-ng on the kernel your building or update your version of iptables like omega says. The ttl part comes as a module which the default thecus version may not have.
|
|
|
Post by badboy1985ro on Jun 23, 2008 13:47:53 GMT 7
Sorry. You are write. Know i understand. On other firmware like OpenWrt this part was not necesarry. Sorry again.
How do i run patch-o-matic or patch-o-matic-ng or update the iptables on nas?
I don't have a serial cable so this method is out of the question.
|
|
|
Post by appleman1234 on Jun 24, 2008 16:43:47 GMT 7
I dug a little deeper, the problem is that /lib/iptables/libipt_TTL.so doesn't exist in /initrd/usr/local/lib/iptables/ . You can fix this two ways, one you can obtain a libipt_TTL.so for ppc iptables 1.3.5 and put it or symlink to the directory, or make a thecus module which does that or two you can update iptables to the latest ppc debian binaries and files and make both the libipt_TTL.so and the new iptables in a thecus module and install it. For thecus module development information please see onbeat.dk/thecus/downloads/ModuleHowto.pdf and onbeat.dk/thecus/index.php/N1200_Module_Development or take a look at the source for the SSH module or one of my modules that are mentioned on the same site.
|
|
|
Post by wowposter on Nov 14, 2008 22:01:13 GMT 7
|
|