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

    Troubleshouting NAT website to only one valid adress

    NAT
    2
    3
    643
    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
      gakoroace
      last edited by

      The problem is that i want to setup a network in witch i will allow acess to only my webserver that is been host on another computer on  the internet.
      I'm using pfsense to control all trafic in my network.I'll looking for a way to do a NAT that could solve my problem.
      For example if a user in my network want to access a website it will redirect it to my website.
      www.google.com will be redirect to www.mysite.com
      Thanks to all person that could help me with my problèm.

      1 Reply Last reply Reply Quote 0
      • M
        muswellhillbilly
        last edited by

        Your best bet would be to use squid as a redirector to whichever site you want to force your users to. If you run Squid as a transparent proxy on your firewall you can set it to push all web traffic to whichever external site you want. If you Google "squid url redirect" you'll find plenty of examples.

        1 Reply Last reply Reply Quote 0
        • G
          gakoroace
          last edited by

          thanks for the tip
          I will try it with squid to see

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