•     Please make sure you check the Support FAQ and relevant Guides before you create a new thread in this section!

Hosting Server Ubuntu 14.04 Linux setup - iptables ??

Posts
8
Likes
2
Cannot get my server to work. It runs but I cannot connect to it locally or otherwise. Probably an issue with iptables, but everything I've tried hasn't worked.

Does anyone know what I should be doing to configure iptables to make sure the UDP ports are being forwarded correctly?
 

Cat Lady

Movie Battles II Team Retired
Posts
412
Likes
237
Little hard to tell without seeing how your current iptables configuration actually looks. Please provide it here (in case you don't know how, just google it or check iptables man page)
 

Puppytine

Slayed dreamer
Posts
2,237
Likes
1,487
Are you sure you configured server itself properly -- do you have those lines in server's console?
Code:
------ Server Initialization ------
Server: <map name>
----- FS_Startup -----
and
Code:
VM_Create: jampgamei386.so failed!
VM_CreateLegacy: jampgamei386.so succeeded
------- Game Initialization -------
gamename: Movie Battles II V1.3.2
Because if you don't, you need to add this line at the end of your config:
Code:
map mb2_dotf

Anyhow, you just need to open port that mb2 uses (29070 by default, see console for actual value) both for tcp and udp incoming connections.
 
Last edited:
Posts
8
Likes
2
I was following this guide: https://jkhub.org/tutorials/article/164-how-to-make-dedicated-server-on-linux-with-mod/
My start.sh contains:
Code:
./linuxjampded +set dedicated 2 +set fs_game "MBII" +exec "server.cfg"

The output upon running ./share.sh is:

Code:
38369 files in pk3 files
execing mpdefault.cfg
execing jampserver.cfg
couldn't exec autoexec.cfg
--- Common Initialization Complete ---
Opening IP socket: localhost:29070
Hostname: dallas.hostus.com
Alias: dallas
IP: 45.58.55.188
execing server.cfg

My iptables are (after trying a shotgun approach):

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere             state NEW udp dpt:openvpn
ACCEPT     all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     udp  --  anywhere             dallas.hostus.com  udp dpts:27000:31000
ACCEPT     udp  --  anywhere             10.8.0.1             udp dpts:27000:31000
ACCEPT     udp  --  anywhere             127.0.0.2            udp dpts:27000:31000
ACCEPT     udp  --  anywhere             localhost.localdomain  udp dpts:27000:31000

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Posts
8
Likes
2
And that's all? If it is, it's not enough, read my previous message again. Server won't work until some map will be loaded.
That was it. Didn't have that last
map mb2_dotf line.

It's always something pretty simple I guess.
Now I gotta figure out which policies I can delete.

Also - do you have the updated master server list?

And thanks a lot by the way. I spent way too much time on this.
 

Puppytine

Slayed dreamer
Posts
2,237
Likes
1,487
Top