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

    sg 3100 Lan Interface NAT not working

    Scheduled Pinned Locked Moved NAT
    7 Posts 2 Posters 725 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.
    • C
      cgalgo
      last edited by

      I recently got my Netgate SG-3100. I tried setting up NAT and Virtual IPs. Everything is working fine until I setup a NAT Port Forwarding for LAN interface. I'm not sure if I miss something.

      What I'm trying to do is, when a device that is connected to the internal network (connected to my Netgate SG-3100) try to connect to the WAN address throught port 80 and port 22, It should redirect to my server. It is working fine when the device trying to connect is outside of the private network. Any advice?

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

        That is nat reflection - which you have to enable... And to be honest is not optimal.. If your already on the internal network just connect to the internal IP.. Do a simple host override so the fqdn your using (ie your wan ddns or whatever) resolves to your local IP for the box your wanting to connect too.

        Nat reflection is never going to be the first choice.. Its an abomination if you ask me ;)

        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 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • C
          cgalgo
          last edited by

          Thank you for your quick reply. The reason why I don't connect to the internal IP manually is because I have a domain that is pointed to the IP of my netgate. If i'm inside the network, that domain will not be reachable. Anyway I'll look into the host override.

          1 Reply Last reply Reply Quote 0
          • C
            cgalgo
            last edited by

            UPDATE: I tried to set Destination address to any instead of WAN or LAN net and it suddenly works without enabling NAT reflection.

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

              huh? No sorry it doesn't work that way.

              @cgalgo said in sg 3100 Lan Interface NAT not working:

              I have a domain that is pointed to the IP of my netgate

              So? That is the whole point of a host override... Lets your internal server IP is 192.168.1.100, and you have some public fqdn that points to your public IP 1.2.3.4... Lets say this is host.domain.tld - then just create a host override that says if you go to host.domain.tld it returns 192.168.1.100

              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 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 1
              • C
                cgalgo
                last edited by

                I thought it was working, but every HTTP site I tried to connect is redirecting to my server. ☹

                I also tried NAT reflection using Pure NAT and NAT + but it still not working. Will try look at the host override now

                1 Reply Last reply Reply Quote 0
                • C
                  cgalgo
                  last edited by

                  @johnpoz It's already working. I found this article https://www.netgate.com/docs/pfsense/nat/accessing-port-forwards-from-local-networks.html and use NAT Reflection for now. I will still look at the host override solution. Thanks for your help

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