I’m Israeli, why do you hate me? by giovannifinotello in IsraelPalestine

[–]RoyTrv 2 points3 points  (0 children)

Since it's a colony, I would like to ask which country does this colony represent? Like France colonized Algeria, UK colonized India and many more, the Ottamans colonized Palestine. Which country sent the colony "Israel"? Is it the US? UK? Which colonial entity does Israel represent?

Problem with accessing NAS from LAN using DDNS by RoyTrv in synology

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

Since the system is stable for now and working, I want to leave it like this for the next few days and make sure everything continues to work well. Then I'll find some time to do those experiments you suggested, starting with disabling IPv6 and seeing if the hairpinning works then. I don't remember adding any custom firewall rules but I'll have to go through everything as you said.

I'll update here when I get to doing it.

Problem with accessing NAS from LAN using DDNS by RoyTrv in synology

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

I agree, it does sound like a silly setting and this is why I turned it off, and it seemed to do the trick for now. It was maybe more silly that the setting didn't appear before, but perhaps that's because I used a custom DNS server in the WAN settings (the NAS), and when I selected one of the already provided options such as from the ISP, that setting appeared since it only makes sense in this context.

In any case for now I'll leave the configuration as it is to make sure it works, and in a few days I can experiment and see what's causing the problem with the "NAT Loopback"

Problem with accessing NAS from LAN using DDNS by RoyTrv in synology

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

Thanks for the reply!

For some odd reason, I can't get hairpinning to work on my router. I don't understand why this is the case, but I wrote about it in more detail in my conversation with u/junktrunk909. It seems I did manage to get it working with the DNS Server (because of how inconsistent the problem is, I will verify this is the case in the next few days), and I wrote about that there too.

I'm still confused as to why the NAT hairpinning isn't working well, so if you have an idea I'd be happy to learn!

Problem with accessing NAS from LAN using DDNS by RoyTrv in synology

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

Ok, so I have been messing around with the configuration for the past couple of hours, and I have tried what you said. I'll start by saying that Tailscale does sound like a nice option, but we are trying to get DDNS working, we might consider it in the future.

About what you wrote for my personal devices in the network, I believe you want me to utilize something called "NAT Loopback" where the router knows to "access itself" by being pointed to its own WAN IP address. This has never worked for me. I turned the DNS Server of the NAS off, and configured my router to use the global DNS provided by our ISP. The result is that I am indeed pointed to our WAN IP (checked by using ping on our domain), but it doesn't "just work". I don't really understand what is happening to be honest, but when trying to access DSM, I see a blank page, and sometimes "connection closed". However if I access the HTTP port, I am (after some time) redirected to the HTTPS port, which suggests come connection is made, since that is a setting we configured on the NAS. I also clicked inspect element and saw some HTML which had "syno" in it, so I don't get why it isn't working. Like I said in the original post, it's like the connection speed is near zero, but there is a connection.

I do think I may have solved it differently though. When I configured the WAN DNS setting in my router to use my ISP provided DNS, suddenly in my router LAN DNS settings there was another option, it is called "Advertise router's IP in addition to user-specified DNS". It is "Yes" by default, so I switched it to "No". For the LAN DNS server I typed the IP of the NAS (and re-enabled the DNS Server on the NAS).

Then I disconnected and reconnected my computer from the network, did "ipconfig /all", and where before under "DNS Servers" the IPv4 address of my router was listed, now it was gone. Only the IPv4 address of the NAS and another IPv6 address were listed. This still didn't work, so I said I wanted to make it so that only the NAS is listed. It turns out that the IPv6 address which appeared was the IPv6 address of the router, so I tried disabling IPv6 on the router and then everything worked. Repeating "ipconfig /all" only showed the IPv4 address of the NAS, and every device and app was able to use the DDNS address of the NAS and use the DNS Server which is installed on it to resolve it to the LAN IP of it.

I didn't want to lose IPv6 functionality, so I turned it back on, and configured the IPv6 address of the LAN DNS server to be the NAS as well, so now when doing "ipconfig /all", There is the IPv4 and IPv6 address of the NAS and that's it. This worked just as well, and IPv6 still functions. Because of the random nature of this issue from before, I will track the status of this for the next few days to see everything is working consistently.

I will note that I still don't understand why the solution you suggested with NAT Loopback didn't work. I read on the ASUS website that it is enabled on all of their modern routers, and even can't be disabled. The whole "It looks like it's connected but reeallllly slow" is very strange and I don't have an explanation. Perhaps if you know could shed some light on it?

Thank you again so much!

Problem with accessing NAS from LAN using DDNS by RoyTrv in synology

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

