Two devices, same ports to be forwarded



  • 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)


  • Rebel Alliance Global Moderator

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



  • 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


  • Banned

    @CornHead764:

    xbox does not use UPnP to map the ports it chooses

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


  • Rebel Alliance Global Moderator

    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.