logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Troubles getting linux server up and running

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Tue Oct 15, 2013 6:08    Post subject: Troubles getting linux server up and running Reply with quote

Hey all, I've got everything *mostly* working.
Everything loads up inside my chroot jail, the logs look fine, no spam from the server itself, however, I can't connect to it with the client.

Nmap shows no ports open on localhost between 5000-5300.

Am I missing some simple step?
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Tue Oct 15, 2013 6:44    Post subject: Reply with quote

I should mention this is on Ubuntu 13.04 64bit, with a 32bit jail.
Back to top
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Tue Oct 15, 2013 12:45    Post subject: Reply with quote

What jail mechanism are you using? debootstrap + chroot, or something more elaborate like LXC? Any special considerations like SELinux that might prevent binding? (check syslog, daemon log, etc)

Are you looking for udp ports? nwserver should listen on udp 0.0.0.0:5121. It will bind to 5122 if that port is taken.
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Wed Oct 16, 2013 2:32    Post subject: Reply with quote

debootstrap + chroot

I hadn't even considered SELinux. There's nothing in the syslog, dmesg, etc in either the host, or the chrooted /var/logs.

yeah, nmap -p5000-5300 -sU
returns no ports open.
Back to top
View user's profile Send private message
eeriegeek



Joined: 07 Jan 2008
Posts: 59

PostPosted: Wed Oct 16, 2013 13:49    Post subject: Reply with quote

Does

Code:
netstat -a --inet | grep 5121


return a line like:

Code:
udp        0      0 *:5121                      *:*


on the server?

Are you running a firewall (iptables) ?
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Thu Oct 17, 2013 0:52    Post subject: Reply with quote

Yep it does.

Code:

udp        0      0 *:5121                  *:*


unless this build of 13.04 has some other firewall by default

Code:
iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Thu Oct 17, 2013 0:53    Post subject: Reply with quote

and somehow...5121 is showing up in nmap now as well....

I'm at work, but I'll have a player test it out for me.
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Thu Oct 17, 2013 0:58    Post subject: Reply with quote

Aside from that, nwserver is using a full core right now while idle. Same module under windows, using 3%.

More to investigate yet.
Back to top
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Thu Oct 17, 2013 18:29    Post subject: Reply with quote

Using nwnx_optimizations might help in that regard - it hooks the main loop and optimises timing/scheduling somewhat so that it doesn't busy-spin.
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Fri Oct 18, 2013 17:52    Post subject: Reply with quote

Well it's down to 32% at idle.

Profiler isn't showing anything at default info level. I can pop it up for a bit and see if anything is going crazy.

I should also retest the mod under windows, I did just start using the community compiler
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group