-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iptables + networking lockdown recommendations #15
Comments
Comparing the current iptables ruleset to the one suggested above, the following rules are missing:(I added inline comments to some of them to explain their purpose, and changed the DNS port to 9053 where applicable.)
The link also suggests the following kernel tweaks that are not implemented:(However, since one of the suggestions was to set
tl;dnr: I think the egress filtering and (some?) of the kernel tweaks would be useful additions, everything else is duplicative or not really of much help in this use case IMO. I'll try to test all of these possible changes out individually to see if they break things and put together a pull request. |
Seems like not so important stuff. Some basic network lockdown shit. Disabling packet routing is actually a good thing, and something I thought I had done already. The Tor daemon does the packet forwarding itself (receives on one interface, sends on the other)... if the device supports routing then there is the potential for the device to fail open. It should fail closed (without Tor handling the packets, there should be no way for any data to access the Internet). |
Yeah wow, didn't realize that, just assumed ipv4_forward was needed for redirecting to the TransPort, but I guess that's already bound to the private network. I think the Whonix gateway uses its own firewall binary, but it looks like https://forums.whonix.org/t/torifying-a-linux-container-with-whonix-gateway-firewall-rules/243 has a list of iptables rules that its based off of. Looks like another good base to work from. But other than some basic OUTPUT filtering, I don't think there's much that wouldn't be adequately handled by what is already in place. |
Need to check that the iptables script (and other settings) are consistent with the recommendations outlined here:
https://lists.torproject.org/pipermail/tor-talk/2012-October/026226.html
The text was updated successfully, but these errors were encountered: