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

    Trying to change outside port different then inside port.

    Scheduled Pinned Locked Moved NAT
    5 Posts 3 Posters 1.3k 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.
    • canadianllamaC
      canadianllama
      last edited by

      I just want to be able to access my WAN IP + this port 5858 and i want it to redirect to the local PC at 10.0.1.8 on port 80.

      IE: go to login from a browser to my WAN IP 184.2.X.X:5858 and have it access a machine on the local network 10.0.1.8:80

      I am trying to setup NAT Port Forwarding.

      I have tried all the ways i cant think of. I don't see any tuts on this specifically. Not sure what to put in all the fields.

      Protocol: TCP

      Interface: WAN(shaw)
      Destination: WAN address
      Destination port range: 5858
      Redirect target IP: 10.0.1.8
      Redirect target port: 80

      Also tried
      Destination: WAN address
      Destination port range:80
      Redirect target IP: 10.0.1.8
      Redirect target port: 5858

      and

      Interface: WAN(shaw)
      Destination: LAN address
      Destination port range: 5858
      Redirect target IP: 10.0.1.8
      Redirect target port: 80

      Also tried
      Destination: LAN address
      Destination port range:80
      Redirect target IP: 10.0.1.8
      Redirect target port: 5858

      Anyone done this successfully?

      Thanks for any insight!

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

        Protocol: TCP

        Interface: WAN(shaw)
        Destination: WAN address
        Destination port range: 5858
        Redirect target IP: 10.0.1.8
        Redirect target port: 80

        That's what you want.  Did you let the NAT rule create the firewall rule?

        There's a good list here of things to check:

        https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

        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
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          This is really a no brainer.. I have it setup.. Are you trying to do nat reflection?  Are you outside your network or inside when you hit your wan IP?

          I have multiple vps that hit my wan IP and redirected to lan IP on different port, since I use 443 for vpn I have them hit 8443

          My guess would be you are not letting it create the firewall rule for you.. Or you have a firewall on your client that is blocking the traffic… Port forwards are really simple to troubleshoot.. Does it hit your wan?  Sniff, does pfsense send it out the lan? Again simple sniff (packet capture) will show you this in 2 seconds.

          This is no different then simple port forward when its the same port - pfsense doesnt care ;)

          portredirect.png
          portredirect.png_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 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • canadianllamaC
            canadianllama
            last edited by

            Thanks guys, it looks like i'm doing it right, yes it was creating the firewall rule and it looks proper to me, just still isn't working. Ill have to figure out packet sniffing  and see where its getting hung up.

            Also there was multiWAN setup on this router in the past, i tried to disable it all, but maybe there's something there messing stuff up too.

            At least now i know I'm doing it right so I can work on it from here.

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

              Did you go through the port forwarding troubleshooter.. Just logged into a guy to help him out and he had captive portal enabled.. Yeah that keeps stuff from answering ;)

              https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

              What concerns me is you would even attempt to swap the ports - that tells me not really understanding the process at a basic level.

              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
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.