Permission problem writing to /proc/sys/net/ipv4/conf/ethXX/proxy_arp
I am trying to enable proxy ARP on Ethernet devices on the fly from user mode scripts, e.g. echo 1 > /proc/sys/net/ipv4/conf/eth0.2/proxy_arp. It has to be dynamic ( I am making VLAN subinterfaces on the fly) and it has to run from user shell, even if I have to use sudo. The problem is if I try sudo echo 1 > ..... or even sudo -s echo > 1 it denies permission. The only way I can make it work is sudo -s<CR>, followed by echo >1...., then exit the root shell. Is there an easier way?
|