Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compiled iptables into kernel, but iptables not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Wed Sep 03, 2003 12:18 am    Post subject: compiled iptables into kernel, but iptables not working Reply with quote

so I did a reinstall of my system, and like in the fast, I built all the iptables I needed to into my kernel to allow for firewall packet-filtering. In the past, building iptables into the kernel has also installed iptables into my system, creating the file /sbin/iptables for me to modify my rules with.

However, after running this firewall script:

Code:

/sbin/iptables -F
/sbin/iptables -P INPUT DROP
/sbin/iptables -P FORWARD DROP
/sbin/iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -p tcp --dport ssh -j ACCEPT


I get the following errors:
Code:

./firewall.rules.1_0: line 1: /sbin/iptables: No such file or directory
./firewall.rules.1_0: line 2: /sbin/iptables: No such file or directory
./firewall.rules.1_0: line 3: /sbin/iptables: No such file or directory
./firewall.rules.1_0: line 4: /sbin/iptables: No such file or directory
./firewall.rules.1_0: line 5: /sbin/iptables: No such file or directory


I then look in /sbin and find that iptables is not there, but that ipmaddr and iptunnel are there (what they are, I don't know). I then checked my kernel config and found that iptables was indeed compiled into the kernel, like before, but it seems that this did not put the rest of iptables onto my system like before.

How can I go about fixing this? My kernel is currently a gentoo-sources-2.4.20-r6 (marked in the stable branch).
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
Curious
Bodhisattva
Bodhisattva


Joined: 13 May 2002
Posts: 395
Location: Sydney, Australia

PostPosted: Wed Sep 03, 2003 12:41 am    Post subject: Re: compiled iptables into kernel, but iptables not working Reply with quote

rajl wrote:
In the past, building iptables into the kernel has also installed iptables into my system,


Really? I thought it had its own package ( net-firewall/iptables ) <-- tried re-emerging that?

-- Curious
_________________
Are you down with the Hawk?
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Wed Sep 03, 2003 5:12 am    Post subject: Reply with quote

guess in the past, iptables got automagically installed with the kernel somehow...works, kind of...iptables is killing my kernel...see the thread I put in this forum asking for help for more details
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20588

PostPosted: Thu Sep 04, 2003 3:18 am    Post subject: Reply with quote

Moved from Installing Gentoo
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum