Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > problem with iptables and 2.6.20 kernel

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 02-17-2007   #1 (permalink)
Just Joined!
 
volomir's Avatar
 
Join Date: Jul 2006
Location: romania
Posts: 20
Send a message via Yahoo to volomir Send a message via Skype™ to volomir
problem with iptables and 2.6.20 kernel

hi gurus

i have a problem with iptables 1.3.5 and the kernel 2.6.20

here's the deal

root@gateway:~# iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables: Unknown error 4294967295 ( yeah , right )

after that, i tried another thing

root@gateway:/boot# iptables -t nat -A PREROUTING -s 192.168.0.0/24 -j DNAT --to-destination 86.105.199.139
FATAL: Module ip_tables not found.
iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

oupsie, i downloaded the sources againd, looked in the kernel, and added the right things in it
after that, the nat table problem was solved, but i couldn't figure out the -m state --state problem, it still shows me the same output as before


what can be the problem ? i guess it's the kernel, meaning i have to add some things in it, but what ? .. cause i looked in it and i couldn't figure where's the problem ? do i need to upgrade iptables ?!
by the way, i am running slackware current
thanks in advance
volomir is offline  



Reply With Quote
Old 02-17-2007   #2 (permalink)
Linux Guru
 
antidrugue's Avatar
 
Join Date: Oct 2005
Location: Montreal, Canada
Posts: 3,213
From here :

Quote:
make menuconfig
:: Networking
:: Networking Options
:: Network Packet Filtering (Netfilter)
:: Core Netfilter Config.
== Netfilter connection tracking suppot (Y/M)
:: IP Netfilter Config.
== IPv4 connection tracking support (Y/M)
== Full NAT (Y/M)
Save; exit && rebuilt.
I haven't tested it though, but it does sound right.
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline   Reply With Quote
Old 02-17-2007   #3 (permalink)
Just Joined!
 
volomir's Avatar
 
Join Date: Jul 2006
Location: romania
Posts: 20
Send a message via Yahoo to volomir Send a message via Skype™ to volomir
thanks mate, but i have already seen that post

i didn't help me
volomir is offline   Reply With Quote
Old 02-17-2007   #4 (permalink)
Just Joined!
 
volomir's Avatar
 
Join Date: Jul 2006
Location: romania
Posts: 20
Send a message via Yahoo to volomir Send a message via Skype™ to volomir
ok, i solved it


recompiled the kernel, and looked a little bit closer
it seems that in Core Netfilter Configuration i didn't have the support for the "state" match , so i built it in the kernel

works fine now !
volomir is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:35 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1