Skip to contentSkip to conversation

Counter Strike FOWARDING?

DISCUSSION SBlaze 3 participants 3 messages Mar 8, 2003

lore
Share & tools
lore

SBlaze

author
#0 lore raw

iptables -t nat -A PREROUTING -p TCP --dport 27015 -j DNAT --to-destination 192.168.1.25:27015

I'm trying to route incoming attempts into my internal windows machine to host a Half Life Counter Strike game every now and then. This is what I come up with! Could everyone take a look and see if this is correct? Thanks Muchly

=====
"No touchy NO TOUCHY! Emperor Kuzko -=Emperor's New Groove=-"

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

#1 lore raw
Quoted 8 lines · SBlaze

iptables -t nat -A PREROUTING -p TCP --dport 27015 -j DNAT --to-destination 192.168.1.25:27015

I'm trying to route incoming attempts into my internal windows machine to host a Half Life Counter Strike game every now and then. This is what I come up with! Could everyone take a look and see if this is correct? Thanks Muchly

Replace TCP with udp . Countertrike also uses ports 6003 , 7002 ,
27005 , 27010 ,27011 , 27012 , though forwarding 27015 usually is enough .

Best Regards ,
--
=============================================================================

Dimitris Zilaskos

Department of Physics @ Aristotle Univercity of Thessaloniki , Greece PGP key : http://tassadar.physics.auth.gr/~dzila/pgp_public_key.asc
http://egnatia.ee.auth.gr/~dzila/pgp_public_key.asc
MD5sum : 4f84f3f53cb046008b4abcb2a092d28d pgp_public_key.asc
=============================================================================

#2 lore raw
In reply to SBlaze
Quoted 2 lines · SBlaze

iptables -t nat -A PREROUTING -p TCP --dport 27015 -j DNAT --to-destination 192.168.1.25:27015

That rule is ok, but you should include a rule in the FORWARD chain which actually allows the rule. Portforwarding is ok, as long as you don't forbid it later:

iptables -A FORWARD -p tcp --dport 27015 -d 192.168.1.25 -j ACCEPT

Don't know if the Counterstrike-port is correct though... But i guess you know what you're doing.

Alex.

Signature · 2 lines
"Mr Data, when I said 'Fire at Will', I didn't mean for you to be so literal."
Instructions for use of this post: Insert tounge in cheek. Read as normal.