View previous topic :: View next topic |
Author |
Message |
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Tue Oct 15, 2013 6:08 Post subject: Troubles getting linux server up and running |
|
|
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 |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Tue Oct 15, 2013 6:44 Post subject: |
|
|
I should mention this is on Ubuntu 13.04 64bit, with a 32bit jail. |
|
Back to top |
|
|
elven
Joined: 28 Jul 2006 Posts: 259 Location: Germany
|
Posted: Tue Oct 15, 2013 12:45 Post subject: |
|
|
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 |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Wed Oct 16, 2013 2:32 Post subject: |
|
|
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 |
|
|
eeriegeek
Joined: 07 Jan 2008 Posts: 59
|
Posted: Wed Oct 16, 2013 13:49 Post subject: |
|
|
Does
Code: | netstat -a --inet | grep 5121 |
return a line like:
on the server?
Are you running a firewall (iptables) ? |
|
Back to top |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Thu Oct 17, 2013 0:52 Post subject: |
|
|
Yep it does.
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 |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Thu Oct 17, 2013 0:53 Post subject: |
|
|
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 |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Thu Oct 17, 2013 0:58 Post subject: |
|
|
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 |
|
|
elven
Joined: 28 Jul 2006 Posts: 259 Location: Germany
|
Posted: Thu Oct 17, 2013 18:29 Post subject: |
|
|
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 |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Fri Oct 18, 2013 17:52 Post subject: |
|
|
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 |
|
|
|