Click to See Complete Forum and Search --> : ip forwarding cmd cant work


84ian
09-07-2003, 11:33 PM
I've set my rules and chains..watever u call them.
However when i tried activating the commands:
>/proc/sys/net/ipv4/ip_forward
* Permission denied*
i've tried changing the mode with chmod u+x but nothing happens....help?? Thanxs alot~

freemansweb
09-07-2003, 11:39 PM
If you as, your logged in, own the file and the permissions are set correctly and you still get the permission denied error, try logging in and running it as root.

84ian
09-07-2003, 11:45 PM
i am logged in as root...tried changing the /etc/sysct1.conf by changing the value to 1 ...but still nothinghappens..even rebooted the comp..
??how??

terribleRobbo
09-07-2003, 11:55 PM
Blind leading the blind here...? :D


From the looks of it you're trying to run the file. What you really need to do is type:


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


as root, and all should be fine. I think.


I'm not sure if you need the iptables' nat rule in there somewhere, but... meh... I don't know. :)

84ian
09-08-2003, 03:54 AM
Yup. I've tried changing the boolean value ...
i typed cat ip_forward, it shows 1
however, the cmd still doesnt initialise.
what is the problem?

saturn-vk
09-08-2003, 04:48 AM
there is no cmd command, the /proc is a virtual file system with your computer's settings, there are no commands in it. now you have to make the firewall script in order to take advantage of ip forwarding.