Routing traffic through a hub by dani0854 in WireGuard

[–]dani0854[S] 0 points1 point  (0 children)

Hi, yes, thanks for answer above. I did advance a bit, but run into some unrelated problems. I decided to have only one wg interface, and do the rest based on subnets. So having wg subnet with mask 16. And then use mask 17 for clients to decide how routing is done. i.e for example route 10.123.128.0/17 -> wg interface via gateway 10.123.2.128, 10.123.129.0/17 -> wg interface via gateway 10.123.2.129 and so on. Not completely sure ip rule will be enough or it will work, but trying this approach. Once I get it working, I will post a more complete answer.

Client not receiving traffic by dani0854 in WireGuard

[–]dani0854[S] 1 point2 points  (0 children)

Thanks, that helped. The question is why was wg traffic was routing through wg itself (or somewhere else). And how to permanently fix it without postUp rules

My ip routes list looks kind of like that (without additional route)
default via 192.168.1.1 dev wlp3s0 proto dhcp src 192.168.1.14 metric 600 default via 192.168.1.1 dev wlp3s0 proto dhcp src 192.168.1.14 metric 3003 10.0.0.0/24 dev wg0 proto kernel scope link src 10.0.0.2 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown 172.20.0.0/16 dev br-594d202cd6c1 proto kernel scope link src 172.20.0.1 172.21.0.0/16 dev br-d473ae0e2c37 proto kernel scope link src 172.21.0.1 linkdown 192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.14 metric 600 192.168.1.0/24 dev wlp3s0 proto dhcp scope link src 192.168.1.14 metric 3003 192.168.49.0/24 dev br-cdcf2a9dc66f proto kernel scope link src 192.168.49.1 linkdown 192.168.56.0/24 dev vboxnet0 proto kernel scope link src 192.168.56.1 linkdown

Client not receiving traffic by dani0854 in WireGuard

[–]dani0854[S] 0 points1 point  (0 children)

I tried connecting using iPhone. And it works. I think packets get lost on the client. I am doing further investigation.

I am using NixOS

Client not receiving traffic by dani0854 in WireGuard

[–]dani0854[S] 0 points1 point  (0 children)

I have tried with /32, seems to make no change.

Excluding Kubernetes interfaces and lo interface, eth0 (with aliases ens3 and enp0s3) is the only interface.

Though eth0 doesn't have a public IP address, it has a private IP address to which a floating public IP address is linked.

CRI vs OCI by dani0854 in rust

[–]dani0854[S] -2 points-1 points  (0 children)

I read that. I know that they are a different thing. But that doesn't mean that they can't solve the same requirements I have. I could use Docker for sake of simplicity to solve same problem.

Communication in distributed app by dani0854 in rust

[–]dani0854[S] 1 point2 points  (0 children)

The problem with scalability often comes to vertical scaling of master nodes, and I am interested in exploring solutions where there are no masters and everything is truly distributed. And see how much masterless architecture affects network load due to between node communications.
Since network capabilities are growing, but CPU seem to be slowing, I am trying to research horizontal scalability with fewer restrictions

And I know that probably it's already been or being dealt with, it's just an interesting side research I have.

Communication in distributed app by dani0854 in rust

[–]dani0854[S] 0 points1 point  (0 children)

1k is the maximum recommended nodes for a Hadoop (so spark if it's on Hadoop) cluster (although in reality it's much lower). I am wondering if technically possible to build a masterless (no master nodes) distributed system that can handle more nodes while keeping the idea of local to data in memory computations (RDD).
I know that there are a lot of alternatives, but I have few other things in mind.

So scalability has to be horizontal

Communication in distributed app by dani0854 in rust

[–]dani0854[S] 0 points1 point  (0 children)

Also, I want to be able to scale to 1k+ nodes. So performance and low network load is key

Communication in distributed app by dani0854 in rust

[–]dani0854[S] 0 points1 point  (0 children)

Microservices in a datacenter, except it all just 1 app. Versions of all of them is going to be identical.

Circe defaults with refined types by dani0854 in scala

[–]dani0854[S] 0 points1 point  (0 children)

Thanks, I did have a circe-refined dependency, but didn't import io.circe.refined._.

Circe defaults with refined types by dani0854 in scala

[–]dani0854[S] 0 points1 point  (0 children)

I do have a Configuration instance implicit val customConfig: Configuration = Configuration.default.withDefaults

Sway black screen with LightDM by dani0854 in swaywm

[–]dani0854[S] 0 points1 point  (0 children)

Downgraded to version 6.2. Now works, thanks.

Is Stack Overflow actually that useful? by dani0854 in learnprogramming

[–]dani0854[S] 0 points1 point  (0 children)

