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

    Two devices, same ports to be forwarded

    Scheduled Pinned Locked Moved NAT
    5 Posts 3 Posters 1.0k 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
      CornHead764
      last edited by

      I currently have an unusual setup for my network. I am at college (yes, I have permission from our systems administrator [who happens to also be my boss] to use a router on the campus network) and have my router with it's respective IP from our DHCP on campus. I am using it to be able to easily manage all of my devices with one ip and specific ports for various services from different devices. I just acquired an xbox one, and have a roommate with one as well, we both are looking to forward ports so we can use the new streaming feature from the campus network (WAN). The xbox dynamically picks two random ports to use, somewhere between 30000 and 65000 so I temporarily forwarded all of them to see if it would work, and it does. The problem being A: i have 35,000 ports forwarded, and B: with this method, only one of the xboxes will be able to stream without re-configuring the forwards. My question being, is there a way to setup a DMZ type network so I can have both devices on a VLAN, where if from the wan interface, I attempt to connect to the "external" IP and will be able to see whichever xbox is on at the time?

      tl;dr: Is there a way to setup a VLAN where i can have two devices, and anyone on the WAN interface will be able to connect to them without port forwarding? (a DMZ more or less)

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

        Why don't you just let your boxes use UPnP so they can tell pfsense what port to forward to them that they pick..

        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
          CornHead764
          last edited by

          I already have UPnP enabled on the router, however from what I can tell, the xbox does not use UPnP to map the ports it chooses, and I do not believe there is a setting for it

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            @CornHead764:

            xbox does not use UPnP to map the ports it chooses

            Huh? Care to expand what you mean by "map"? ???

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

              Pretty sure xbox will use UPnP to open ports in a firewall.

              What exactly are you trying to stream from?  How do you get xbox to connect to this stream?  Why don't you sniff on the lan of pfsense and then try and connect to your stream..  What do you see?  Does it try and use multicast to discover the streamer?  Or do you direct it to an ip of the streamer?

              Your scenario is exactly what UPnP can help get around - be it with no security involved.. UPnP from a security aspect is an abomination..  But most clients should ask the firewall hey I want port X sent to me.. Firewall can say sorry that is in use by another client - pick something else, etc.

              Why don't you just grab multiple wan IPs and then setup 1:1 nat for these IPs to your devices on your private lan segments as another option.  Setting up that many ports in a Forward on a shared wan IP that is natted is going to break nat at some point..  Since your severely limiting the ports that can be used for the napt function.

              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.