Active Topics

 



Notices


Reply
Thread Tools
Posts: 458 | Thanked: 783 times | Joined on Jan 2010 @ France
#1
Hi all,

Here is my first attempt to package the latest version of n2n :

n2n :

n2n is a layer-two peer-to-peer virtual private network (VPN) which allows users to exploit features typical of P2P applications at network instead of application level. This means that users can gain native IP visibility (e.g. two PCs belonging to the same n2n network can ping each other) and be reachable with the same network IP address regardless of the network where they currently belong. In a nutshell, as OpenVPN moved SSL from application (e.g. used to implement the https protocol) to network protocol, n2n moves P2P from application to network level.

Overview :


An n2n is an encrypted layer two private network based on a P2P protocol.
Encryption is performed on edge nodes using open protocols with user-defined encryption keys: you control your security without delegating it to companies as it happens with Skype or Hamachi.
Each n2n user can simultaneously belong to multiple networks (a.k.a. communities).
Ability to cross NAT and firewalls in the reverse traffic direction (i.e. from outside to inside) so that n2n nodes are reachable even if running on a private network. Firewalls no longer are an obstacle to direct communications at IP level.
n2n networks are not meant to be self-contained, but it is possible to route traffic across n2n and non-n2n networks.


Homepage :

http://www.ntop.org/products/n2n/

Download packages from extra-devel :

Activate all repositories following this tutorial : Repositories Activation

Then, as usual, as root, install with :

Code:
-bash-2.05b# apt-get install n2n && edge --help && supernode --help
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  n2n-edge n2n-supernode
Suggested packages:
  uml-utilities
The following NEW packages will be installed:
  n2n n2n-edge n2n-supernode
0 upgraded, 3 newly installed, 0 to remove and 19 not upgraded.
Need to get 0B/56,6kB of archives.
After this operation, 270kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package n2n-edge.
(Reading database ... 47549 files and directories currently installed.)
Unpacking n2n-edge (from .../n2n-edge_2.1.0-2maemo0_armel.deb) ...
Selecting previously deselected package n2n-supernode.
Unpacking n2n-supernode (from .../n2n-supernode_2.1.0-2maemo0_armel.deb) ...
Selecting previously deselected package n2n.
Unpacking n2n (from .../n2n_2.1.0-2maemo0_armel.deb) ...
Setting up n2n-edge (2.1.0-2maemo0) ...
Setting up n2n-supernode (2.1.0-2maemo0) ...
Setting up n2n (2.1.0-2maemo0) ...
Welcome to n2n v.2.1.0 for 
Built on Dec  6 2012 23:48:57
Copyright 2007-09 - http://www.ntop.org

edge -d <tun device> -a [static:|dhcp:]<tun IP address> -c <community> [-k <encrypt key> | -K <key file>] [-s <netmask>] [-u <uid> -g <gid>][-f][-m <MAC address>]
-l <supernode host:port> [-p <local port>] [-M <mtu>] [-r] [-E] [-v] [-t <mgmt port>] [-b] [-h]

-d <tun device>          | tun device name
-a <mode:address>        | Set interface address. For DHCP use '-r -a dhcp:0.0.0.0'
-c <community>           | n2n community name the edge belongs to.
-k <encrypt key>         | Encryption key (ASCII) - also N2N_KEY=<encrypt key>. Not with -K.
-K <key file>            | Specify a key schedule file to load. Not with -k.
-s <netmask>             | Edge interface netmask in dotted decimal notation (255.255.255.0).
-l <supernode host:port> | Supernode IP:port
-b                       | Periodically resolve supernode IP
                         : (when supernodes are running on dynamic IPs)
-p <local port>          | Fixed local UDP port.
-u <UID>                 | User ID (numeric) to use when privileges are dropped.
-g <GID>                 | Group ID (numeric) to use when privileges are dropped.
-f                       | Do not fork and run as a daemon; rather run in foreground.
-m <MAC address>         | Fix MAC address for the TAP interface (otherwise it may be random)
                         : eg. -m 01:02:03:04:05:06
-M <mtu>                 | Specify n2n MTU of edge interface (default 1400).
-r                       | Enable packet forwarding through n2n community.
-E                       | Accept multicast MAC addresses (default=drop).
-v                       | Make more verbose. Repeat as required.
-t                       | Management UDP Port (for multiple edges on a machine).

Environment variables:
  N2N_KEY                | Encryption key (ASCII). Not with -K or -k.
supernode usage
-l <lport>	Set UDP main listen port to <lport>
-f        	Run in foreground.
-v        	Increase verbosity. Can be used multiple times.
-h        	This help message.

-bash-2.05b#

After successful installation, just use it !!!


Hope you like it ...

A++

Last edited by colin.stephane; 2012-12-06 at 22:08. Reason: Typo's ...
 

The Following 20 Users Say Thank You to colin.stephane For This Useful Post:
Posts: 61 | Thanked: 4 times | Joined on Feb 2012
#2
noob question.say i have ip 1.2.3 on network 'ingo'.whats d command to issue.
 
Posts: 458 | Thanked: 783 times | Joined on Jan 2010 @ France
#3
Originally Posted by octave View Post
noob question.say i have ip 1.2.3 on network 'ingo'.whats d command to issue.
Have you ever read Homepage ???

A++
 
Posts: 61 | Thanked: 4 times | Joined on Feb 2012
#4
Originally Posted by colin.stephane View Post
Have you ever read Homepage ???

A++
no.didnt see.sorry.will gv it a try
 
Posts: 61 | Thanked: 4 times | Joined on Feb 2012
#5
am getting 100% packet loss.what am i duin wrong.
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#6
Originally Posted by octave View Post
am getting 100% packet loss.what am i duin wrong.
First explain what you've done. Then we can try to figure out what you're doing wrong.
 
Posts: 61 | Thanked: 4 times | Joined on Feb 2012
#7
Originally Posted by reinob View Post
First explain what you've done. Then we can try to figure out what you're doing wrong.
#edge -d n2n0 -c mynetwork -k encryptme -a 192.168.254.0 -l 127.0.0.0:80
#ping 192.168.254.0
 
Posts: 61 | Thanked: 4 times | Joined on Feb 2012
#8
i really need help on getting this to work.pls anyone
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:08.