OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: saki22 on November 07, 2020, 09:45:42 pm

Title: (NAT Solved)How do I open a port for a static IP for Xbox one
Post by: saki22 on November 07, 2020, 09:45:42 pm
How do I open a port for a static IP for Xbox one
Title: Re: How do I open a port for a static IP for Xbox one
Post by: Gauss23 on November 08, 2020, 09:57:42 am
Firewall: NAT: Port Forward

Add your rule like:
Interface: WAN
Proto: choose the one you need
Source: you can either allow just some IPs or all sources
Dest: WAN_Address
Port: the port you want to forward
Redirect target IP: the xbox IP
Port should be the same as in dest-port

Hit save and it should work.
Title: Re: How do I open a port for a static IP for Xbox one
Post by: saki22 on November 08, 2020, 11:34:11 am
xbox one nat type strict how do i fix this
I am doing some thing wrong
Title: Re: How do I open a port for a static IP for Xbox one
Post by: Gauss23 on November 08, 2020, 12:07:37 pm
xbox one nat type strict how do i fix this
I am doing some thing wrong

Yes, you didn't read my post.

Firewall: NAT: Port Forward is what I said

Firewall: NAT: Outbound is what you have chosen. Do you know which ports you need to forward?
Title: Re: How do I open a port for a static IP for Xbox one
Post by: saki22 on November 08, 2020, 01:15:46 pm
I'm sorry i thought that was the same option screen.
Title: Re: How do I open a port for a static IP for Xbox one
Post by: saki22 on November 08, 2020, 08:38:22 pm
I fix the nat for xbox 1 by using these step
Create Alias for Xbox Port for both TCP/UDP:

    Firewall -> Aliases
    Click + at the bottom right
    Name: Xbox Live Port
    Type: Port(s)
    Content: 3074 (or the alternative port if on second Xbox One)
    Description: Whatever you like

Create Alias for Xbox IP addresses

    Firewall -> Aliases
    Click + at the bottom right
    Name: Xbox One Host
    Type: Host(s)
    Content: IP address of Xbox One
    Description: Whatever you like

Setup Port Forwarding Rules

    Firewall -> NAT -> Port Forward
    Click +Add at the top right
    Interface: WAN
    TCP/IP Version: IPv4
    Protocol: TCP/UDP
    Destination: WAN Address
    Destination port range: Xbox Live Port Alias
    Redirect Target IP: Xbox One Host Alias
    Redirect target port: Xbox Live Port Alias
    Description: Be creative
    NAT Reflection: Enable (Super Important!)

Setup Firewall Rules

These should be auto-created when port forwarding rules were created. This was the easy part.
Setup Outbound NAT Rule

    Firewall -> NAT -> Outbound
    Switch the Mode at the top from Automatic to Hybrid
    Click Save
    Click +Add
    Interface: WAN
    TCP/IP Version: IPv4
    Protocol: TCP/UDP
    Source address: Xbox One Host Alias
    Source port: Xbox Live Port Alias
    Destination address: any
    Destination port: any
    Static Port: Checked (Super Important!)
    Description: A one line poem
this is not from me i copy  from a webpage he is the link https://ultramookie.com/2020/05/opnsense-xbox-live/
Title: Re: How do I open a port for a static IP for Xbox one
Post by: Mkayze on November 30, 2020, 06:28:51 pm
I fix the nat for xbox 1 by using these step
Create Alias for Xbox Port for both TCP/UDP:

    Firewall -> Aliases
    Click + at the bottom right
    Name: Xbox Live Port
    Type: Port(s)
    Content: 3074 (or the alternative port if on second Xbox One)
    Description: Whatever you like

Create Alias for Xbox IP addresses

    Firewall -> Aliases
    Click + at the bottom right
    Name: Xbox One Host
    Type: Host(s)
    Content: IP address of Xbox One
    Description: Whatever you like

Setup Port Forwarding Rules

    Firewall -> NAT -> Port Forward
    Click +Add at the top right
    Interface: WAN
    TCP/IP Version: IPv4
    Protocol: TCP/UDP
    Destination: WAN Address
    Destination port range: Xbox Live Port Alias
    Redirect Target IP: Xbox One Host Alias
    Redirect target port: Xbox Live Port Alias
    Description: Be creative
    NAT Reflection: Enable (Super Important!)

Setup Firewall Rules

These should be auto-created when port forwarding rules were created. This was the easy part.
Setup Outbound NAT Rule

    Firewall -> NAT -> Outbound
    Switch the Mode at the top from Automatic to Hybrid
    Click Save
    Click +Add
    Interface: WAN
    TCP/IP Version: IPv4
    Protocol: TCP/UDP
    Source address: Xbox One Host Alias
    Source port: Xbox Live Port Alias
    Destination address: any
    Destination port: any
    Static Port: Checked (Super Important!)
    Description: A one line poem
this is not from me i copy  from a webpage he is the link https://ultramookie.com/2020/05/opnsense-xbox-live/

Im glad I saw this post. I am on PC and Ive been on strict NAT since the game came out. This was driving me crazy lol.

I did everything right but I didn't know that you had to add the NAT Outbound rule as I've never needed to with the other stuff I port forwarded.

Do you know what to do if i wanna do the same for 2 xbox/pc? I can't seem to get it to work
Title: Re: (NAT Solved)How do I open a port for a static IP for Xbox one
Post by: saki22 on December 09, 2020, 01:26:33 am
If you got a second Xbox you need to go to networking on the Xbox change port b and I do the same steps with port number