View Full Version : set netip not doing what its meant to?
Irksome
10-31-2003, 11:00 AM
Hi again ... next problem
My server sits behind a NAT'd firewall - the ports are pointing from an external IP to the internal IP 192.168.xxx.xxx ...
In the config line I have +set netip 212.135.192.58 and for good measure I have set netip "212.135.192.58" ... however it does not appear to be picking either of these settings up - there is no sign of the external IP in the console at all - just a reference to the servers internal IP ...
Am I missing something?
TheKomoman
10-31-2003, 11:15 AM
Hi again ... next problem
My server sits behind a NAT'd firewall - the ports are pointing from an external IP to the internal IP 192.168.xxx.xxx ...
In the config line I have +set netip 212.135.192.58 and for good measure I have set netip "212.135.192.58" ... however it does not appear to be picking either of these settings up - there is no sign of the external IP in the console at all - just a reference to the servers internal IP ...
Am I missing something?
As I understand it, the setting the IP is only necessary on multi-homed machines. That is, if you have two network cards and you want to specify which card the server listens on.
I run the same kind of setup as you - NAT will take care of the translation so the server doesn't need to know anything about it's external IP.
Hammer
10-31-2003, 10:49 PM
TheKomoman is correct! You don't need to use netip unless you have more than one network interface, or added one or more virtual IPs on a single one. If you don't know what this means, then you probably don't have to worry.
However, it doens't hurt to include that in your config as long as the address you set it to is your server's actual IP address (in your case the 192.168.*). The NAT device will take care of making sure the Internet sees the right (ISP) address during communication.
BTW, if you do change netip or the port, you should perform a net_restart command, to re-initialize the game's net code.
Resolution208
10-31-2003, 11:26 PM
One should not set the net_ip variable when using a NAT'ted machine; let it use the internal (private/RFC1918) address. Your NAT box will do the appropriate translation.
We use a FreeBSD box (server) sitting behind a Cisco Pix firewall. We network-address map an external IP to the Internal address of the FreeBSD box; and bingo.
Works like a charm.
- R208.
Hammer
11-01-2003, 01:06 AM
The net ip setting has nothing to do with NAT or otherwise. It tells the game server which IP address to bind to (which selects the network interface to physically send/recv packets).
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.