Welcome to Incremental Social! Learn more about this project here!
Check out lemmyverse to find more communities to join from here!

How do I use an OpenWRT device as both an extender (for the main router) as well as a firewall + NAT box?

Conceptually, it's fairly easy to understand - nftables, relayd, likely some firewall application.

However, is it as simple as configuring the WAN port as the WiFi interface and leaving it at that? Note that I'm not bothered about double NAT since I won't be opening any ports, and the main router cannot be touched.

I do want my own SSIDs, my VLANs, control over the firewall etc. Basically, my own network space. If anyone has done this/has an idea of the problems I might run into, please do comment!

Appreciate the help!

Decronym Bot , (edited )

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

3 acronyms in this thread; the most compressed thread commented on today has 7 acronyms.

[Thread for this sub, first seen 10th Mar 2024, 07:45]
[FAQ] [Full list] [Contact] [Source code]

anamethatisnt ,

Pretend the "main router" is a hotel wifi and use the TravelMate package.
https://github.com/openwrt/packages/blob/master/net/travelmate/files/README.md

MigratingtoLemmy OP ,

Thank you! Could you explain a bit about what travelmate does under the hood? I'd like to know the basics of how it operates.

anamethatisnt ,

The main config needed is AP+Sta mode, which is explained here:
https://openwrt.org/docs/guide-user/network/wifi/ap_sta

MigratingtoLemmy OP ,

Thanks!

avidamoeba ,
@avidamoeba@lemmy.ca avatar

Do you even need relayd? I think relayd is for extending the existing NAT, i.e. a wireless bridge operation. At least that's how I utilized it in a previous setup. If you want to have your own NAT, I think it's enough to just connect to the upstream wireless network as a client. Not sure if you have to designate the wireless interface as WAN or not.

pete ,

Depends if you want to assign IP addresses or not. If you don't, you just want your own section of the same lan, I.e.all your devices connected to your router but let dhcp pass through then you can just set itnup as an extender

ArbiterXero ,

He mentioned that he wants to create Second level Nat, that will require new IP addresses and DHCP in the subnet

MigratingtoLemmy OP ,

How would you do this? What would be the steps you take to create a double NAT + Firewall + DHCP server with the OpenWRT router behind the main router?

avidamoeba ,
@avidamoeba@lemmy.ca avatar

I think you basically need to do this. I see it mentions the wifi interface becoming WAN too.

MigratingtoLemmy OP ,

Thank you!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • random
  • incremental_games
  • meta
  • All magazines