Giter VIP home page Giter VIP logo

openwrt-n2n's Introduction

openwrt-n2n

Fork of MuJJus' openwrt-n2n package that doesn't break compatibility with standard N2N networks

Build

Example for ar71xx and trunk.

wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_musl-1.1.11.Linux-x86_64.tar.bz2
tar jxf OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_musl-1.1.11.Linux-x86_64.tar.bz2
cd OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_musl-1.1.11.Linux-x86_64/package
git clone https://github.com/MuJJus/openwrt-n2n n2n
cd ..
make menuconfig # (selected Network -> VPN -> n2n-edge and n2n-supernode)
make package/n2n/compile V=s

Usage

The n2n protocol options:

Name Type Required Default Description
server string yes (none) Supernode server
port int yes (none) Supernode port
server2 string no (none) Supernode server of slave
port2 int no (none) Supernode port of slave
community string yes (none) N2N community
key string no (none) The key of the community
mode string yes (none) For dhcp or static
ipaddr string no (none) IPv4 Address of the interface
netmask string no (none) Netmask of the interface
gateway string no (none) Gateway of the interface
ip6addr string no (none) IPv6 Address of the interface
ip6prefixlen int no (none) IPv6 Prefix Length of the interface
ip6gw string no (none) IPv6 Gateway of the interface
macaddr string no random MAC Address
mtu int no 1440 Maximum Transmit Unit
forwarding boolean no false Enable packet forwarding through n2n community
dynamic boolean no false Periodically resolve supernode IP
localport int no random Fixed local UDP port
mgmtport int no (none) Management UDP Port (for multiple edges on a machine)
multicast boolean no false Accept multicast MAC addresses
verbose boolean no false Make more verbose

For supernode

# vi /etc/config/n2n
config supernode
        option enable '1'
        option port '80'

# /etc/init.d/n2n start

LuCI

openwrt-n2n's People

Contributors

mchsk avatar mujjus avatar romanhargrave avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.