LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 03-30-2006, 03:24 AM   #1
smarthouseguy
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Rep: Reputation: 0
Question rc.firewall issues 2.4 to 2.6 upgrade


this is my config minus firewall stuff for 2.4 kernel
Code:
insmod ip_tables
insmod ip_conntrack
insmod ip_conntrack_ftp
insmod ipt_state
insmod iptable_nat
insmod ipt_MASQUERADE



echo 1 > /proc/sys/net/ipv4/ip_forward



iptables --flush


iptables --table nat --flush
iptables --delete-chain


iptables --table nat --delete-chain


iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
but on boot with 2.6.15.6 i get the following errors
Code:
insmod:can't read 'ip_tables'; no such file or directory
insmod:can't read 'ip_conntrack'; no such file or directory
insmod:can't read 'ip_conntrack_ftp'; no such file or directory
insmod:can't read 'ipt_state'; no such file or directory
insmod:can't read 'iptable_nat'; no such file or directory
insmod:can't read 'ipt_MASQUERADE'; no such file or directory
so when i take the insmod stuff out of the config this is what I'm left with
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward



iptables --flush


iptables --table nat --flush
iptables --delete-chain


iptables --table nat --delete-chain


iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
this seems to work ok in 2.6.15.6 so am I right to assume that insmod is no longer needed??

Any other suggestions??
 
Old 03-30-2006, 03:55 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Probably you compiled that stuff as built-in into the kernel and not as module, that's probaby why insmod can't see it (but it's already on the kernel, there's no need to load it).
 
Old 03-30-2006, 11:21 PM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Use modprobe instead of insmod.
Be sure to have compiled netfilter.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall Issues craz3 Linux - Security 1 08-27-2005 03:36 PM
firewall issues strimp099 Linux - Networking 1 01-02-2005 11:34 AM
Firewall Issues acdc Linux - Networking 1 04-28-2004 03:00 PM
Firewall issues acdc Linux - Security 1 04-27-2004 06:08 AM
Firewall issues.... fatbaldbob Linux - Networking 14 03-24-2003 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration