Better HN
topnewbestaskshowjobs
Log inSign up

LinuxBender

57,650 karma · joined Jun 16, 2015 (11y ago) · 19,241 submissions

I am not for everyone. To ignore me in uBlock Origin, add to "My filters":

   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)

    (\_/)
    (='.'=)
    (")_(")
Submissions

comment 9y ago · link · parent

You can use

  find . -type d
or set IFS.

  IFS='
  '

  or

  IFS='\n'
then reset it later. Perhaps store existing IFS in a variable so you can put it back. The \n vs actual line feed has to do with an edge case in cygwin and dos files.

comment 9y ago · link · parent

  - SELinux Enabled
  - Sysctl tuning applied
  - Inbound/Outbound/Forward iptables rules enabled
  - ipset iptables rules enabled
  - iptables intercept rules to route all ntp/dns over VPN
    to VPS nodes.
  - Unbound DNS overriding many spammy domains
  - tinc vpn enabled to multiple VPS nodes.
  -- Each VPS node load balancing to multiple datacenter open resolvers that
     are NOT OpenDNS or Google.
  - ip route blackhole about 20k bad networks from firehol on github
  - syslog to internal host
  - Surricata IDS logging to syslog
  - tc cbq traffic shaping enabled
  - haproxy L4 vips for sending select traffic to select squid proxies.
  - power conditionor / ups enabled, one for router, one for cable modem.
Those are the basic things. My router is always Linux running on commodity hardware with dual gig interfaces for clear physical demarcation.

comment 9y ago · link · parent

Apache is stable, rarely any security related issues; and even then, it's usually a module not installed/enabled by default.

Nginx and Apache are about the same performance, assuming you are on 2.4.x and using the latest apr/apr-util/apr-iconv. The memory footprint is about the same and benchmarks are about the same.

Nginx still hard codes libc options that I have to undo in the Makefile each time to get the glibc hardening options enabled. (PIE, Full RELRO, stack protector and so on) I have not tested the last 3 or so releases, so maybe Maxim has resolved this?

I prefer Apache for anything CGI related, as the security is more tightly coupled to the webserver. With NGINX, I have to use another daemon that has it's own security settings, environment, etc.

comment 9y ago · link · parent

Doesn't it have religious pref, ethnicity and much more?

comment 9y ago · link · parent

If I jokingly suggested to the gov that AWS S3 be categorized by all firewall vendors as "Anonymous File Sharing", would I get a yuge response?

comment 9y ago · link · parent

I forgot to mention, all cellphones come bundled with vendor installed spyware. CarrierIQ is one such example, now owned by AT&T, but there are many of them. They will tell you it is only enabled when your device is in debug mode, but your device dials home all the time and a single http header can enable debug for a period of time.

comment 9y ago · link · parent

Are there documented cases of them going after non C-Level folks? If so, their legal team must be massive.

comment 9y ago · link · parent

Never forget[1]

[1] https://en.wikipedia.org/w/index.php?title=Covfefe&direction...

comment 9y ago · link · parent

Your laptop/desktop are not secure either. That said, cell phones today have everything... every little bit of everyones life embedded on them. The are on all the time. They are not patched as often as desktop OS's. They are juicy delicious targets and great listening / tracking devices. Laptops can be used this way, but nowhere near the same target value.

comment 9y ago · link · parent

Fresh water is potentially as harmful as salt water, depending on how you utilize it.

E-Cigs potentially saved my sons life. He grew up around smokers. I had no control over this. Now that he lives with me, I fully support the use of E-Cigs. He has almost stopped using E-Cigs and he has stopped smoking tar+tobacco cigarettes completely.

Traditional cigarettes for certain are carcinogens and there is no dispute they cause cancer and kill people.

comment 9y ago · link · parent

"Securely" and "phone" do not go in the same sentence.

comment 9y ago · link · parent

Just tax the locals and make them buy wind turbines to offset the CO2 output of their volcano if they are unwilling to shut it off.

comment 9y ago · link · parent

It's google. They will teach the kids to trust the brand name they know. ;-)

comment 9y ago · link · parent

Have you considered using ipset so that rules don't have to change and ip's can by dynamically added/removed?

comment 9y ago · link · parent

That is really cool.

FWIW, one could think of downvotes as kudos for thinking differently.

comment 9y ago · link · parent

A better analogy would be bacteria in your mouth.

For years, you had billions of bacteria in your mouth, slowly disintegrating the enamel of your teeth and slowly burrowing cavities into your teeth. They consume the food you eat, then urinate acidic waste that destroys your teeth and gums. They do this so slowly that you don't even feel the acidic damage.

Then, one day, you use a very strong mouthwash that contains alcohol. The alcohol instantly kills billions of bacteria, all of whom urinate instantly all at the same time, in excruciatingly painful death. The acid level is so high that it causes a burning sensation in your mouth, you are like, "damn, this mouthwash burns, I'm not using this crap again!"

You saw the mouthwash as the bad guy. In reality, the bad guys were there all along.

comment 9y ago · link · parent

