View previous topic :: View next topic |
Author |
Message |
n3odi Tux's lil' helper
Joined: 07 Jul 2004 Posts: 87 Location: Florida
|
Posted: Sat Nov 27, 2004 6:58 pm Post subject: /proc/sys missing, can't get iptables to work :( |
|
|
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 |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Sat Nov 27, 2004 7:09 pm Post subject: |
|
|
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 |
|
|
n3odi Tux's lil' helper
Joined: 07 Jul 2004 Posts: 87 Location: Florida
|
Posted: Sat Nov 27, 2004 7:14 pm Post subject: |
|
|
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 |
|
|
|