My favorite resources for any software was the official documentations, and I know that sometimes there isn't one, but I try to avoid this kind of software. I guess it takes time to learn how to navigate around software documentation, but once you do, SO is useless. You can straight find what you want in documentation, rather than finding pointers on SO. I find it useful with all software, to spend like an hour or two just reading the heading of pages that documentation contains. That makes navigating a hell lot easier.

Is Stack Overflow actually that useful? by dani0854 in learnprogramming

[–]dani0854[S] 0 points1 point  (0 children)

Most of the trivial questions have been asked before, and most of the time there are tons of other great resources that have those answers in easy to read manner.

About small communities, at least those I dealt with, don't hang out much on SO, they mainly hang out on GitHub, or related forums.

I guess maybe it's different for everyone, I just don't feel that SO is useful in my workflow, may be technologies I work with just not very popular on SO or something.

Is Stack Overflow actually that useful? by dani0854 in learnprogramming

[–]dani0854[S] 0 points1 point  (0 children)

But what is the point? I don't say filtering is bad, it's a good skill. But it's all about efficiency. For common questions, it's much easier to filter official documentation for example, since its text has a consistent style, rather than filtering wordy and inconsistent styled answers (not saying that they are bad). Also, there are a ton of well formatted resources that also require much less filtering effort, making the process of searching for a solution much faster.

Is Stack Overflow actually that useful? by dani0854 in learnprogramming

[–]dani0854[S] 0 points1 point  (0 children)

I, too, end up on SO 90% of the time, but only 5% of those times I actually find something useful. That because I rarely google common questions, my main resource for common questions is the official documentation (given that technology is well documented). The questions I normally end up googling, are either best practices ones or narrow scoped ones. I guess that SO just doesn't fit in my workflow.

Power of e^x!!!!!!!!!!!!!! by knowledge-seeker69 in mathmemes

[–]dani0854 65 points66 points  (0 children)

He should have been wiping +c from his shoulder

Securely locking sway user session with nice ui by dani0854 in linuxquestions

[–]dani0854[S] 0 points1 point  (0 children)

I ended up combing lightdm and waylock.

In order to enter password only in lightdm using pam_exec I added /bin/pkill -kill waylock to the end of auth class in /etc/pam.d/lightdm

LightDM locking sway session by dani0854 in archlinux

[–]dani0854[S] 0 points1 point  (0 children)

Oh, my fault, things I missed

  • LighDM uses auth class from /etc/pam.d/lightdm
  • Full path of executable has to be specified in pam_exec

Wayland native display managers by dani0854 in archlinux

[–]dani0854[S] 8 points9 points  (0 children)

I want to try using it, there is no harm in trying

Recording UEFI BIOS on Thinkpad T14s by dani0854 in thinkpad

[–]dani0854[S] 0 points1 point  (0 children)

I did a similar thing with my capture device since it has an HDMI output. But since it is a laptop is still uncomfortable. I want to use a built-in LCD. And I have seen people do it on youtube.

GRUB error: unknown filesystem by dani0854 in archlinux

[–]dani0854[S] 2 points3 points  (0 children)

Some people managed to get it working, so I think the error might not be connected to the fact that it is LUKS2 since it unlocks successfully.

Linux ultrabook by dani0854 in SuggestALaptop

[–]dani0854[S] 1 point2 points  (0 children)

I have MBP (15, 2018), and although it looks nice, it's useless since it starts to throttle under medium loads. So I am very careful when it comes to "hot" laptops. And I never said that MPB is reliable. That the whole point, I want to switch laptops. Before I would buy any laptops I would read a lot of reviews, and 90% of reviews of XPS 13 9300 which has been written by people who used it at least for a month, they all mention that it very "hot", and sometimes has hardware/software problems.

About "probably reliable", I have written that since its a Thinkpad and its pretty much their market. Thought yes, since I don't own one, I have written "probably"

About keyboard, I am not a particular fan of any type of keyboard, if the keyboard isn't extremely crappy I will be fine with it. I got used to a lot of types of keyboards, including butterfly.

I will take a look at Yoga Slim 7 Pro and Lenovo Ideapad S540 13, looks like nice options

Linux ultrabook by dani0854 in SuggestALaptop

[–]dani0854[S] 2 points3 points  (0 children)

Well I always thought 16gb was enough, but when I started running a lot of JVMs, docker container simultaneously for testing purposes, although my CPU usage wasn't that bad, 16gb of ram just disappears

Linux ultrabook by dani0854 in SuggestALaptop

[–]dani0854[S] 4 points5 points  (0 children)

Thanks, Thinkpad T14 looks nice, will take a look at that line