Can Ipfire do port address translation?

Good evening community!

General question about IPFire.

I currently use pfsense at home and have two gaming consoles (PS5) that are used to play COD MW2 at the same time. Obviously cant port forward UDP port 3074 to both consoles and play at the same time :slight_smile:

My workaround in pfsense is to use NAT rules to change the ports. Example

Client 1 (Source) = redirects to >>> external IP: 40000 (NAT Port)
Then I port forward port 40000 to

This allows me to play COD on 1 console with an open NAT configuration on port 40000, as reported by the game client. And on the other I can keep it on port 3074 or do another similar redirection i.e to port 40001.

Can this also be achieved in IPFire?



Yes you can . Fire wall rule would be the same.


I am able to do the port forwarding rule I need with the GUI but for the other bit, this is what I was trying to achieve with the GUI

iptables -t nat -I POSTROUTING -s -p udp -m udp --sport 3074 -j MASQUERADE --to-ports 40000

I’ve resorted to using a custom rule in /etc/sysconfig/firewall.local

All is working well :smiley: