First let me say that I am not subscribed to the list, so please
send me a copy of any replies.
I have been using Shorewall for years as the firewall for my LAN.
It has been awhile since I played Starcraft and hosted games.
Back then I was using the 2.2 kernel with the loose_udp patch and
no firewall. All worked fine.
I stopped playing Starcraft a while back and later upgraded my
kernel to 2.6 and nettables. Now I can play Starcraft but I can''t
host games. After Googling around, I found the correct iptables
commands to allow me to host games.
First, I entered this in Shorewall rules file:
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL
RATE USER
# PORT PORT(S) DEST
LIMIT
DNAT inet2 lan4:192.168.4.4:6112 udp 6114
which will map incoming port 6114 to my local PC (ip=192.168.4.4)
using port 6112. However I do not know how to enter the following
command into Shorewall''s tables.
iptables -t nat -I POSTROUTING -p udp -s 192.168.4.4/32 --sport 6112 -j SNAT
--to $MY_INET_IP:6114
Of course, $MY_INET_IP is my static ip address. This command
re-maps all output from my local PC on port 6112 to the firewall
port 6114. As I understand it, with this scheme I can have
multiple PC''s hosting Starcraft by using different port numbers.
My question is: How do I enter the iptables command into
a Shorewall table?
Thanks in advance,
Bill