Posted: Wed Aug 10, 2011 0:34 Post subject: can't edit /proc/sys/net/ipv4/ip_forward
I want to use my dd-wrt router to create a vpn-connection and share this connection with the clients.
Mode is set up on "Repeater"
I've read a tutorial about that and the router got a vpn connection, but I can't share this connection with iptables (maybe wrong iptables) and I've a problem editing the file ip_forward
if I use
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
nothing changes than I opened the file with
Code:
vi /proc/sys/net/ipv4/ip_forward
Editing the file with vi doesn't work.
Even a startupskript like
It should already be set to 1 unless you disabled routing for some reason. If you really are using Repeater mode (not Repeater Bridge!!!) then you shouldn't need to mess with this. If you're really using RB mode then you shouldn't be. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
It should already be set to 1 unless you disabled routing for some reason. If you really are using Repeater mode (not Repeater Bridge!!!) then you shouldn't need to mess with this. If you're really using RB mode then you shouldn't be.
Thank you for your help.
With the repeaterbridge-mode I've got a '1' if I execute following:
Code:
cat /proc/sys/net/ipv4/ip_forward
That's super, but vpnc doesn't work in this mode
Code:
root@DD-WRT:~# vpnc /tmp/etc/vpnc/vpn.conf
connecting to port 62465: Network is unreachable
so I turned it back to 'repeater' and put in this startupscript again:
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
With this mode I can execute vpnc without a problem and got a vpn-connection and pinging google works:
Code:
root@DD-WRT:~# ping google.com
PING google.com (209.85.148.99): 56 data bytes
64 bytes from 209.85.148.99: seq=0 ttl=55 time=12.187 ms
64 bytes from 209.85.148.99: seq=1 ttl=55 time=16.217 ms
64 bytes from 209.85.148.99: seq=2 ttl=55 time=16.105 ms
But I've got another problem which I can't solve for 2-3 weeks
The vpn-connection is the gate to the Internet.
But the clients in my Network got no Internet.