LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-25-2004, 02:52 PM   #1
darklogik_org
Member
 
Registered: Jan 2004
Distribution: freebsd 5.3, openbsd 3.6, slackware 10
Posts: 96

Rep: Reputation: 15
iptables and 2.6.1, not enough enabled?


Greetings, one last thing to fix and I'll have a fully working and lovely new kernel.

I have this feeling that I did something wrong when it came to iptables in the kernel! I use a pretty generic set of rules as I'm behind a hardware firewall/router and the firewall on this machine just provides a bit of final tweaking:

#!/bin/sh

$IPTABLES=/usr/sbin/iptables

$IPTABLES -F INPUT

$IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i eth0 -p icmp
$IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i eth0 -p tcp
$IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i eth0 -p udp

#ssh

$IPTABLES -A INPUT -p tcp --dport 22 -j ACCEPT

#nessus

$IPTABLES -A INPUT -p tcp --dport 1241 -j ACCEPT

#cups (from g4 and ext) else deny

$IPTABLES -A INPUT -s 100.0.0.5 -p udp --dport 631 -j ACCEPT
$IPTABLES -A INPUT -s 100.0.0.2 -p udp --dport 631 -j ACCEPT
$IPTABLES -A INPUT -p udp --dport 631 -j DROP

$IPTABLES -A INPUT -m limit --limit 3/second --limit-burst 5 -i ! lo -j LOG
$IPTABLES -A INPUT -i ! lo -j DROP
------------------------------------------------------------------------------------------

The thing is, since compiling the 2.6.1 kernel...

$ iptables -L

now lists nothing at all. I believe I've narrowed it down to the fact that iptables no longer seems to understand the state feature. Is this something that has to be enabled at compile-time with the kernel? It worked fine on the generic slackware kernel.

cheers
mark
 
Old 01-25-2004, 07:12 PM   #2
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
That is very similar to my rc.firewall file and I'm using kernel 2.6.1. state is still working on iptables for me...perhaps you didn't enable something in the kernel that you should have? I believe you have to enable netfilter and all of the suboptions.

Jeff
 
Old 01-25-2004, 09:51 PM   #3
XStorm
Member
 
Registered: Nov 2003
Distribution: Slack 10.0 / 2.6.8.1
Posts: 63

Rep: Reputation: 15
For my rc.firewall to work I had to enable everything as a module (M) except the last two (who work for 2.2.x and 2.0.x kernels) in the ipfiltering section of the 2.6.x kernel
 
Old 01-25-2004, 10:41 PM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Are the other modules working? If not you need to install module-init-tools...
 
Old 01-26-2004, 01:19 AM   #5
darklogik_org
Member
 
Registered: Jan 2004
Distribution: freebsd 5.3, openbsd 3.6, slackware 10
Posts: 96

Original Poster
Rep: Reputation: 15
Morning!

I only enabled two options in the ipfiltering section. Wasn't really concentrating

That's almost certainly the problem.

cheers
mark
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how is ssi enabled abtimoteo Ubuntu 1 07-10-2005 10:15 AM
NIC enabled TuxFreak Linux - Hardware 1 10-24-2004 06:30 PM
is dma enabled? zepplin611 Linux - Hardware 3 06-09-2004 06:37 PM
port 143. can't telnet, service enabled, no iptables. help? trossachs Linux - Networking 21 02-18-2004 05:48 PM
IP Version 6 enabled speckert Mandriva 0 02-03-2004 03:20 PM


All times are GMT -5. The time now is 03:21 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration