1,909 karma · joined Sep 24, 2012 (14y ago) · 1,011 submissions
comment 8y ago · link · parent
comment 8y ago · link · parent
I believe that Android does not accurately represent the battery usage of VPN apps. It seems to count all the radio (i.e. mobile and Wi-Fi) usage against the VPN app, but actually the traffic was sent only because some other app requested its transmission. WireGuard itself uses zero battery if no network traffic is being passed and the NAT keepalive mode is off. (at least this is true in the abstract, it might run occasional timers to update system information as Android requires)
comment 8y ago · link · parent
comment 8y ago · link · parent
The config file is designed to be very straightforward and contain only the bare minimum required configuration stanzas. If you want to separate the keys, or use a higher level key negotiation protocol (e.g. TLS), you can write your own script that calls the lower level "wg" command instead of "wg-quick". Alternatively, you can write a script that generates a wg-quick configuration file.
comment 8y ago · link · parent
`down` only writes the state of the interface if you put SaveConfig = true in your configuration file. If so... you asked for it.
> I'd like to see an easier way of doing the exclusions, inverse CIDRs are not my forte
WireGuard uses the standard Linux routing infrastructure. wg-quick uses the powerful Linux policy routing functions along with the suppress_prefixlength policy routing rule in order to use your main routing table for exclusions. Therefore, the command to exclude an IP is simply "ip route add 10.0.1.0/24 via 10.0.0.1 dev eth0". Obviously you should replace the example subnets and interface, and this is not permanent. The beauty of wg-quick is that you don't need to add this rule every time you bring up your VPN, but can instead add it as a temporarily redundant static route.
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
1. it doesn't clearly say that git checkout with a path is irreversible.
2. it says that git reset --hard is irreversible, which is not correct. (see 3.)
3. it doesn't mention one of the most powerful git features for fixing mistakes, the reflog.
4. git remove is not a git command.
5. gitingore is not a git file.
6. git-amend is not a git command.
7. It doesn't adequately explain why force-pushing causes problems.
It looks like clicking through to the gists was such a pain that even the author didn't proofread them.
comment 8y ago · link · parent
This might be true.
> In fact, they don't even have the ability to access it...
This is clearly false on the face of it. Obviously the browser has access to the browsing history.
Brave claims on https://brave.com/hc-privacy/ that "When Brave Ads launches later this year, all personal data and browsing history will remain on-device and will not be transmitted to Brave or anyone else.". This implies that they will use personal data and browsing history, but attempt to anonymize it in some unspecified manner before selling it. Of course, as Netflix can attest, this is much harder than it sounds, and I highly doubt that Brave is up to the task.
comment 8y ago · link · parent
These are pretty straightforward. metric 600 means that out of all the otherwise-identical routes, the kernel will prefer this one to one with a metric of 601 or greater. scope link means that this address is only valid on the local link (network interface). scope global means that (the kernel assumes) this address is valid on the wider Internet. proto kernel means that the kernel automatically installed this route for you because you used "ip address add x/y". Now, the "table x" part is actually really interesting, because Linux doesn't just support "a route table", it supports 256 routing tables. These are used in conjunction with policy routing in order to support source address routing, firewall mark based routing, and others. Firewall mark based routing is extremely powerful: for example: MARK all packets on port 53 whose (using BPF) first DNS query question is jvns.ca, and send those using eth1 instead of eth0. More mundanely, wg-quick from WireGuard uses this feature to bypass the VPN for the VPN packets, which allows the VPN to be used for the VPN gateway.
554.
2 points · by Hello71 · 8y ago · discuss
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent