We run several game servers all using one port with the use of IP Aliasing, the game servers bind to a specific aliased IP that belongs to the main dedicated server.
I've setup netplan already and it worked, however I wasn't able to setup IP-specific rules for iptables.
The game servers all use UDP port 19132.
I have tried making INPUT rules setting the destination to the aliased IPs one by one with their paired OUTPUT rules with the source IP as the aliased IPs.
iptables -A INPUT -d xx.xx.xx.xx -p udp --dport 19132 -j ACCEPT
iptables -A OUTPUT -s xx.xx.xx.xx -p udp --dport 19132 -j ACCEPT
Doing that didn't work and I was still unable to connect via the UDP port.