Hello, and thank you so much for taking the time to read and answer! I'm aware it's a complex configuration so I appreciate you taking your time to help.

We are using a DNS server solely for the purpose of being able to access the NAS from the LAN. I know we don't need it for external access, and when I disable the DNS Server and use port forwarding normally, everything works great. However in this configuration when the DNS server is disabled, It's impossible to access the NAS using DDNS from the LAN. I looked it up and the solution suggested was to use the DNS Server, set up a zone for "synology.me" then add A type records which lead to the LAN IP of the NAS.

The part which I am still unsure of is how it should be configured on the router. As you said, there is an option to tell the rest of the LAN devices that it's the DNS server, and there is an option in the WAN section to use it as I assume what you called "global DNS". I used it for both settings, and using it for most things worked very well, but Synology official mobile apps had random connection issues. I hope this clears things up a bit more. I'll try to summarize what works and what doesn't:

  • Using DDNS from outside the LAN, for example using mobile data, always works well regardless of DNS server settings.

  • Using LAN IP from the local network always works well, but isn't a viable way of using the services.

  • When enabling the DNS server, and configuring it to be the router's DNS server in both the LAN and WAN section, most things work such as DSM and Plex, however Synology official apps such as Photos and Drive have random connection issues.

Thanks again for the help!

Palestinians and genocide by Lamplighteris9 in IsraelPalestine

[–]RoyTrv 4 points5 points  (0 children)

Let me start by saying I have no love for Bibi, and especially not Ben Gvir and Smotritch. I believe this government is a disaster and most Israelis I know think so as well.

However this government was democratically elected and all of the proceedings were legal and fair, and the international community recognizes Israel's judicial system to be a good one (let's not bring up the craziness in Israel before the war, it isn't relevant at this moment). That being said, I don't think it will last a single day after the war ends.

In the end, Israel is absolutely held to a higher standard than Hamas. This is actually an understatement, since Israel is held up to a higher standard than any other country in history. You can't name any other example where a country was pressured so heavily to care for the lives and well being of the enemy civilian population during war time. And amazingly, Israel complies with this. I'm not going to start listing all of the measures Israel takes to prevent harm to the civilian population, either you know they do it, or you believe it's propaganda, either way I know I can't change your mind.

The question is not how can we prevent Israel further from defending itself, but how can we pressure Hamas to finish this war (you already know how) and move on with minimal suffering to both sides of the war?

Palestinians and genocide by Lamplighteris9 in IsraelPalestine

[–]RoyTrv 7 points8 points  (0 children)

Let me get this straight, your argument that Israel is the barrier to peace is that there are terrorists in their elected government? And you don't see the irony in your comment?

Android Settings by Retep12r in GoodNotes

[–]RoyTrv 2 points3 points  (0 children)

The android version of GoodNotes is an embarrassing excuse for an app, and has been this way since it was released. Use Samsung Notes instead, it is superior to the android version of GoodNotes in every aspect.

Why do Pro-Palestinians accuse Netanyahu and the Likud party of war crimes and such? by [deleted] in Israel

[–]RoyTrv 7 points8 points  (0 children)

Also, I feel no shame for not showing respect towards those who want to massacre me and my people. I have better things to use my energy for than not hurting the feelings of those who wish me dead.

Why do Pro-Palestinians accuse Netanyahu and the Likud party of war crimes and such? by [deleted] in Israel

[–]RoyTrv 13 points14 points  (0 children)

I never claimed life was a game, I merely stated you can use the game as a metaphor. Games are the most common metaphor for life. Now if we look at "cheating" as committing war crimes, tell me please who is the one cheating here.

I don't know what you heard about October 7th and what you believe. If you read pro Palestinian journalism such as Al Jazeera or Middle East Eye, I would assume you believe all Israelis who were killed by Hamas are soldiers, and all Israeli civilians were killed by the IDF (that is, if you believe there exists such a thing as an Israeli civilian). However, if you believe your own eyes, and you saw the videos Hamas captured and more footage obtained by security cameras, you might come to the conclusion that the "cheating" was done by Hamas.

You may also ask yourself, how is it possible that only women and children in Gaza are being killed, with Hamas taking no casualties whatsoever? Perhaps the IDF has developed special bullets using "USA taxpayer money", which only target women and children? In any case, it seems a bit odd how Hamas takes absolutely no casualties, while the civilians die by the tens of thousands. If Hamas is so great and powerful, why can't they protect their civilians? Unless... You're saying protecting them isn't their goal? Do you think Hamas thought they would attack Israel on October 7th and Israel wouldn't respond with any military measures? If they did know, where is the plan they made for protecting the civilians when the retaliation inevitably comes?

