Subject: iptables and misc. 'missing commands'
From: Ralph Wiggums (ralphwiggums@linuxwaves.com)
Date: Wed Mar 06 2002 - 17:20:32 MST
I was speaking with Aake about iptables and some 'issues' arose as to specific commands that is confusing,... like why doesn't that command exist for me I would appreciate any feedback,...:
"Iptables-1.2.5 should be fairly easy to install. Take a look inside the
INSTALL file after you've unpacked the tar ball it says:
1) Next, make the package.
% make KERNEL_DIR=<<where-your-kernel-is>>
2) Finally, you need to to install the shared libraries, and the binary:
# make install KERNEL_DIR=<<where-your-kernel-is>>
I used '/boot' for the above and it worked. I didn't go for the experimental
'patch-o-matic' things which needed a kernel compile. "
->thanks, yes that all went smooth, i actually used '/boot/vmlinux',...
,..."You must also make sure that the old ipchains isn't active because you
can't have both ipchains and iptables active at the same time. Try
'chkconfig --del ipchains' "
->on my system ydl 2.1 'chkconfig - bash command not found' (i believe that ipchains is disabled because 'locate ipchains' produces /etc/rc.d/rc0.d/K92ipchains
/etc/rc.d/rc1.d/K92ipchains
-etc,etc,.... -which from reading http://www.boingworld.com/workshops/linux/iptables-tutorial/iptables-tutorial/iptables-tutorial.html#AEN46
that you mentioned, means theses scripts are 'killed',... but i would still like a alternative command for my lack of 'chkconfig',...
,..."Then try this:
Load the NAT module (this pulls in all the others).
'modprobe iptable_nat' // this can be put into your
'/etc/rc.d/rc.local',
Check the modules by 'lsmod' it could look something like this:
Module Size Used by ....
iptable_filter 2080 0 (autoclean) (unused)
ipt_REJECT 3760 0 (unused)
ipt_MASQUERADE 2368 1
iptable_nat 24480 0 [ipt_MASQUERADE]
ip_conntrack 25648 1 [ipt_MASQUERADE iptable_nat]
ip_tables 16272 6 [iptable_filter ipt_REJECT ipt_MASQUERADE
iptable_nat]
.... "
->Well wouldn't you know it i do not have a 'lsmod' command either bash: command not found -'man lsmod' tells me to look in /proc/modules - but all that produces are 4 dma sound modules,... any ideas,...
Thanks again for all your help
_____________________________________________________________
Get your spam-free, Linux email now --> http://www.LinuxWaves.com
Join Linux discussions --> http://Community.LinuxWaves.com
_____________________________________________________________
You deserve a better email address! Get personalized email @yourname
or @yourcompany from Everyone.net --> http://www.everyone.net?tag
This archive was generated by hypermail 2a24 : Wed Mar 06 2002 - 17:35:10 MST