You are not logged in.
Hi
How to enable routing at boot time so I don't need it to do it manually with that command: "echo 1 > /proc/sys/net/ipv4/ip_forward"?
Thank you in advance!
cheers
Daniel
Offline
You can add that echo line to your /etc/rc.local which will cover it... I have mine loaded up some boot stuff:
$ cat /etc/rc.local
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
/sbin/ifconfig eth0 mtu 4000 # set jumbo frames
/root/bin/fix_lcc # fix lcc if wd20ears is connected
echo noop > /sys/block/sdb/queue/scheduler # set scheduler for SSD
echo "11" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold # adjust ondemand threshold
Last edited by graysky (2010-09-24 08:19:31)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
/etc/sysctl.conf is what you're looking for.
add net.ipv4.ip_forward=1
Offline
/etc/sysctl.conf is what you're looking for.
add net.ipv4.ip_forward=1
+1
rc.local is not the "right" way
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
bangkok_manouel wrote:/etc/sysctl.conf is what you're looking for.
add net.ipv4.ip_forward=1+1
rc.local is not the "right" way
Never let it be said that I do things the right way... I was ignorant to the sysctl.conf method
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Never let it be said that I do things the right way... I was ignorant to the sysctl.conf method
The day you don't learn something new, is the day you die
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline