Hi, c/selfhosted! This is my first post on Fediverse and I am glad to be making it here.

I recently got fed up with having to use Tailscale to access my server at home and decided to expose it publicly. A friend recommended segregating the server into a dedicated VLAN. My router's stock firmware does not allow that, so I flashed OpenWrt on it (I am amazed how simple and easy the process was).

Getting the router to actually assign an IP address to the server was quite a headache (with no prior experience using OpenWrt), but I managed to do it at the end with a help from a tutorial video on YouTube.

Now, everything is working perfectly fine and as I'd expect, except that all requests' IP addresses are set to the router's IP address (192.168.3.1), so I am unable to use proper rate limiting and especially fail2ban.

I was hoping someone here would have an experience with this situation and help me.


Edit: Solved thanks to @PotatoesFall@discuss.tchncs.de.

I messed around with the port-forward settings with no luck in the past. Instead, disabling the “Masquerade” option in the firewall settings for the server’s VLAN worked.

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 1 point 9 months ago (2 children)
  • [–] 1 point 9 months ago (1 child)

    Is it possible that you have something called "masquerading" enabled on the firewall zone that the server is in?

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 2 points 9 months ago

    That was it! I messed around with the port-forward settings with no luck in the past. Disabling the "Masquerade" option in the firewall settings for the server's VLAN worked. Thanks a bunch.

  • source
  • parent