Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    URL redirect

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 610 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      groovesurfer
      last edited by

      Hi,

      I want to use a local net without internet connection.
      I have a webserver with a website (www.test.com). All users should connect only to this website no matter which url they use (f.e. www.google.com).
      So I use the DNS Forwarder with custom options (X.X.X.X is the IP of the webserver):
      address=/com/X.X.X.X
      So all urls with .com will be redirected to the webserver. This works fine, but the shown URL is not the url of my site.
      Now I want that the URL is always for example test.com no matter whitch url are used.
      Example: the user writes in his browser www.google.com -> the test.com website will be shown with the url test.com in the browser.
      What can I do?

      1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        You want a port forward on LAN for:

        Source LAN net port any dest any port 80 NAT address X.X.X.X port 80

        SSL/TLS won't work but there you go.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.