( search forums )
Dedicated Server access problem through network
Soldat Forums - Soldat Talk - Server Help
fuero
March 6, 2003, 10:15 pm
Hi guys,
I want to run a Soldat server from behind a (linux) router.
I forwarded ports 23073, 23083 both TCP and UDP.

from my firewall script:
quote:
FORWARD_TO_IP=1.1.1.2
# Soldat Ports (UDP)
iptables -t nat -A PREROUTING -p udp --dport 23073 -i eth0 -j DNAT --to $FORWARD_TO_IP:23073
iptables -A FORWARD -i eth0 -p udp -d $FORWARD_TO_IP --dport 23073 -j ACCEPT
iptables -t nat -A PREROUTING -p udp --dport 23083 -i eth0 -j DNAT --to $FORWARD_TO_IP:23083
iptables -A FORWARD -i eth0 -p udp -d $FORWARD_TO_IP --dport 23083 -j ACCEPT

# Soldat Ports (TCP)
iptables -t nat -A PREROUTING -p tcp --dport 23073 -i eth0 -j DNAT --to $FORWARD_TO_IP:23073
iptables -A FORWARD -i eth0 -p tcp -d $FORWARD_TO_IP --dport 23073 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 23083 -i eth0 -j DNAT --to $FORWARD_TO_IP:23083
iptables -A FORWARD -i eth0 -p tcp -d $FORWARD_TO_IP --dport 23083 -j ACCEPT

iptables -A FORWARD -i eth0 -p icmp -d $FORWARD_TO_IP -j ACCEPT


if i try to connect to localhost on the Windows machine (1.1.1.2) Soldat connects normally. But if i try to cennect from outside the network, Soldat says "Requesting game..." and thats it. [:-weepn]

toadsMoke
March 7, 2003, 11:57 am
are you sure that both your router and firewall are setup correctly? is the firewall set to allow those ports to go through?

also, "$FORWARD_TO_IP:23073" i know little about linux networking, but shouldnt that be an IP, not a port?

Flanagan
March 17, 2003, 7:31 am
That makes sense, I know extremely little about Linux, so I can't be of much help at all, but,

$FORWARD_TO_IP:12.34.5.678:23073

Is what I would do, I will check my Linux books, but I don't think I'll find anything. Hope I can help at lease a little.

fuero
March 17, 2003, 9:44 am
Thanks for your posts, but I'm sure this script is working, but unfortunaly not for Soldat.
The first line of my script reads:

FORWARD_TO_IP=1.1.1.2

So if you write "echo $FORWARD_TO_IP", Justyou get "1.1.1.2" as an output. Just substitute $FORWARD_TO_IP with 1.1.1.2, the internal IP of the Windows machine in my network. This statements are guaranteed to work, because it works with ICQ and E-Donkey *G*.
Thanks in advance,
Fuero

macch
April 6, 2003, 8:24 pm
Hello,
I have a exact the same problem.

I am behing a firewall whitch is set on my router.
The ip-chains configuration works perfectly with everything but
soldat.
I`m still working on solving this problem. If i manage the first thing I`ll do i contacting You.

On the other hand, maybe there will be a better soldat dedicated server version whitch will work easier. :?

Regards
maciej