Adam's analysis is correct. Basicly, you add a rule like so:

rdr on $eth0 inet proto udp from any to $eth0 port 27015 -> ser.ver.ip.addy
port 27015

Which means, any packets coming from the internet to the NAT device on port
27015 should be sent to the machine with the ip of ser.ver.ip.addy. This
opens that port which the HLDS is running on to the internet. Basicly,
punching a hole through nat. the server itself will open up whatever ports
it needs to in order to communicate with the master server and NAT will
properly translate it and keep state so a return path is open so it can
communicate with the master servers. NAT will also work with the client
because it uses a port in 1024-65535 range to open a connection to a server
at with a port of 27015. Mapping the 27015 is only needed for when your
running a server through a NAT device. Opening the port is needed when your
running a firewall. Most NAT/Firewall combos do both automaticly once you
tell it the rule to use.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maarten van der
Zwaart
Sent: Monday, May 31, 2004 5:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [hlds] floating port?

Are you talking about a NAT router here? As the HLDS does not have a dynamic
port. Nor does the HL client. HLDS does not need or use a different port for
each client, it can tell them apart by client IP/port.

If you are using a NAT router you should set it to actually use port
27015 for outgoing packets with source port 27015. This will make sure all
communications with both clients and master servers use port 27015
internally and externally. Otherwise the master servers may think your
server is on another port, and not get listed (with WON anyway, I've never
used or tested this setup with Steam).

Maarten


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds

Reply via email to