Community


All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: FreeBSD server - Windows client connects - local not
PostPosted: Wed Jan 29, 2014 9:28 am 
Offline

Joined: Wed Jan 29, 2014 9:21 am
Posts: 10
I have a VPS with FreeBSD.
On it I installed neorouter server.

I installed a windows client on my laptop and I am able to connect.

Now I want my FreeBSD server to be reachable by my windows client.
So I installed FreeBSD neorouter client on FreeBSD, but when I connect it doesn't work. Even not with the same IP + port + credentials as I used for the windows client. I also tried using "localhost" or "127.0.0.1", but both didn't work either.

I use non-standard port 54373.
So on my windows client I connect with domain: 111.222.333.444:54373


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Wed Jan 29, 2014 2:11 pm 
Offline

Joined: Sun Nov 16, 2008 6:41 am
Posts: 1868
Hi fisherpas,

Please check :
1. is the NR client service running?
2. Any firewall settings on your freebsd?

Thanks,
KevinZ - NeoRouter team


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Wed Jan 29, 2014 2:20 pm 
Offline

Joined: Wed Jan 29, 2014 9:21 am
Posts: 10
When I try to start nrservice I get the following error:

"nrservice failed to start. Client service failed to load settings."

I already totally disabled IPFW, so this must be the problem.


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Wed Jan 29, 2014 2:26 pm 
Offline

Joined: Wed Jan 29, 2014 9:21 am
Posts: 10
viewtopic.php?f=8&t=4347

I see in this topic that it searches for the wrong adapter name.
The topic dates from 2010. Is it already possible now to set the adapter name in some config file, so nrservice searches for that adapter name?


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Wed Jan 29, 2014 2:55 pm 
Offline

Joined: Wed Jan 29, 2014 9:21 am
Posts: 10
https://forums.freebsd.org/viewtopic.php?&t=2540
http://sysadmin.carlusgg.com/?p=225

Ok I renamed my adapter to "eth0".

/etc/rc.conf:
#ifconfig_vtnet0="DHCP"
ifconfig_vtnet0_name="eth0"
ifconfig_eth0="DHCP"

When I try to start nrservice I still get the error:
"nrservice failed to start. Client service failed to load settings."


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Wed Jan 29, 2014 3:25 pm 
Offline

Joined: Wed Jan 29, 2014 9:21 am
Posts: 10
Contents nrservice_19700101_005959.log:

1969-12-31 23:59:59|01483|34389128192|******************************************^M
1969-12-31 23:59:59|01483|34389128192| TraceLog Starts ^M
1969-12-31 23:59:59|01483|34389128192|rico^M
1969-12-31 23:59:59|01483|34389128192|^M
1969-12-31 23:59:59|01483|34389128192|2.1.1.4300^M
1969-12-31 23:59:59|01483|34389128192|******************************************^M
1969-12-31 23:59:59|01483|34389128192| |+[HRESULT CServiceInstance::Initialize()]^M
1969-12-31 23:59:59|01483|34389128192| | [static HRESULT COpenSSLLockManager::ThreadingSetup()]^M
1969-12-31 23:59:59|01483|34389128192| | +[static HRESULT CPFManager::GlobalInitialize()]^M
1969-12-31 23:59:59|01483|34389128192| | -[static HRESULT CPFManager::GlobalInitialize()](hr=0x0)^M
1969-12-31 23:59:59|01483|34389128192| | +[HRESULT IHostDevice_GlobalInitialize()]^M
1969-12-31 23:59:59|01483|34389128192| | -[HRESULT IHostDevice_GlobalInitialize()](hr=0x0)^M
1969-12-31 23:59:59|01483|34389128192| |-[HRESULT CServiceInstance::Initialize()](hr=0x0)^M
1969-12-31 23:59:59|01483|34389128192| |+[HRESULT CServiceInstance::Start()]^M
1969-12-31 23:59:59|01483|34389128192|I| Load config file failed^M
1969-12-31 23:59:59|01483|34389128192|T| ifconfig -a | grep "BROADCAST,RUNNING,SIMPLEX,MULTICAST" | cut -c 1-2^M
1969-12-31 23:59:59|01483|34389128192|T| Primary Network Adapter: et^M
1969-12-31 23:59:59|01483|34389128192|T| HDInfoModule::GetHardwareId failed^M
1969-12-31 23:59:59|01483|34389128192| | +[void CServiceInstance::Stop()]^M
1969-12-31 23:59:59|01483|34389128192| | -[void CServiceInstance::Stop()]^M
1969-12-31 23:59:59|01483|34389128192| |-[HRESULT CServiceInstance::Start()](hr=0x80810002)^M
1969-12-31 23:59:59|01483|34389128192|T|nrservice failed to start due to error 0x80810002.^M
1969-12-31 23:59:59|01483|34389128192| |+[void CServiceInstance::Stop()]^M
1969-12-31 23:59:59|01483|34389128192| |-[void CServiceInstance::Stop()]^M
1969-12-31 23:59:59|01483|34389128192| |+[void CServiceInstance::Uninitialize()]^M
1969-12-31 23:59:59|01483|34389128192| | +[CHeartBeatGlobalTimerQueue::CHeartBeatGlobalTimerQueue()]^M
1969-12-31 23:59:59|01483|34389128192| | -[CHeartBeatGlobalTimerQueue::CHeartBeatGlobalTimerQueue()]^M
1969-12-31 23:59:59|01483|34389128192| | +[virtual CHeartBeatGlobalTimerQueue::~CHeartBeatGlobalTimerQueue()]^M
1969-12-31 23:59:59|01483|34389128192| | -[virtual CHeartBeatGlobalTimerQueue::~CHeartBeatGlobalTimerQueue()]^M
1969-12-31 23:59:59|01483|34389128192| | [static HRESULT COpenSSLLockManager::ThreadingCleanup()]^M
1969-12-31 23:59:59|01483|34389128192| |-[void CServiceInstance::Uninitialize()]^M
1969-12-31 23:59:59|01483|34389128192|******************************************^M
1969-12-31 23:59:59|01483|34389128192| TraceLog Stops ^M
1969-12-31 23:59:59|01483|34389128192|rico^M
1969-12-31 23:59:59|01483|34389128192|^M
1969-12-31 23:59:59|01483|34389128192|******************************************


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Wed Jan 29, 2014 3:34 pm 
Offline

