n2n内穿透

之前一直使用frp.然后看到frp 有个xtcp.试了一下,家里和公司完全穿透不起来.网上一查,n2n的效果很一些.这里是软件地址ntop n2n

mac os

  1. 需要先安装tuntap
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew cask install  tuntap
  1. 编译安装.由于新版本mac os系统限制.我把Makefile里安装帮助文档和工具部分注释掉了.
install: edge supernode edge.8.gz supernode.1.gz n2n.7.gz
    echo "MANDIR=$(MANDIR)"
    $(MKDIR) $(SBINDIR) $(MAN1DIR) $(MAN7DIR) $(MAN8DIR)
    $(INSTALL_PROG) supernode $(SBINDIR)/
    $(INSTALL_PROG) edge $(SBINDIR)/
    #$(INSTALL_DOC) edge.8.gz $(MAN8DIR)/
    #$(INSTALL_DOC) supernode.1.gz $(MAN1DIR)/
    #$(INSTALL_DOC) n2n.7.gz $(MAN7DIR)/
    #$(MAKE) -C tools install
./autogen.sh
./configure
make

# optionally install
make install
  1. 启动
sudo /usr/local/sbin/edge  proxy/config/edge.conf -f

window

  1. 需要安装Visual Studio.我装的最新的Visual Studio 2019社区版.把C++和Windows SDK都安装上了.
  2. OpenSSL win32
  3. 在Visual Studio调整了编译为winX86.

centos

  1. 最方便.直接看教程安装就行了.安装相关的库之后,执行:
yum erase zeromq3 (Do this once to make sure zeromq3 is not installed)
yum clean all
yum update
yum install pfring-dkms n2disk nprobe ntopng cento
  1. 作为服务启动.
 systemctl start supernode
 systemctl start edge

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.