this post was submitted on 04 Sep 2023
66 points (94.6% liked)

Selfhosted

40174 readers
831 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi,

I’ve been trying to work out my network architecture with the pieces i have today:

  • isp box with 10gig dac downlink, 4 ssd bays
  • pfsense box with dual 10gig dac card
  • switch with 10gig dac uplink and multi gig rj45
  • main proxmox host
  • other devices (laptops, iot…)

ive ran into a dilemma regarding switching my isp box to bridge mode:

  • if i do, i lose wlan and nas capabilities
  • if i dont, i have to contend with double nat

i’m sure that eventually i will get an ap (maybe unifi) and a dedicated nas (either home built or something like synology or asustore), but for the moment, i want to keep cost down and gradually add new pieces

i was wondering if double nat is of huge performance and maintenance implications, or if i would be okay running this setup for a few months until i get to add an ap and nas?

thank you

all 32 comments
sorted by: hot top controversial new old
[–] SpaceCadet@feddit.nl 35 points 1 year ago (3 children)

Using double NAT here because my ISP won't even support/allow putting their box in bridge mode and I don't even have root access to it, just some limited functionality via their web GUI.

I haven't had any issues with it.

[–] lemmyvore@feddit.nl 18 points 1 year ago* (last edited 1 year ago) (1 children)

Can you set the ISP box to designate your router as DMZ (de-militarized zone)? Your router needs to get a static IP from the private subnet defined by their router, then you mark that IP as DMZ in their router's settings.

It's not technically the same as bridge mode, the ISP box continues to act as a router but also exposes your router fully to the internet so you can mostly ignore theirs afterward.

[–] SpaceCadet@feddit.nl 14 points 1 year ago

Yes, that's essentially what I did.

[–] squigglycunt@lemmy.world 6 points 1 year ago (1 children)

great, thanks for your input

[–] SpaceCadet@feddit.nl 24 points 1 year ago (2 children)
[–] fjordbasa@lemmy.world 7 points 1 year ago (2 children)

Well that was uncal- ...oh

[–] wintermute_oregon@lemm.ee 2 points 1 year ago

I was like wtf. That was rude for no reason until I saw the are name.

I’m American so that’s a word you don’t use. It’s one of the few unspeakable words

[–] SeeJayEmm@lemmy.procrastinati.org 1 points 1 year ago (1 children)
[–] pacoo2454@reddthat.com 4 points 1 year ago

Check their username

[–] TechieDamien@lemmy.ml 1 points 1 year ago

That threw me for a loop!

[–] JustEnoughDucks@feddit.nl 4 points 1 year ago (1 children)

Exact same situation, but I have had issues with the shitty ISP box resetting itself on an outage and simply not forwarding traffic from the open ports to my router with a static IP. It would just say "no" and I had to change the static IP on the ISP box and reboot everything and then it would work fine. It has been fine for 3-4 months without needing anything, but sometimes it is annoying.

[–] YIj54yALOJxEsY20eU@lemm.ee 1 points 1 year ago (1 children)

I'm not sure if its applicable for you or if you are aware but duckdns really helps with this problem. I've moved three times since and have never worried about ip addresses.

[–] WhyAUsername_1@lemmy.world 1 points 1 year ago (1 children)

I think you are referring to Public IP? The person above was talking about the static Local IP.

[–] toma@lemmy.omat.nl 15 points 1 year ago (1 children)

You’ll be fine. In the past stuff like ftp and sip could get confused by double nat, but not so much today. And stuff like opening a port from outside to the inside needs some planning through double nat.

We run it in the office for years now and it is totally fine. We are in a building with multiple companies sharing internet and we wanted our own network within, so we are using double nat (internet modem and our switch).

[–] squigglycunt@lemmy.world 1 points 1 year ago

great! thanks man

[–] EncryptKeeper@lemmy.world 5 points 1 year ago* (last edited 1 year ago) (1 children)

If it’s double NAT where you have control over both boxes, it’s not that big a deal. First of all, it only matters at all if you’re trying to forward ports for remote access to your services, in which case you just need to add two port forwarding rules for each service, instead of one, one in each firewall. Alternatively if the ISP router allows it, see if it has a 1:1 NAT feature, this way it forwards ALL the ports to your private router, where you can then be selective about which ports to allow.

Alternatively, if you’re not trying to host services on your LAN for public access and consumption (Which would be a bad idea at this point in time anyway given your level of knowledge) don’t worry about the NAT or port forwarding at all and just use a mesh VPN like Tailscale (Optionally with the self hosted control application Headscale) and use that to access your services which outside home securely.

[–] LazerFX@sh.itjust.works 3 points 1 year ago

Some routers will call the 1:1 NAT feature, "DMZ" (Short for Demilitarised Zone). The idea is that you just act as a pass-through, in this case, "passing through" the external internal to the internal router.

[–] Decronym@lemmy.decronym.xyz 4 points 1 year ago* (last edited 1 year ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
AP WiFi Access Point
IP Internet Protocol
NAT Network Address Translation
VPN Virtual Private Network

4 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

[Thread #105 for this sub, first seen 4th Sep 2023, 08:55] [FAQ] [Full list] [Contact] [Source code]

[–] skankhunt42@lemmy.ca 1 points 1 year ago

I double NAT. My ISP box gives off WiFi for consoles, guests, some IOT. UPNP is enabled and I generally don't care what goes on there.

My FW is an OPNSense box and everything I do is behind that. I've opened ports, run Tailscale, etc and have had no problems at all. All it is is an extra device to open a NAT rule in if I want to open something up.

[–] Treczoks@lemmy.world 1 points 1 year ago

No issues with double NAT. I even had a setup with an internal and external net, and the provision that any network link originating from (not passing through) the outer NAT router would raise an alert on the inner NAT router - which would simply switch the outer NAT router off.

[–] ShortFuse@lemmy.world 0 points 1 year ago

Double NAT with DMZ.

Those SIP ALGs are more trouble than they are worth. If you are using SIP devices, use a different outbound port on each device (eg: 5060, 5061, 5062).

[–] tsz@lemmy.world -4 points 1 year ago (1 children)

If you're using double NAT, you're doing something wrong. If you want to do it right, stop using double nat. If that doesn't matter to you, and you're comfortable supporting a broken-by-design network, do it.

[–] LazerFX@sh.itjust.works 0 points 1 year ago (1 children)

I'm going to briefly explain why I downvoted... this (I feel) is an unhelpful comment that doesn't explain anything. You say, "[if] you're comfortable support a broken-by-design network, do it.", but you don't explain why it's a broken-by-design network.

I'll say - I agree with you, but the comment doesn't actually enhance the conversation and comes off as abrasive and unhelpful. If I'm looking for information, I'd rather be given education (Even if it's just a, "Go here for why you don't do that!"), not just a, "Don't do it" with no assistance and help for how to do it right.

[–] tsz@lemmy.world -2 points 1 year ago

If you don't understand why it'ss broken, I guess that's on you. If you're to tbe point op is in terms of their needs, network topology etc and you still don't understand the fundamentals, what do you expect me to say to resolve that? If you're OK with supporting your broken, incorrectly configured network, then by all means. If you are not, then expect the answer from those you're asking for help from to be "fix your shit". Do not expect anyone to educate you. It's like arguing with creationists - you picked this dumbass thing to get behind, I'm not on the hook to explain basic logic to you.

[–] TCB13@lemmy.world -4 points 1 year ago