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

FreeBSD Client and Server on same box [TEMP SOLVED]
http://www.neorouter.com/forum/viewtopic.php?f=8&t=4731
Page 1 of 2

Author:  PSY0NIC [ Mon Jul 25, 2011 9:12 pm ]
Post subject:  FreeBSD Client and Server on same box [TEMP SOLVED]

I don't see much on the forums or on google regarding NeoRouter Free on FreeBSD. I managed to get the server running after recompiling the kernel without IPv6 enabled or the server would bind to the non-configured/activated IPv6 address and wouldn't respond to any requests. After recompiling withough IPv6 in the kernel all is well however on to part two.

Nrservice will not start. Running
Code:
/usr/local/etc/rc.d/nrservice.sh start

says started but the service never starts and nothing gets logged anywhere.

Running nrservice directly gets you the error:

Code:
NeoRouter Free [Version 1.5.1.2820]
Copyright (C) 2011 NeoRouter Inc.

nrservice failed to start due to error -2139029502.


I have tried utilizing both Features.ini and Log.ini to force options, start logging etc however on FreeBSD it appears that all NeoRouter applications on FreeBSD ignore both of those files. I'm at a loss and don't know what more to do. As I've said, there isn't much on this site regarding FreeBSD nor on google specifically about NeoRouter ignoring the presence of Features.ini and Log.ini. I have copied them all over the box in hopes that one of the places will be right but none have been so far. I have copies in:

Code:
/usr/local/etc/
/usr/local/ZebraNetworks/NeoRouter
/etc


Please advise.

Thanks in advance.

Author:  kevinz [ Mon Jul 25, 2011 10:29 pm ]
Post subject:  Re: FreeBSD Client and Server on same box

Hi PSY0NIC,

Error code -2139029502 (0x80810002) means nrservice cannot load local settings, especially the MAC address of local network adapter.

Can you put results of "ifconfig" here? nrservice requires a MAC address to identify your computer.

Btw, the main configuration folder is /usr/local/ZebraNetworkSystems/NeoRouter on FreeBSD, you can simply put the code in a Log.ini file and restart the service to collect log file.

Code:
[Default]
Mask=536870911
Type=1


The log file will be in the folder as well.

It would be helpful if you can collect log file of nrservice.

Thanks,
KevinZ - NeoRouter team

Author:  PSY0NIC [ Mon Jul 25, 2011 10:36 pm ]
Post subject:  Re: FreeBSD Client and Server on same box

I have put both Features.ini and Log.ini in that folder and it ignores it. No log is ever generated. Here are the contents of both.

Features.ini
Code:
[Default]
UdpOnly=0
P2P=0
HostIPType=1
HardwareId=MY MAC HERE
NicInterfaceName=msk
ProtocolVersion=1


Log.ini
Code:
[Default]
Mask=536870911
Type=1
Path=/usr/local/ZebraNetworkSystems/NeoRouter/log.txt

[nrservice]
Mask=4294967295
Type=1
Path=/usr/local/ZebraNetworkSystems/NeoRouter/nrservice.log
MaxNumOfLines=20000

[nrclientcmd]
Mask=4294967295
Type=1
Path=/usr/local/ZebraNetworkSystems/NeoRouter/nrclientcmd.log
MaxNumOfLines=20000


I only get that error code when I execute from /usr/local/bin/nrservice. Using /usr/local/etc/rc.d/nrservice.sh start always results in "SUCCESS" message but the service never starts.

I'd really like to get the logging for you but I can't if the programs are ignoring Log.ini

Author:  kevinz [ Mon Jul 25, 2011 10:50 pm ]
Post subject:  Re: FreeBSD Client and Server on same box

Hi PSY0NIC,

Are you sure you put config file in /usr/local/ZebraNetworkSystems/NeoRouter folder, instead /usr/local/ZebraNetworks/NeoRouter (You mentioned).

Also please double check the the file/folder permission and nrservice permission.

I just tried it out on my FreeBSD 8 x64 box without any problem.

Thanks,
KevinZ - NeoRouter team

Author:  PSY0NIC [ Mon Jul 25, 2011 10:53 pm ]
Post subject:  Re: FreeBSD Client and Server on same box

Code:
# pwd
/usr/local/ZebraNetworkSystems/NeoRouter
# ls
Feature.ini             nrclient.README         server.crt
Log.ini                 nrserver.README         server.key
NeoRouter_0_0_1.db      openssl.cnf


Code:
/usr/local/etc/rc.d
-rwxr-xr-x  1 root  wheel   952 Jul 25 05:13 nrserver.sh
-rwxr-xr-x  1 root  wheel   779 Jul 26 02:53 nrservice.sh


Code:
/usr/local/bin
-rwxr-xr-x  1 root  wheel   894096 Jul 26 01:14 nrclientcmd
-rwxr-xr-x  1 root  wheel  2817768 Jul 25 03:43 nrserver
-rwxr-xr-x  1 root  wheel  2831016 Jul 26 01:14 nrservice

Author:  PSY0NIC [ Tue Jul 26, 2011 7:36 am ]
Post subject:  Re: FreeBSD Client and Server on same box

Also, I'm running 8.2-STABLE if that matters (needed an upstream patch for my network card)

Author:  luke [ Tue Jul 26, 2011 7:43 am ]
Post subject:  Re: FreeBSD Client and Server on same box

in Log.ini, path should be a directory, not including file name. the program will generate file names.

Path=/usr/local/ZebraNetworkSystems/NeoRouter/log.txt

Author:  PSY0NIC [ Tue Jul 26, 2011 7:46 am ]
Post subject:  Re: FreeBSD Client and Server on same box

Ok. I will try tonight as I don't have the client working on the server yet to get into it from remote. Thanks for your time. Hope we can resolve this.

Author:  luke [ Tue Jul 26, 2011 7:58 am ]
Post subject:  Re: FreeBSD Client and Server on same box

Sounds good.
Also most of the stuff you have in Features.ini are not necessary. I think you only need HostIPType to disable IPv6 and NicInterfaceName to help nrservice locate NIC.

Author:  PSY0NIC [ Tue Jul 26, 2011 8:01 am ]
Post subject:  Re: FreeBSD Client and Server on same box

Yea, I tried all variations even one option at a time in case i was over configuring. However I had to recompile the kernel without IPv6 in it to get the server portion working but that's another :D matter as it does work after doing that.

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