In sysctl.conf settings, what is the difference between 'all' & 'default'?

3

In context of sysctl.conf settings, what is the difference between (all vs. default) like net.ipv4.conf.all.accept_source_route & net.ipv4.conf.default.accept_source_route in sysctl settings ?

If I added all values, is it necessary to add default as well ?


Using Ubuntu 12.04 LTS

Rajat Gupta

Posted 2014-03-13T21:02:27.480

Reputation: 613

See this question.

– Totor – 2016-10-26T00:25:40.900

Answers

-1

Special thanks to Symantec and google:

When you change variables in the /proc/sys/net/ipv4/conf/all directory, the variable for all interfaces and default will be changed as well.

When you change variables in /proc/sys/net/ipv4/conf/default, all future interfaces will have the value you specify.

This should only affect machines that can add interfaces at run time, such as laptops with PCMCIA cards, or machines that create new interfaces via VPNs or PPP, for example.

G Koe

Posted 2014-03-13T21:02:27.480

Reputation: 4 333