[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Réf. : 3 questions about iptables





hi stephan


i solve my problem with iptable like this:

   create a directory named lib under the directory "files"  : become -->
   files/lib
   inside this directory create the file named "romfs_meta.txt" with the
   texte "Include: iptables"
   create a directory named iptables under "files/lib" : become   -->
   files/lib/iptables
   in the files "makespec" add the line "files/lib/romfs_meta.txt -m 0644"
   at the end.
   do your "make install"
   erase the non essential libraries for ipatbles in
   "target/cris-axis-linux-gnu/lib/iptables" with your command file see
   below
   and then apply your "make images"
   Flashit or flashitall and it works !!!

For MASQUERADING  you don't need all the library but when you do "make
install"
all the library from "apps/iptables/extensions" are transfered into
target/cris-axis-linux-gnu/lib/iptables.
and then tranfered to the flash after.
To solve that i have created a litle command file who keep only the needed
library for masquerading a connection
these libraries are  : libipt_MASQUERADE.so and libipt_standard.so

Don't forget to apply chmod u+x "command file"

My command file is like this
********************************************************
cp target/cris-axis-linux-gnu/lib/iptables/libipt_MASQUERADE.so .
cp target/cris-axis-linux-gnu/lib/iptables/libipt_standard.so .
unalias rm
rm target/cris-axis-linux-gnu/lib/iptables/*.*
cp libipt_MASQUERADE.so target/cris-axis-linux-gnu/lib/iptables/.
cp libipt_standard.so target/cris-axis-linux-gnu/lib/iptables/
********************************************************








"stadler stephan" <blutus@xxxxxxx.com le 12/07/2002 14:19:52

Envoyé par :      owner-dev-etrax@xxxxxxx.com


Pour : <dev-etrax@xxxxxxx.com>
cc :

Objet :     3 questions about iptables



hi

i use iptables....and i had the problem with the  libraries :

iptables v1.2.3: Couldn't load target
`MASQUERADE':/lib/iptables/libipt_MASQUERADE.so:
cannot open shared object  file: No such file or directory

so i have edit the file roms_meta.txt in  the
/target/cris-axis-linux-gnu/libs...directory with :

Include: iptables

after then i make a make images and it  works...

but when i make a : make install ... the  roms_meta.txt file not contains
the line Include: iptables - so i must edit  another time this file

so my question:

exists a file in the packages directory where i can  write the line :
include: iptables permanently, that i dont must edit every time  i make a
make install the roms_meta.txt ????

2. question

if i look on the host pc in the directory :
target/cris-axis-linux-gnu/libs/iptables... i can see that the size of the
*.so  files is very big - but when i mak a image for the board, oll of this
file have  room in the 2mb flash - - is this while the file were compressed
very  high???


3. question

i use iptables with the masquerade  option:

i need all of the libraries in the
target/cris-axis-linux-gnu/libs/iptables directory or only the
lkibipt.masquerade.so?


thx






________________________________________________________________________
L'integrite de ce message n'etant pas assuree sur Internet, la societe
ne peut etre tenue responsable de son contenu.
Si vous n'etes pas destinataire de ce message, merci de le detruire et
d'avertir l'expediteur.

The integrity of this message cannot be guaranteed on the Internet.
The society cannot therefore be considered responsible for the contents.
If you are not the intended recipient of this message, then please
delete it and notify the sender.