The Healthcare system damaged the Healthcare system. I am ashamed of the people that had access to my data.

While the people that did this caused pain and cost to the industry, I am looking forward to them inducing more pain until the "health professionals" stop harming patients by being wreckless and cavalier with their patient data. The real patient harm has been occurring all along, you just didn't know about it until now.

Also, your analogies are off track.

comment 9y ago · link · parent

I am saddened by this.

WannaCry was doing a great job of partitioning data from people that should never have been "managing" it in the first place. I was really hoping that a significant portion of my data had been encrypted into the abyss for eternity.

comment 9y ago · link · parent

I replaced the engine and transmission in my vehicle at around 220k. I intend to get another 300k out of it, hopefully long enough for the first wave of cars to be remote controlled into the nearest lake and legislation to be passed requiring some security rating that does not yet exist.

comment 9y ago · link · parent

There are many factors in this, such as proximity to the blast, elevation of the nuke, surface shape and soil/sand content, wind direction, ambient temp, humidity levels, your age, your pre-existing health condition.

There are way too many factors to generalize any proper response. If you are too close to the blast for the filtration in a car to be of use, you will probably be in a state of shock anyway, so just get in, drive away, go to the closest convenience store, help yourself to water, food, etc and drive away as fast as you can. Otherwise, if you are in a busy city, ya, yer pretty much out of luck.

Oh and this is just a guess, but save up on bottle caps.

comment 9y ago · link · parent

My home ISP can not see my DNS packets. Those are the adversaries I am defending against specifically. All DNS packets on my home ISP are encapsulated in a VPN to my VPS nodes. I also pre-cache popular requests via cron and via settings in Unbound.

From there, for sure, the risk increases. I am not sure I trust DNSSEC to help me much. That said, I rotate through many local recursors at each location, so they have to rewrite my traffic right as it leaves my node. That is doable, but that isn't really what I am defending against. Anything I care about, I validate in a script and write into /etc/hosts.

You are correct, there are not that many recursors that support TLS.

Beyond that, things like software updates I don't trust DNS at all and certainly not public mirrors. I validate packages with GPG signatures. Even that is tricky, because chicken+egg, so I validate the GPG sigs from trusted sources.

On a funny side note, you would be surprised how many people rely on trusting GPG keys that are contained in a package, signed by those same keys, in the same repo.

comment 9y ago · link · parent

I have never owned a smart phone. I have a cheap throw away phone and I love it. I use phones for voice and rarely text. My battery sometimes lasts up to two weeks.

This isn't some rebellion against tech. I helped build the first GSM network in the United States long ago. I think that helped me dislike cell phones (in general) and distrust providers.

comment 9y ago · link · parent

I would add that if a car is your only option and if it still runs, you actually should get in it before the wind brings any fallout. Most modern cars have some air filtration. It's not as good as a HEPA filter, but it's better than nothing and might get you to a nearby building faster. Unlike in the movies, the EMP won't likely harm the cars computer.

comment 9y ago · link · parent

You should add that it routes in user-space without turning on kernel forwarding, to any node in the network even if they are not directly connected. There are some nice privacy and availability aspects to this.

comment 9y ago · link · parent

Sorry, I do not. I set it up manually. While I do have some scripts, they are custom tailored to my network setup. That said, it's really easy to do.

You could use the other github scripts that folks have linked for setting up the VPN. Then you would want to set up recursive DNS servers on your home router and VPS nodes. Then look into iptables mangle to intercept DNS, NTP, etc. HAProxy L4 vip on the router is an easy way to forward some web traffic to Squid running on multiple VPS nodes. Squid has an intercept mode you can use for any traffic you want to throw at it. Unbound DNS can override min-ttl and allows overriding partial or complete DNS zones for block some shenanigans. Calomel.org has some articles on some of these things.

It's probably even better if you research each step yourself so that adversaries have to work harder to generalize attacks around your configuration.

comment 9y ago · link · parent

The cert does not contain the apex domain.[1]

[1] https://dev.ssllabs.com/ssltest/analyze.html?d=www.defcon.or...

comment 9y ago · link · parent

There are use cases that make sense. My home linux router intercepts and sends all DNS and NTP requests, then routes all DNS requests to multiple VPS nodes that in turn, use multiple DNS recursors at each VPS datacenter. I intentionally avoid google and opendns. I override the min-ttl of all requests to avoid some shenanigans and I am well aware of the issues this can cause.

At a minimum, my ISP can not see or tamper with DNS requests. My VPS nodes are multi-purpose so it isn't really extra cost.

This also gives me the capability to intercept some of my traffic and route it over my VPN using a combination of haproxy and squid. I can do this by source PC, or by destination, or protocol, or any combination thereof.

For me, this has worked great for years and gives me a lot more flexibility, options and control over my data flows. If I want more privacy, I can use my existing tc cbq QoS and rate limited rsync's of random noise to hide some traffic patterns.

comment 9y ago · link · parent

Here are some stats[1] from some real dumps.

[1] https://hashes.org/public.php

1
633634635
642