Linux Netfilter discussions
 help / color / mirror / Atom feed
* Tribes 2 server behind NAT
@ 2003-11-21  0:12 Mike McLean
  0 siblings, 0 replies; 2+ messages in thread
From: Mike McLean @ 2003-11-21  0:12 UTC (permalink / raw)
  To: netfilter

Hi,

I've got a tribes 2 linux server running behind a NAT gateway using iptables.  
I've forwarded both TCP and UDP on port 28000 to my server as follows:

iptables -t nat -A PREROUTING -i eth0 -p udp --dport 28000 -j DNAT --to 
192.168.4.7:28000
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 28000 -j DNAT --to 
192.168.4.7:28000

When I launch the game on another box on my local network.  I see it in the 
server list with the private ip address 192.168.4.7.  However, I have someone 
outside the network trying to conenct, but my game doesn't show up in the 
server list for them.  So they are unable to connect.

I run tribes to with the following command:

tribesd2 -dedicated

Any help is appreciated,

Mike



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tribes 2 server behind NAT
@ 2003-11-21  0:42 Mike McLean
  0 siblings, 0 replies; 2+ messages in thread
From: Mike McLean @ 2003-11-21  0:42 UTC (permalink / raw)
  To: netfilter

Hi,

Yeah I am masquerading with the following line:

iptables -t nat -A POSTROUTING -o eth0 -d \! 192.168.4.0/24 -j MASQUERADE

I've got it setup this way because I have a VPN setup between several 
locations.

I do not have logging turned on.  I suppose I should enable it.

Mike

On Thursday 20 November 2003 05:21 pm, you wrote:
> Are you masquerading that server to the internet? It'll need it..
>
> also, you logging any dropped packets?
>
> Thanks,
> ____________________________________________
> George Vieira
> Systems Manager
> georgev@citadelcomputer.com.au
>
> Citadel Computer Systems Pty Ltd
> http://www.citadelcomputer.com.au
>
> Phone   : +61 2 9955 2644
> HelpDesk: +61 2 9955 2698
>
> > -----Original Message-----
> > From: Mike McLean [mailto:libolt@libolt.net]
> > Sent: Friday, 21 November 2003 11:13 AM
> > To: netfilter@lists.netfilter.org
> > Subject: Tribes 2 server behind NAT
> >
> >
> > Hi,
> >
> > I've got a tribes 2 linux server running behind a NAT gateway
> > using iptables.
> > I've forwarded both TCP and UDP on port 28000 to my server as follows:
> >
> > iptables -t nat -A PREROUTING -i eth0 -p udp --dport 28000 -j
> > DNAT --to 192.168.4.7:28000
> > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 28000 -j
> > DNAT --to 192.168.4.7:28000
> >
> > When I launch the game on another box on my local network.  I
> > see it in the
> > server list with the private ip address 192.168.4.7.
> > However, I have someone
> > outside the network trying to conenct, but my game doesn't
> > show up in the
> > server list for them.  So they are unable to connect.
> >
> > I run tribes to with the following command:
> >
> > tribesd2 -dedicated
> >
> > Any help is appreciated,
> >
> > Mike



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-21  0:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-21  0:42 Tribes 2 server behind NAT Mike McLean
  -- strict thread matches above, loose matches on Subject: below --
2003-11-21  0:12 Mike McLean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox