I try to put value "1" into some virtual file of /proc, and I get "permission denied" despite using sudo:
name@comp-name:/etc/dhcp$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
bash: /proc/sys/net/ipv4/ip_forward: Permission denied
I guess that echo command runs with root permissions, but redirection (>) maybe runs without? Can I run both of them with root permissions?