[bf1942] quick question
Mick Smothers
mick at micksmothers.net
Thu Jan 9 11:30:35 EST 2003
Here's how I do it on my firewall using iptables:
This section punches the hole in the FW...
echo -e " - Allowing EXTERNAL access to the BF1942 dedicated
server"
$IPTABLES -A INPUT -i $EXTIF -m state --state NEW,ESTABLISHED,RELATED \
-p tcp -s $UNIVERSE -d $EXTIP --dport 14567 -j ACCEPT
$IPTABLES -A INPUT -i $EXTIF -m state --state NEW,ESTABLISHED,RELATED \
-p udp -s $UNIVERSE -d $EXTIP --dport 14567 -j ACCEPT
and here is the DNAT section that does the appropriate port
forwarding...
# BF1942 Dedicated Server
$IPTABLES -t nat -A PREROUTING -p tcp --dport 14567 -i $EXTIF \
-j DNAT --to my.int.server.address:14567
$IPTABLES -t nat -A PREROUTING -p udp --dport 14567 -i $EXTIF \
-j DNAT --to my.int.server.address:14567
Obviously replace the "my.int.server.address" with the ip of your
internal BF1942 server, and you should be in business.
- Mick
On Thu, 2003-01-09 at 09:47, Neil Brown wrote:
> > > I have a similar system set up and earlier tried to run a linux
> > > server. Unfortunately the processor is not too quick (667mhz) - is this
> > > the reason why I had almost constant connection problems (ie the connection
> > > problem warning up on the screen)? I presume it must be a speed reason as
> > > I was getting that despite accessing it through a LAN.
> > >
> > > But the thing I actually wanted to know (which I think might be useful to
> > > know for many people) is what to change on my firewall to allow me to host
> > > a (windows) server to the net. I tunnelled the port 14567 through to my
> > > internal machine but that didnt seem to work - people couldnt connect to my
> > > server. Should I redirect UDP traffic as well or another port too? Or did
> > > I just not set it up right do you think?
> > >
> > > Any help appreciated,
> > >
> > > Neil.
> > >
> > > PS good job on the linux server, keep up the good work!
> >
> >Okay, got a couple of questions for you:
> >1. Are you running the game server on the machine with the firewall, or on a
> >workstation on a LAN behind a firewalled system
> >2. Are people unable to connect (even directly to the IP of the server) or
> >simply unable to find the server in the serverlist ( gamespy in otherwords)
>
> Right I'll explain a bit better. Im a home user, with a linux box firewall
> and windows desktop PC. I ran the linux bf1942 server on the firewall box
> and we all connected fine to that (via a custom port number) but had
> constant connection problem warnings, even on my machine that was connected
> to it by a LAN.
>
> Figuring I'd sort that out afterwards but wanting to play, I tunnelled TCP
> traffic on port 14567 from the net through to my desktop PC and started a
> game on there but no-one could connect (when trying to connect directly to
> the IP of the firewall). Do I need to tunnel other ports or do you presume
> that I just havent tunnelled the port correctly?
>
> If it helps for either part it is a P2-667 linux box running redhat
> 7.2. Thanks for any help on either issue (I dont think the second one is
> too far off topic),
>
> Neil.
>
More information about the Bf1942
mailing list