57,650 karma · joined Jun 16, 2015 (11y ago) · 19,241 submissions
news.ycombinator.com##tr.athing.comtr:has(a.hnuser):has-text(/\bLinuxBender\b/)
For HN usage questions see https://github.com/minimaxir/hacker-news-undocumented for HN tips (not my repo) (\_/)
(='.'=)
(")_(")comment 7y ago · link · parent
[1] - https://www.cnbc.com/2018/06/07/carbon-engineering-and-harva...
comment 7y ago · link · parent
[1] - https://www.youtube.com/results?search_query=milankovitch+cy...
comment 7y ago · link · parent
1) Make a law requiring all websites that allow user contributed content to enable RTA headers within {n} period of time.
2) Then make a law requiring all browsers and web apps look for that header and enforce parental controls within {y} period of time.
That's it. That puts the control in the hands of the parents and lets them decide if their progeny are ready for adult content. No need to give up PII.
16326.
US and Russia clash over power grid 'hack attacks'(bbc.com ↗)
2 points · by LinuxBender · 7y ago · discuss
16327.
Venmo transaction scraped in privacy warning to consumers(scmagazine.com ↗)
2 points · by LinuxBender · 7y ago · discuss
comment 7y ago · link · parent
That said, it's not the CIA I would be overly concerned about. It's the skiddies that learn how to implement the same level of access. Imagine a child predator watching your kids in their room. Worse, they know when a latch-key kids parent is not there. Combine this with Wifi SSID data from wigle.net and they have your street address.
comment 7y ago · link · parent
[1] - https://wiki.mumble.info/wiki/Main_Page
[2] - https://github.com/systemli/ansible-role-mumble
P.S. use their 1.3 RC version. It is very stable and much better than 1.2.
comment 7y ago · link · parent
In all seriousness, are they offsetting the coin generation with windmills, sea turbines, or geothermal plants? How much power is being consumed by FB and the small handful of banks that are cranking out these tokens?
comment 7y ago · link · parent
comment 7y ago · link · parent
[1] - https://wiki.nftables.org/wiki-nftables/index.php/Mangle_TCP...
comment 7y ago · link · parent
This goes in the mangle table. DO NOT use this example unless you know for sure what you are doing.
iptables -t mangle -I POSTROUTING -o eth0 -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -m tcpmss --mss 1:100 -j TCPMSS --set-mss 1360
This example should work for most use cases, but don't do this unless you for sure know the implications. Dropping bad inbound options is easy, but outbound can get more complicated. I am just showing this in case anyone asks and I am asleep. :-) Talk to your network admins and ask what is the highest mss/mtu your VPN's and 3rd party networks support.This may not even help, as the packet has already been generated and we are too late in the process. I just figure someone might ask. There are probably use cases where this may help (for proxies, edge firewalls, hypervisors, docker hosts, maybe)
Or just log and drop the connections, or send yourself (your app) a tcp-reset.
comment 7y ago · link · parent
An alternate option would be to put the device behind another firewall or load balancer or proxy that you know is not vulnerable.
comment 7y ago · link · parent
YOUR_RULE -m limit --limit 2/sec -j LOG --log-prefix="MALFORMED_MSS: " --log-ip-options --log-tcp-options --log-level 7comment 7y ago · link · parent
So for the raw table, it would be
iptables -t raw -I PREROUTING -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m tcpmss --mss 1:500 -j DROP
For the default (filter) table iptables -t filter -I INPUT -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m tcpmss --mss 1:500 -j DROP
Generally speaking, if you know you are going to drop everything that matches a pattern or address, it is useful to put that in the raw table, so that malicious traffic can't spike your CPU load as easily. Every packet to the filter table will incur potentially CPU expensive conntrack table lookups. As your conntrack table gets bigger, this gets more expensive.The reason I use the opposite method is that we not the normal range we want. Programs can also set super high values or not set mss at all (which is not the same as 0).
I explicitly set the interface, so that we don't match interfaces such as lo, tun, tap, vhost, veth, etc... because you never know what weird behavior some program depends on. In my example, eth0 is directly on the internet. In your systems, that might be bond0.
comment 7y ago · link · parent
ip route add blackhole "${ip}"
Blocking via route uses less CPU and memory than iptables+iplist hashes, but iplist hashes can be useful if you want to track what is being blocked. If using iptables, be sure to block in the raw table to avoid connection tracking table CPU hits.comment 7y ago · link · parent
iptables -t raw -I PREROUTING -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m tcpmss ! --mss 640:65535 -j DROP
Here it is in action: iptables -L -n -v -t raw | grep mss
84719 3392K DROP tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x17/0x02 tcpmss match !640:65535
My settings may be a little aggressive and may block some old pptp/ppoe users. Perhaps 520 would be a safer low end. As a funny side note, this also blocks hping3's default settings (ping floods) as it doesn't set mss. This also blocks a slew of really poorly coded scanners.For everything else at work, we are behind a layer 7 load balancer that is not vulnerable.
You may also find it useful to block fragmented packets. I've done this for years and never had an issue:
iptables -t raw -I PREROUTING -i eth0 -f -j DROP
If you have the PoC, then feel free to first verify you can browse to https://tinyvpn.org/ then send the small MSS packets to that domain, then see if you can still browse to it. I don't care if the server reboots or crashes. Just don't send DDoS please, as the provider will complain to me.To see the counters increase, here is a quick and silly cron job that will show you the MSS DROPs in the last minute, that I will disable after a couple days: [1]
comment 7y ago · link · parent
There is a hacky way to serve single page static files directly via haproxy, by creating a http file (including headers) and add it to a custom back-end. This is really only useful if you have one or two pages you need to serve and don't want to run another web server. Some people use this for outage or maintenance pages.
acl landing path_beg /demo
use_backend landing if landing
backend landing
mode http
fullconn 10000
errorfile 503 /opt/ha/landing_page.http
http-request set-log-level silent
# cat landing_page.http
HTTP/1.1 200 Ok
Cache-Control: no-cache, no-store
Connection: close
Content-Type: text/plain
This is a static text file served directly from HAproxy 1.9
I will catch grief for showing this.
Then use acl's to send specific requests to that page. Obviously change/add headers as required for the content in the file and use-case. Perhaps useful for outage or maintenance pages. Use your imagination for other use cases where you might want to automatically serve such a page.Here it is in use: [1]
[1] - https://tinyvpn.org/demo
16350.
Measles cases in United States rise to 1,044(lite.cnn.io ↗)
2 points · by LinuxBender · 7y ago · discuss