All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Doug C" <the_wasp@game-nation.net.nz>
To: netfilter@lists.netfilter.org
Subject: Remapping of starcraft UDP port 6112
Date: Tue, 19 Apr 2005 18:58:23 +1200	[thread overview]
Message-ID: <001001c544af$d2bd15e0$3800a8c0@Dewasp> (raw)

hi there everyone

i play starcraft which uses udp port 6112 all is fine unless i want 2 local comps in the same game. (changing the game port is no longer supported as blizzard feels that starcraft is "nat-friendly", however warcraft3 supports this feature)

i have attempted to write iptable configs to remap the ports but none have worked =(

i need a fully working normal nat/ip masq for other games like counter strike and for normal downloading/browsing/email etc as well as:

ClientA:
outgoing traffic on udp port 6112 from clientA to be remapped to where its already going udp port 60001
incomming traffic on udp port 60001 needs to be remapped back to clientA on upd port 6112

CLientB:
outgoing traffic on udp port 6112 from clientB to be remapped to where its already going udp port 60002
incomming traffic on udp port 60002needs to be remapped back to clientB on upd port 6112

so far i have:
******************************************************************************************************************************
ADSL=$(/sbin/ifconfig hsb0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'|sed -n 1p)

iptables -A PREROUTING -t nat -j DNAT -p udp -d $ADSL --dport 63001 --to-destination 192.168.0.3:6112
iptables -A POSTROUTING -t nat -j SNAT -p udp -s $ADSL --sport 6112 --to-source 192.168.0.3:63001

iptables -A PREROUTING -t nat -j DNAT -p udp -d $ADSL --dport 63002 --to-destination 192.168.0.56:6112
iptables -A POSTROUTING -t nat -j SNAT -p udp -s $ADSL --sport 6112 --to-source 192.168.0.56:63002
******************************************************************************************************************************

starcraft sends the game packets to all other clients in the game, it does not work by sending them via a server then the server sending them to the client
ips of other people in the game will ovbiously be different from game to game
i hope you can help me

cheers
Doug

             reply	other threads:[~2005-04-19  6:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19  6:58 Doug C [this message]
2005-04-19 14:24 ` Remapping of starcraft UDP port 6112 Sebastian Docktor
2005-04-19 19:23 ` Taylor, Grant
2005-04-20  7:39   ` Doug C
2005-04-20 16:23     ` Taylor, Grant
     [not found]       ` <000601c54639$89ff0940$3800a8c0@Dewasp>
     [not found]         ` <42674EFD.90803@riverviewtech.net>
     [not found]           ` <000601c546d4$b32848e0$3800a8c0@Dewasp>
2005-04-22  4:31             ` Taylor Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001001c544af$d2bd15e0$3800a8c0@Dewasp' \
    --to=the_wasp@game-nation.net.nz \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.