Server · tips and tricks

NeoRouter VPN: Tips and Tricks

NeoRouter Client: Configure proxy [Linux]

If the client host is behind a web proxy, you need to set a proxy server configuration:

sudo nrclientcmd -setproxy

Follow the steps to configure the proxy (sample output):

NeoRouter Free [Version 2.3.1.4360]
Copyright (C) 2015 NeoRouter Inc.

Please choose from the following proxy option list:
1 No Proxy
2 Manual proxy configuration
[1]:

To set proxy without autentication:

sudo nrclientcmd -setproxy http,192.168.0.1,80,noauth

Note: Change 192.168.0.1 and 80, respectively, to your proxy IP server and port.

After running the command above, the configuration Proxy.xml file is generated under the folder “/usr/local/ZebraNetworkSystems/NeoRouter”.

NeoRouter Client: Configure P2P Connection [Linux]

This option allows user to specify the connection type between this computer and its peers. The default option is UDP.

  1. UDP [Default] – Create a direct peer-to-peear UDP connection.
    This option is recommended for most home users.
  2. TCP – Create a direct peer-to-peear TCP connection.
    If your router or firewall block UDP packets or your network if not stable.
  3. Relay – Relay though server
    Force clients to use server to relay data. Useful when your network is not stable or your router uses special MTU value.

To configure on Linux:

sudo nrclientcmd -setconn

Choose your connection type (sample output):

Please choose from the following option list:
1 Create a direct peer-to-peer UDP connection
2 Create a direct peer-to-peer TCP connection
3 Relay through server
[1]:

NeoRouter Server: Port check

For server ONLY. When you install the NeoRouter Server, you need to make sure a listening port (default port 32976 and TCP protocol) can be access from the Internet. NeoRouter clients do not require any port opened to the Internet.

If you are running the NeoRouter Server in-a-box and put the router on the Internet, you don’t need to do anything.

If you are running a NeoRouter Server on a computer or device behind a NAT, you may need to change the router configuration to either enable the UPnP or set the port forwarding.

You can use the link to verify your open port:

http://www.neorouter.com/checkport.php

NeoRouter Client: Works as Application Mode [Linux]

To disable the autologin (stop client service from autostart) and force it to work only when NeoRouter Client (“nrclient.sh”) is started/running:

Stop the service:

sudo service nrservice.sh stop

Remove the service from autostart:

sudo update-rc.d -f nrservice.sh remove

Edit the file /usr/bin/nrclient.sh:

sudo nano /usr/bin/nrclient.sh

And replace with the contents for this:

#!/bin/bash
sudo /etc/init.d/nrservice.sh start
sleep 1s
java -jar /usr/bin/nrclient.jar
sudo /etc/init.d/nrservice.sh stop
exit 0

Make “nrclient.sh” executable by any user with sudo rights:

sudo visudo

Add this line on the end:

%sudo ALL=NOPASSWD: /usr/bin/nrclient.sh

NeoRouter Client: Reset all Configurations [Linux]

sudo service nrservice.sh stop
sudo rm -rf /usr/local/ZebraNetworkSystems/NeoRouter/*.xml
sudo rm -rf /root/.NeoRouter
rm -rf ~/.NeoRouter

NeoRouter Client: Adding Application Shortcut to Menu [Linux]

Putting the application shortcut in the desktop menu. Works on almost any Linux distro.

Downloading/saving the icon:

sudo wget https://lh3.googleusercontent.com/M3DIBscnqILEvTTgeqTyyn50rPlZhLHK9pxYIyg2qG7cE8Yq7IZvhMaWELYRCT0pVw=w300 -q -O /usr/local/ZebraNetworkSystems/NeoRouter/neorouter.png

Edit the file:

sudo nano /usr/share/applications/nrclient.desktop

And add the contents:

[Desktop Entry]
Name=NeoRouter Network Explorer
Exec=gksudo /usr/bin/nrclient.sh
Icon=/usr/local/ZebraNetworkSystems/NeoRouter/neorouter.png
Type=Application
Categories=Network;Internet;
Terminal=false

Install NeoRouter Server and Client for Windows and Linux

Windows

Follow this steps to install the NeoRouter Server from the official online manual.
Follow this steps to install the NeoRouter Client from the official online manual.

Linux

Follow my own article: NeoRouter VPN: How configure a server and client on Debian based (Ubuntu/Debian/Raspbian)

Some helpful commands and tools for managing [Linux]

Here are a few helpful commands for monitoring and managing your NeoRouter VPN:

NeoRouter Web Console  aka NeoRouter Configuration Explorer (requires user with Admin privileges)
NeoRouter Network Explorer (user with Admin or User privileges – recommend to use browser Chrome)
To access your NeoRouter Linux client: nrclientcmd
To restart NeoRouter Linux client: sudo service nrservice.sh restart
To restart NeoRouter Linux server: sudo service nrserver.sh restart
To set domain: nrserver -setdomain YOUR-VPN-NAME domainpassword
For a list of client devices: sudo nrserver -showcomputers
For a list of existing user accounts: sudo nrserver -showusers
For the settings of your NeoRouter server: sudo nrserver -showsettings
To add a user account: sudo nrserver -adduser username password user
To add admin account: sudo nrserver -adduser username password admin
For a complete list of commands: nrserver -help

Anúncios

Um comentário em “NeoRouter VPN: Tips and Tricks

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s