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

Neorouter - nrtap Link beat lost
http://www.neorouter.com/forum/viewtopic.php?f=3&t=5862
Page 1 of 1

Author:  piman [ Wed Mar 16, 2016 11:25 pm ]
Post subject:  Neorouter - nrtap Link beat lost

Hi,

Love Neorouter software, makes my work easier.

My setup is as follows:

NeoServer: Raspberry Pi 2
Clients : Windows and Raspberry PIs (1 and 2)

Typically at a remote site I have a Raspberry Pi running Neorouter Client which is connected via WIFI to a 3/4g Modem. It is also connected LAN on the copper port.

The Raspberry Pi Neorouter Client have the following port forwarding rules.

Code:
iptables -I FORWARD -d 10.200.13.6 -m comment --comment "Accept to forward rdp traffic" -m tcp -p tcp --dport 3389 -j ACCEPT
iptables -I FORWARD -m comment --comment "accept to forward rdp returned traffic" -s 10.200.13.6 -m tcp -p tcp --sport 3389 -j ACCEPT
iptables -t nat -I PREROUTING -m tcp -p tcp --dport 3389 -m comment --comment "redirect pkts to HMI" -j DNAT --to-destination 10.200.13.6:3389
iptables -t nat -I POSTROUTING -m comment --comment "NAT the src IP" -d 10.200.13.6 -o eth0 -j MASQUERADE

The above rules are used to forward Remote Desktop traffic to the Windows 2008 server on the LAN.

I can connect to the Windows Server using remote desktop, however it keeps dropping the connection. Especially when coping files to/from the Remote Windows 2008 Server.

I get the following error in the Client's syslog:

Mar 17 04:04:34 raspberrypi ifplugd(nrtap)[2542]: Link beat lost.
Mar 17 04:04:34 raspberrypi ifplugd(nrtap)[2542]: Exiting.
Mar 17 04:04:35 raspberrypi ntpd[2158]: Deleting interface #4 nrtap, 10.1.1.14#123, interface stats: received=0, sent=0, dropped=0, active_time=1455 secs
Mar 17 04:04:35 raspberrypi ntpd[2158]: peers refreshed
Mar 17 04:04:45 raspberrypi ifplugd(nrtap)[2863]: ifplugd 0.28 initializing.
Mar 17 04:04:45 raspberrypi ifplugd(nrtap)[2863]: Using interface nrtap/EA:EA:08:94:43:A7 with driver <tun> (version: 1.6)
Mar 17 04:04:45 raspberrypi ifplugd(nrtap)[2863]: Using detection mode: SIOCETHTOOL
Mar 17 04:04:45 raspberrypi ifplugd(nrtap)[2863]: Initialization complete, link beat detected.
Mar 17 04:04:45 raspberrypi ifplugd(nrtap)[2863]: Executing '/etc/ifplugd/ifplugd.action nrtap up'.
Mar 17 04:04:45 raspberrypi ifplugd(nrtap)[2863]: client: Ignoring unknown interface nrtap=nrtap.
Mar 17 04:04:45 raspberrypi ifplugd(nrtap)[2863]: Program executed successfully.
Mar 17 04:04:46 raspberrypi ntpd[2158]: Listen normally on 5 nrtap 10.1.1.14 UDP 123
Mar 17 04:04:46 raspberrypi ntpd[2158]: peers refreshed

Any help regarding this issue would be greatly appreciated

Thanks

Author:  kevinz [ Thu Mar 17, 2016 2:50 pm ]
Post subject:  Re: Neorouter - nrtap Link beat lost

Hi piman,

Would you stop the firewall on the Rpi and test it? Also make sure that NR DHCP IP range doesn't overlap with the physical network. Seem like NR is 10.0.0.0/255.255.255.0 and physical is 10.200.x.x/?.?.?.? . Please make sure they are not conflicted each other.

Thanks,
KevinZ - NeoRouter team

Author:  piman [ Thu Mar 17, 2016 8:31 pm ]
Post subject:  Re: Neorouter - nrtap Link beat lost

Hi KevinZ,

Thanks for the prompt reply. Much appropriated.

The NR DHCP range is 10.1.1.0/24 and the LAN is 10.200.10.0/24 so this shouldn't be a problem.

I've disabled the firewall in the Rpi (Client) by flushing the iptables and rebooting the device. I then copied files to the Rpi (Client) using SFTP, but it still keeps dropping the link.

I've monitored the router (DD-WRT) to which the NeoServer is connected to. When the link is dropped, I get dropped messages in the router(See image file). The link is dropped when approx 50% of the 8MB file is copied.

Should I be adding any additional firewall rules to the router? At the moment only port forwarding is allowed for udp and tcp connection to the neoserver ip address.

Thanks and Regards,

piman

Attachments:
File comment: Dropped Messages
Dropped1.png
Dropped1.png [ 299.58 KiB | Viewed 7360 times ]

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