Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/proc/sys missing, can't get iptables to work :(
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
n3odi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 87
Location: Florida

PostPosted: Sat Nov 27, 2004 6:58 pm    Post subject: /proc/sys missing, can't get iptables to work :( Reply with quote

Every time I try to do

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

for f in /proc/sys/net/ipv4/conf/*/rp_filter  ; do echo 1 > $f ; done


It returns with an error that no such file or directory exists. I went and looked in proc, and I couldn't even see /proc/sys however there is /proc/net if that has anything to do with this.

Sorry if this looks messed up but I'm doing this from links, because i can't turn nat on :'(

Can somebody please help me asap? I appreciate it very much.

Btw, I did put the required things to turn on ip forwarding in the sysctl.conf and rebooted.

Thanks
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sat Nov 27, 2004 7:09 pm    Post subject: Reply with quote

did you loaded the modules for netfilter?
Code:
for foo in /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/* ; do modprobe $(basename $(basename ${foo} .ko) .o) ; done


cheers

SteveB
Back to top
View user's profile Send private message
n3odi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 87
Location: Florida

PostPosted: Sat Nov 27, 2004 7:14 pm    Post subject: Reply with quote

I compiled all the features in. I used to have it the same way with the 2.6.9-gentoo-r1 kernel and it worked fine. I checked some of the basic iptable guides and made sure the basic features are all turned on.

I also emerged iptables, and the rules get accepted along with any other standard commands.
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