Joined: Wed Jan 29, 2014 9:21 am
Posts: 10
root@rico:/usr/local/ZebraNetworkSystems/NeoRouter # ifconfig -a

eth0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE>
ether 11:22:33:44:55:66
inet 111.222.333.444 netmask 0xffffff00 broadcast 111.222.333.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet 1000baseT <full-duplex>
status: active

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

tap0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 22:33:44:55:66:77
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier


(Edit: I changed the IP adresses to fake ones)


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Thu Jan 30, 2014 9:44 am 
Offline

Joined: Sun Nov 16, 2008 6:41 am
Posts: 1868
Hi fisherpas,

The error indicates NR client service does not get the MAC address of your network adapter.

Generally on FreeBSD, the default adapter would be "ed", "le" and so on. It may be different on different virtual machine. Since you change it to "eth", it just takes "et" and try to get et0, et1... Obviously it's wrong.

Actually NeoRouter can handle any adapter name by setting up the Feature.ini file.
In your case, you may want to create a Feature.ini file under /usr/local/ZebraNetworkSystems/NeoRouter/ on your machine and put the following lines in it. Then restart NR client service.

[Default]
NicInterfaceName=eth

For more information, please refer to user manual or wiki http://www.neorouter.com/wiki/index.php ... ationFiles

Another approach is you change the adapter name to "ed" or any other two characters name and it would be fine.

Let us know if you still have problem.


Thanks,
KevinZ -NeoRouter team


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Thu Jan 30, 2014 7:04 pm 
Offline

Joined: Wed Jan 29, 2014 9:21 am
Posts: 10
Thanks Kevinz! I have been able to start nrservice and connect nrclientcmd.
When I restart freebsd it logs back in at the start of freebsd.

Now I got another problem. In IPFW I wrote a rule to allow all traffic over tap0 (back and forth)
I can succesfully connect to my samba share from my windows client with the ip freebsd gets from neorouter (10.0.0.4), but when I use the share, neorouter client on freebsd loses connection.
When I try to use putty from my windows client to freebsd client the same happens.

I suspect that there are some keep-alive packets being blocked.
When I disable the firewall the connection stays up.
When I log the traffic that gets blocked, I see a udp connection on a random port from my freebsd server to my windows laptop.

Jan 31 00:29:26 rico kernel: ipfw: 65000 Deny UDP 111.222.333.444:21880 555.666.777.888:62892 out via eth0

(111.222.333.444 = freebsd server)
(555.666.777.888 = windows laptop)

I already tried allowing all traffic from my windows laptop to the freebsd server and viceversa. But that didn't work.

Are there some ports I could open on my freebsd server for this? And could I also let this traffic go through the tap0 tunnel, instead of going through eth0.

Extra question, when I connect to a samba share in windows using the neorouter ip, the traffic gets encrypted, right?


Top
 Profile  
 
 Post subject: Re: FreeBSD server - Windows client connects - local not
PostPosted: Fri Jan 31, 2014 11:57 am 
Offline

Joined: Sun Nov 16, 2008 6:41 am
Posts: 1868
Hi fisherpas,

You should allow all traffic pass through NeoRouter adapter tap0. You can use NeoRouter built-in firewall (NR Pro/Mesh) to control the ports on that machine.This is how we design it. All packets through the NeoRouter adapter are from the machines in the NeoRouter VLAN, nothing else from physical network.

However, if you use NR Free, you may want to control the firewall settings for tap0 specifically.



Thanks,
KevinZ - NeoRouter team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron