NeoRouter
http://www.neorouter.com/forum/

Neorouter server 1.5.0 on Debian listens to IPv6 only...
http://www.neorouter.com/forum/viewtopic.php?f=8&t=4707
Page 1 of 1

Author:  ElTopo [ Thu Jun 30, 2011 1:04 pm ]
Post subject:  Neorouter server 1.5.0 on Debian listens to IPv6 only...

My neorouter server has been running on a debian (testing) 686 box. 1.3.0 worked perfectly.

Yesterday I upgraded to 1.5.0, then I found all my neorouter clients, both 1.5.0 and 1.3.0, could not connect to the new server. From the debian box, I typed this command:
Code:
# netstat -an | grep 14000
tcp6       0      0 :::14000                :::*                    LISTEN
tcp6       0      0 ::1:14000               ::1:32790               ESTABLISHED
tcp6       0      0 ::1:32790               ::1:14000               ESTABLISHED

(I use port 14000 for neorouter server).
It looked like that neorouter only listens to IPv6 interfaces (:::14000), not IPv4 (0.0.0.0:14000).

I checked httpd and sshd, they showed up like this:
Code:
# netstat -an | grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp6       0      0 :::80                   :::*                    LISTEN
# netstat -an | grep 22
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:57819         127.0.0.1:22            TIME_WAIT
tcp        0     84 10.10.5.5:22            10.10.20.10:3396        ESTABLISHED
tcp6       0      0 :::22                   :::*                    LISTEN


Now the only client that can connect to server is the one running in the same debian box, using ::1. Because I don't have a working IPv6 environment yet, all the other clients fail to connect:
"Signin failed because connection to server cannot be established. [hr=0x80072749]"

I also tried telnet server_IPv4_IP 14000, got "Connection refused".

How can I enable IPv4?

Thanks!

Author:  luke [ Thu Jun 30, 2011 1:24 pm ]
Post subject:  Re: Neorouter server 1.5.0 on Debian listens to IPv6 only...

hi ElTopo,

Thank you for reporting.

If OS enables IPv6, even if you do not have a public IPv6 address assigned, listening on only the IPv6 address ::1 and not on the ipv4 address is theoretically the correct behavior. :) It should accept both IPv6 and IPv4 incoming connections. http://linux.die.net/man/7/ipv6. But some OSs may behave differently. What's the debian version? Could you help gather nrserver log file so we can figure out the root cause?

You can force nrserver to disable IPv6 stack. Create /usr/local/ZebraNetworkSystems/NeoRouter/Feature.ini and add the following setting. http://www.neorouter.com/wiki/index.php ... ationFiles

Code:
[Default]
#Description: Specify host IP type for nrserver
#Options:     0-detect; 1-IPv4; 2-IPv6; 3-Dual
#Default:     0
HostIPType=1


Thanks,
Luke

Author:  ElTopo [ Fri Jul 01, 2011 12:54 am ]
Post subject:  Re: Neorouter server 1.5.0 on Debian listens to IPv6 only...

Luke,

Thanks! the Feature.ini trick works.

I am using Debian testing, updated to the latest version. I only have IPv6 enabled inside the Debian system, but I don't have IPv6 router, some Windows systems don't even have IPv6 installed. I am not sure if that's problem.

Thanks again.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/