Author Topic: BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((  (Read 6360 times)

mitar

  • Posts: 6
  • Turrets: +0/-0
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« on: July 18, 2006, 09:17:44 am »
I host server, it start on local ip with port I set...
but in server browser (internet) in game there is another port , and when router restart there is another port ;/
I have "stand IP"
I try this  +set net_qport 12345 (this is Setting for NAT)
but it not help ;(
(SORRY FOR MY ENGLISH)

darklurker

  • Posts: 23
  • Turrets: +0/-0
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #1 on: July 18, 2006, 09:07:24 pm »
Mitar,

Was it a typo when you wrote "+set net_qport"???  Isn't it supposed to be "+set net_port" -without the "q"?

Anyway, I'm behind a NAT firewall myself, and it's working OK for me on port 30720.  Just make sure your firewall will allow outbound traffic on port 30710 - which I think is what tremded uses to send heartbeats to the masterserver.

good luck,
DarkLurker (aka David)

SysmiX

  • Posts: 5
  • Turrets: +0/-0
Same here
« Reply #2 on: January 05, 2007, 07:55:26 pm »
I have the same problem, my server don't show in the ingame list. On an external server browser (XQF), my server show but is unresponsive. The server browser can't get any info from it. The weird thing is that using the "connect" command, my friends can connect.

I'm using the "+set dedicated 2" parameter, and on the server console i get:
Code: [Select]
Resolving master.tremulous.net
master.tremulous.net resolved to 72.36.226.187:30710
Sending heartbeat to master.tremulous.net
Hitch warning: 11182 msec frame time
Sending heartbeat to master.tremulous.net
...
...


The server is running on the 30720 port (confirmed) but in the XQF server browser, the reported server port is 60165 or some other random port close to that. I think that every heartbeat add a new entry in the master list with a different random port and the old ones get deleted after some time. Right now, there is three entries of my server in the list, all unresponsive.

It's running on linux btw.

I have tried the "+set net_port 30720" with the same results. Can I specify the address I want the server to report to the master even if its not the host ip? Maybe this problem is caused by some NAT craziness of my router. I'm running out of ideas, any help will be appreciated.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #3 on: January 06, 2007, 01:22:31 am »
Tell us the nature of your local area network. What kind of connection, modem, router, etc.

SysmiX

  • Posts: 5
  • Turrets: +0/-0
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #4 on: January 06, 2007, 05:20:32 am »
It's an adsl connection. My modem is a siemens speedstream 4200 working as router with the DMZ set to my machine's LAN ip. The connection is well tested and working ok. Other local services can be accessed from the internet.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #5 on: January 06, 2007, 09:43:19 am »
You need to specify the exact port on the modem, otherwise NAT daemon might grab the first free port it finds for outgoing traffic.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #6 on: January 06, 2007, 10:11:27 am »
Also, make sure your router is making the ISP connections with PPPOE, and not using DHCP mode to communicate with the modem. Call your ISP and ask them how to get your modem running in bridge mode, since most modems come defaulted to work by connection with a single computer, thus the modem's onboard OS is doing all the work. This can have a drastic effect on NAT networks, and I used to have this problem until I switched my modem into "bridged" mode and made the router do the ISP connection through the modem with PPPOE instead.

If you can access both your modem and your router with a web interface, check if your router is set in PPPOE mode. If so, this problem shouldn't be occurring.

SysmiX

  • Posts: 5
  • Turrets: +0/-0
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #7 on: January 07, 2007, 08:54:45 pm »
I don't think I can specify the port that NAT use on the outgoing packets. And I just got this modem because of the router capabilities as I have 3 computers using this connection and none stays 24h online to be the gateway. The modem have two kinds of NAT, the simpler allows only one internal machine to access the inet (this one works ok but don't fit my needs), and the second, NAPT, do this port number changing madness and cause the trouble. But the server works ok, it just show up with the wrong port in the master list. I guess I'll have to live with that  :( .

The only way I can see to solve that is to have an way to send the address of my server to the master list in the data of the network packet, and not using the source address of the connection, if there is no such thing already, it's probably not going to be done, as it's probably an standard protocol (from the quake engine i guess).

Thanks to you guys for the help, to bad it had no solution.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #8 on: January 08, 2007, 11:25:57 am »
That's the first NAT capable modem which doesn't support port forwarding I've ever heard of.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

SysmiX

  • Posts: 5
  • Turrets: +0/-0
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #9 on: January 08, 2007, 04:57:39 pm »
It support port forwarding, the server can be reached from the Internet, the problem is just sending the right address to the master list. I don't know the protocol, but I'm guessing the master server uses the source address of the heartbeat as the server address. And when my server send the heartbeat with the source address set to 192.168.254.1:30720, the router change the ip to my WAN ip, but it also change the port for some reason and that's the problem.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #10 on: January 08, 2007, 07:38:45 pm »
Quote from: "SysmiX"
It support port forwarding, the server can be reached from the Internet, the problem is just sending the right address to the master list. I don't know the protocol, but I'm guessing the master server uses the source address of the heartbeat as the server address. And when my server send the heartbeat with the source address set to 192.168.254.1:30720, the router change the ip to my WAN ip, but it also change the port for some reason and that's the problem.


Why haven't you set up a simple port forwarding rule then?!
forward 30720 => your_LAN_ip:30720
That's ALL you have to do to keep the same port for all outbound Tremulous server traffic.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

SysmiX

  • Posts: 5
  • Turrets: +0/-0
BIG PROBLEM WITH DEDICATED SERVER ON NAT ;-(((((((((((
« Reply #11 on: January 08, 2007, 11:12:25 pm »
Oh, only now I see you was talking about *outgoing* traffic, it worked!! Thanks very much. I had tried that before but with a port range and that don't helped.