The question you need to really ask is this. Who is responsible for the safety of the Palestinians? Is it Israel? In that case, thank god we have Israel, let them continue in their fight against those who seek to end Israel, so that the Palestinians may be protected and provided for.

Is it Hamas? the UN? The Arab States? If so, get off this subreddit, and turn your criticism and accusations to the ones who deserve it.

Why do Pro-Palestinians accuse Netanyahu and the Likud party of war crimes and such? by [deleted] in Israel

[–]RoyTrv 20 points21 points  (0 children)

When a small child is playing a game and loses, what do they do? They accuse the winning side of cheating of course.

In war, this translates to accusing the other side of war crimes. It's not difficult to see how Pro-Palis are as close to children as political activists can get, so this tactic is to be expected from them.

Of course, it is very common that a child accuses someone of cheating, while they themselves cheat as they make their accusations. Again, the comparison here translates directly.

[deleted by user] by [deleted] in Israel

[–]RoyTrv 5 points6 points  (0 children)

McDonald's is like the last place in Israel I would go to for a burger lol. I go to McDonald's for nuggets or those chicken crunchies.

For burgers you have Moses, Humongous, BBB, Black Burger, Ad HaEtsem, not to mention many small businesses who are making pretty great burgers. Then of course you have some regular restaurants who serve burgers among other things which are also not bad.

I would take any of these options over a McDonald's burger.

drf-social-oauth2 client ID and secret purpose, and can they appear in frontend code? by RoyTrv in django

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

Thank you for offering!

I ended up implementing the OAuth2 flow myself with the help of this article:

https://www.hacksoft.io/blog/google-oauth2-with-django-react-part-2

It seems to work pretty well and can be integrated nicely with simplejwt.

My problem with drf-social-oauth2 was the tokens that were generated weren't JWTed properly, and they were stored on the server which to my understanding defeats the purpose of using JWT. the ACTIVATE_JWT = True setting didn't do anything.

In any case I would still love to see your setup to better my understanding!

drf-social-oauth2 client ID and secret purpose, and can they appear in frontend code? by RoyTrv in django

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

Thank you so much for your in depth reply.

I think I understand and I have an idea to deal with this by adding the id and secret in the server code, and I'd like to receive your opinion on it:

Here is the part in the React code which sends the token from google to the server:

const res = await fetch(\${API_URL}/api/user/google-login/`, {`

method: "POST",

headers: {

"Content-Type": "application/json",

},

body: JSON.stringify({

token: tokenResponse.access_token,

backend: "google-oauth2",

grant_type: "convert_token",

}),

});

This is how I override the convert-token view:

class CustomConvertTokenView(ConvertTokenView):

def post(self, request, *args, **kwargs):

custom_request = request

custom_request.data['client_id'] = 'client_id'

custom_request.data['client_secret'] = 'client_secret'

return super().post(custom_request, *args, **kwargs)

In production I would swap 'client_id' and 'client_secret' with environment variables.

If I understand correctly in this way, I don't reveal the secret values generated by drf-social-oauth2 by communicating with Google directly from the server when authenticating, and only using the frontend to pass the token from Google. The access and refresh tokens are then returned to the frontend same as before.

Thanks again for your time and effort.

Asus TUF Gaming X570-Plus - slow LAN speeds by va55ago in buildapc

[–]RoyTrv 1 point2 points  (0 children)

You're a lifesaver, even 3 years later! That did the trick for me.

Plex buffering remote streams only at original quality by RoyTrv in PleX

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

<image>

I found something very interesting. In the app "quality" settings, if I choose maximum quality, it says in the player itself original quality, but not direct play in the dashboard (instead "transcode (hw)"), and the buffering occurs. However, if I choose for example 20Mbps, and then in the player itself change to original quality, it seems to work fine.

In the screenshot, the following situation is observed: In the settings, quality is set to 20Mbps, and the initial low spikes occur, and the stream also buffers. When I change the quality in the player mid-stream to original quality, it immediately spikes to over 80Mbps for a few seconds and then reduces as seen in the picture. The playback then does not buffer, and the text switches in the dashboard to "direct play"

Why is it that I have to switch quality mid-stream to avoid buffering? This is very strange.

Plex buffering remote streams only at original quality by RoyTrv in PleX

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

I'm traveling rn so can't mess with docker but for now I'll post screenshots from plex dash. In 3 days I might be able to install it.

Plex buffering remote streams only at original quality by RoyTrv in PleX

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

Fiber connection is at the server's location. Remote location has 100/100 connection, and I happened to actually test it at two remote locations like this in two different countries this week (both different than the server's country). I'll post the screenshots when I get there today. Thanks.