how to forward IP request to a specific port

Posted by Jeremy Talus on Server Fault See other posts from Server Fault or by Jeremy Talus
Published on 2012-10-22T13:36:17Z Indexed on 2012/10/22 17:03 UTC
Read the original article Hit count: 226

Filed under:
|
|

I have 2 servers

  • the first (SRV01) is running Bind and other web app
  • the second (SRV02) is running 2 server Minecraft (^^)

in Bind I have 2 A recording for the 2 server MC

s1.domain.tld    A    SRV02IP
s2.domain.tld    A    SRV02IP

the 2 MC serv are running on 2 different port 25565 and 25566

so I want that the request from s1.domain.tld:25565 are going to SRV02IP:25565 and the request from s2.domain.tld:25565 are going to SRV02IP:25566

I think I need do this in the SRV02 iptables. I have looking some topic about iptables but nothing pertinent to me.

could you help me ?

rgds.

© Server Fault or respective owner

Related posts about dns

Related posts about iptables