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

    [SOLVED] Public IPs - Ports Available?

    Scheduled Pinned Locked Moved NAT
    8 Posts 3 Posters 711 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
      Gilera
      last edited by Gilera

      Hi all, Please excuse if this is posted in the wrong area as i am not sure if this is a routing or firewall or port forwarding issue ........ or just possibly how it should work anyway. I'm an IT professional but networking is definitely not my forte........i know enough to be be dangerous 😀

      I have a static IP from my ISP x.x.x.80/30 which is split out for private LAN and also a routed public block x.x.x.104/29 on separate interface, pretty much the same as posted here https://docs.netgate.com/pfsense/en/latest/book/routing/routing-public-ip-addresses.html except i've allowed all traffic out on the public interface unlike the guide which limits some traffic.

      The sole reason for doing this was to put one of the PS4's in the household on a public IP so to avoid any NAT which has worked for the most part except for one PS4 has moderate NAT. Initially i only had UPnP enabled for the LAN but i enabled it for the PS4 on the public IP and i noticed that the PS4 which has moderate NAT has port 3074 remapped to another port. If i change which PS4 i power on first......it's always the secondary and the PS4 that has port 3074 remapped that has moderate NAT.

      c097a02f-2f40-4041-af22-f5ae804bec09-image.png

      I thought that by giving the PS4 a public IP and disabling NAT that it would have the full port range 1-65535 available to it from the WAN but that doesn't look to be the case, anyone know if this is expected and if there is a way around it so port 3074 can be static mapped for both?

      1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire
        last edited by

        I think maybe what you're looking for is 1:1 NAT? Where a secondary public IP is NATted to a private IP. https://docs.netgate.com/pfsense/en/latest/book/nat/1-1-nat.html
        That way the PS4 would keep a private IP on the LAN, and the WAN only needs one public IP subnet. Or at least, that's another way to do it with one less subnet.

        In your picture the public ports are 3186 and 3074 so since they are going to different IPs (devices) the internal port being the same doesn't matter.

        Do you have firewall rules allowing traffic from * (world) to the public IP on the PS4?

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 1
        • G
          Gilera
          last edited by Gilera

          Thanks teamits I'll have a look into the 1:1 NAT which sounds like i'll need to setup another private subnet just like the LAN.

          The 3074 port remapping to 3186 is the problem because that is what gives it moderate NAT within the games, it's like it's seeing that 3074 is already mapped so assigns it to 3186 but since it has it's own public IP i thought it wouldn't need to re-map it. I know in the picture the device with the private IP has the 3074 port remapped but it's the opposite if the other PS4 is powered on first.

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @Gilera
            last edited by

            1:1 doesn't need a separate subnet unless you're trying to keep that PS4 isolated from other LAN devices. It basically says "external IP 1.1.1.1 gets forwarded to 192.168.1.2" or whatever. I would probably set up firewall rules to allow only port 3074 though.

            I disable uPnP everywhere so can't really help much but it sounds like it is mixing the two as you describe.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            1 Reply Last reply Reply Quote 1
            • G
              Gilera
              last edited by

              OK so i added one of the public IP's as a Virtual IP and did 1:1 NAT to one of the PS4 which worked as expected - PS4 has a private IP and checking it's external IP shows the public IP. I only managed to test quickly (very awkward to test all the way through as it involves joining lobbies within the game on both PS4's) but it showed NAT Type 2 when i did the quick test so i assume it it will still be moderate.

              I need to do some further testing and making sure what i've implemented is correct and i've removed anything that isn't needed but i will be coming back to this thread until completion.

              Thanks again for your time teamits (won't misspell your name again either :) )

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

                All sorted now thanks teamits :)

                I've now set each PS to have a public IP with 1:1 NAT for each virtual IP and allowed all traffic from the WAN to each PS as per below:

                8413ba87-5066-4fa2-aa70-36900c71b6eb-image.png

                ae29dc20-4f66-443b-befc-99b514449195-image.png

                f7385e6c-b89d-4308-87d9-8d0a4b49e2e4-image.png

                Tested this worked by visiting ShieldsUp from the PS and all ports are showing closed instead of stealth.....as expected and shows the public IP expected from the 1:1 NAT.

                No matter what i did, if one PS had one of the public IP's and the other just normally NAT'd then one PS would always have moderate NAT. They seem happy to both have a public IP so i'll go with that and i'll look to disable the allow all rule later this evening when gaming has ceased to see if it makes a difference :)

                Thanks again for your time teamits, owe you a glass/jar/mug of a beverage of your choice.

                1 Reply Last reply Reply Quote 0
                • A
                  akuma1x
                  last edited by akuma1x

                  What’s a “teamits”?

                  @Gilera

                  Jeff

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

                    I suppose i could of called him Steve :)

                    @akuma1x

                    Gil

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