SelfControlApp / selfcontrol

:skull: Mac app to block your own access to distracting websites etc for a predetermined period of time. It can not be undone by the app or by a restart – you must wait for the timer to run out.
http://selfcontrolapp.com
GNU General Public License v3.0
4.03k stars 399 forks source link

Why is selfcontrol disabling filtering on lo0? #318

Open danquah opened 8 years ago

danquah commented 8 years ago

See https://github.com/SelfControlApp/selfcontrol/blob/2fbdc7dad533263bc3418e065f4c20f92c8ed556/PacketFilter.m#L28

Any (good) reason why selfcontrol is disabling all further filtering on lo0? I have a local setup where *.localhost resolves to localhost and are then redirected further from port 80 to 8080 to be able to have a local webserver running without root-privileges. The latter redirect does not work as long selfcontrol is enabled as it disables all filtering on lo0.

Any harm in just skipping that line?

I susepect the above is the cause of the incompatibility with Pow mentioned in #234

cstigler commented 8 years ago

@danquah good question. I believe it was added back in the ipfw days to make sure the user couldn't seriously screw up internal OS X systems (that rely on the loopback interface). The intention was definitely not to disable further filtering.

In terms of whether it can be safely removed - also a good question, requires some testing...