Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
user-docs
user-docs
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Turris
  • user-docsuser-docs
  • Issues
  • #125

Closed
Open
Created Feb 03, 2021 by Stepan Rechner@srechnerReporter

Suggest a way/ways how to set up a router if a server with public domain is behind it

By default, it is possible to connect to a domain located in the same LAN only by adding *.lan. It may be an easy way to set it smoother for a user (usable for example for some CTI users). To add this sort of how-to was suggested by @vcunat and later on by a user even to set it up by default:

after searching for hours - I was not able to setup the firewall rules accordingly.

The most simple solution is

Adding static address records

Extend section config resolver 'kresd' of /etc/config/resolver by

list hostname_config '/etc/hosts'

Why is this not enabled by default? ...

It looks like there can be basically two ways.

  1. IP based: traffic routed to an external IP (NAT WAN) re-route to the LAN IP address of the server. (According to @vcunat probably the cleaner way)
  2. DNS based: for the LAN devices to return the LAN IP address.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None