Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    How to redirect all wi-fi (LAN) traffic to local server

    Scheduled Pinned Locked Moved Firewalling
    9 Posts 3 Posters 4.6k 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.
    • E Offline
      EOC2611P
      last edited by

      Hi, can someone very kindly tell me how to create a rule (or anything else that can works really), to redirect all http request to a website we host on a local server?
      I did try to follow a few guidelines and test various options but i ended up in a mess….
      Thank you!

      1 Reply Last reply Reply Quote 0
      • M Offline
        marvosa
        last edited by

        Re-phrase your question and clarify your needs.

        1 Reply Last reply Reply Quote 0
        • johnpozJ Offline
          johnpoz LAYER 8 Global Moderator
          last edited by

          exactly - are you talking from outside, or your local ips trying to go outbound on 80?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 26.03 | Lab VMs 2.8.1, 26.03

          1 Reply Last reply Reply Quote 0
          • E Offline
            EOC2611P
            last edited by

            Okay, sorry, i try again  :D

            We have a community's website hosted on a home's server (local host), plus an internet connection that connect everyone on the "external world".
            We would like to bounce back all connection coming via the non-wired network (wi-fi) to our local homepage but keep allowing all the machines connected with a wire to have full use of both , internet and local server.
            One very important note, is that all the connected wi-fi clients, have a local address (192.168.1.1), we do not have people connecting to our local server coming from the internet, but we deliberately wanted to share this server, only with the people in this area.
            Hope it's clear now  :)

            1 Reply Last reply Reply Quote 0
            • johnpozJ Offline
              johnpoz LAYER 8 Global Moderator
              last edited by

              So then create on the interface that that IP comes to redirecting to IP of your server.

              Something like attached.  Where interface is interface that your wireless clients would talk to pfsense on, and seems like they are behind a nat and always have a IP of 192.168.1.1 so that makes it easy.  And then what IP you want to redirect them too.

              Keep in mind that if your pfsense listens on 80, you won't be able to access pfsense from that IP because your redirecting 80.

              natredirect.jpg
              natredirect.jpg_thumb

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 26.03 | Lab VMs 2.8.1, 26.03

              1 Reply Last reply Reply Quote 0
              • E Offline
                EOC2611P
                last edited by

                Hi Johnpoz, thanks for the reply, my PFSense menu looks different from the one you have, i also not able to find this "DMZ" option, can you take a screenshot of the expanded menu for that NAT configuration, thanks!

                1 Reply Last reply Reply Quote 0
                • E Offline
                  EOC2611P
                  last edited by

                  Okay, i played around with the options and now it seems to direct me to the server, as i can see the page from Xampp(Apache) which is refusing when i try to access.
                  As our site is hosted in something like this: 192.168.1.1/x/ , i am now getting this error:"The following input errors were detected:
                  "192.168.1.1/x/" is not a valid redirect target IP address or host alias."
                  There is any ways to let PFSense accept the location address of our server, or we have to move the entire site directory to 192.168.1.1 (hope not!)?

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    EOC2611P
                    last edited by

                    Right, i couldn't wait and i reinstalled the from a subdirectory to the main one, so i can confirm that your answer resolved my problem, thank you!  ;D

                    I am now trying to allow a few mac address to pass through this block, still looking for it….

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      EOC2611P
                      last edited by

                      after various tests and following a guide about setting up static IP's to create something to allow back a few mac addresses, i went to the point that i had to restore everything to factory settings, as everything got blocked even after i removed everything new from NAT and Firewall, i don't know why or how, but i might need something different if i can't allow back people after this…

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