On September 24, 2011 15:57, in comp.os.linux.networking, mil...@yoyo.ORG
wrote:
> On Saturday, September 24th, 2011 at 19:29:26 +0000, Buck asked:
>
>> So what does
>> ls -l /proc/sys/net/ipv4/conf/default
>> show
>
> ll /proc/sys/net/ipv4/conf/default/mc_forwarding
> 0 -r--r--r-- 1 root root 0 2011-09-24 21:50
> /proc/sys/net/ipv4/conf/default/mc_forwarding
>
>> On my slackware64-current system, the permissions are read only, so of
>> course one cannot alter the value unless the permissions are altered to
>> rw.
>
> It is not just the permission on the file that allows one to change a
> file, but the permission on the directory.
>
> But normally root can change any file regardless of the ownership
> or permission on the file.
>
>> If you must change this
>> chmod 644 /proc/sys/net/ipv4/conf/default/mc_forwarding
>
> chmod 644 /proc/sys/net/ipv4/conf/default/mc_forwarding
> chmod: changing permissions of
> `/proc/sys/net/ipv4/conf/default/mc_forwarding': Operation not permitted
Remember that the directories and files in the /proc directory tree
are "manufactured" on the fly by kernel components. While they exhibit the
expected permission structure, they do not necessarily behave like regular
files; the kernel components can impose additional restrictions, such
as "without write permission, even root cannot write", and "user processes
(including root user processes) cannot change the permission structure".
Thus, it appears that, by themselves, the mc_forwarding files are strictly
read-only, providing information on the current setting of multicast
forwarding, and not providing a mechanism to change it.
> Which still leaves the question unanswered,
>
> "Why is it not possible to turn on multicast forwarding on any interface?"
It /is/ possible. But it takes more than just an
echo 1 >.../mc_forwarding
to accomplish.
IIRC, you /first/ must have a multicast router running, which sets up the
proper kernel conditions to activate multicast forwarding.
Do you have a multicast router running?