Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

On Debian 12.04 LTS

I am trying to access the key net.ipv4.conf.all.mc_forwarding by doing :

sudo sysctl -w net.ipv4.conf.all.mc_forwarding=1

But every time I am doing this, I get the message

error: permission denied on key 'net.ipv4.conf.all.mc_forwarding'

Why do I get this message? How can I change this key?

share|improve this question
    
Because /proc/sys/net/ipv4/conf/all/mc_forwarding is read-only, even for root. It seems like you have to run a multicast router instead of turning this option on directly. –  scai Jun 17 '13 at 12:24

1 Answer 1

up vote 3 down vote accepted

I believe this thread describes your problem

In a nutshell, the proc entry containing that value is read-only, and cannot be made writable easily:

$ ls -ln /proc/sys/net/ipv4/conf/all/mc_forwarding 
-r--r--r-- 1 0 0 0 Jun 17 08:20 /proc/sys/net/ipv4/conf/all/mc_forwarding
$ sudo chmod u+x /proc/sys/net/ipv4/conf/all/mc_forwarding
chmod: changing permissions of `/proc/sys/net/ipv4/conf/all/mc_forwarding': Operation not permitted

But you can run your own router daemon to (e.g xorp) to get multicast forwarding.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.