Currently, I'm using iptables to redirect incoming requests for "website.com:27015" to "xx.xx.xx.xx:27015". Problem is, since iptables redirects via the port 27015, I can only redirect to one single location.
But since I want to expand the number of locations I can reroute to, I'm searching for a method to reroute via the URL+PORT now.
Example:
dm.website.com:27015 reroutes to yy.yy.yy.yy:27020
private.website.com:27015 reroutes to xx.xx.xx.xx:27015
(same url, different subdomains)
etc..
Any suggestions/solutions for this problem are greatly appreciated! ^^
Edit: Need to listen for UDP connections as well as TCP