Giter Site home page Giter Site logo

liulilittle / skylakenat Goto Github PK

View Code? Open in Web Editor NEW
38.0 4.0 17.0 439 KB

Three-layer Virtual NAT address conversion (experimental sub-project of SupersocksR)

License: GNU General Public License v3.0

C++ 12.76% C 16.93% C# 70.31%
tun csharp nat icmp tcp udp pcap win32 ipv4 proxy

skylakenat's Introduction

SkylakeNAT


Build SkylakeNAT-cli
-------------------------------------------------------------------------------------
DevTools choosable Visual C/C++ 2015, 2017, 2019...(IA32-x86)

vcpkg (https://github.com/Microsoft/vcpkg/)
References:
1、boost and boost::asio-x86
2、openssl-x86
3、TAP-Windows or TAP-Windows6 (openvpn)

Build SupersocksR * (experiment)

Nuget
References: >= Microsoft .NET Framework 4.5、Microsoft Visual C++ 2010 x86 Runtime(CRT)
1、Pcap.Net
2、OpenSSL.Net
3、WinPcap or WinPcap for Win10

Route

1、The default gateway between the vNAT and the TAP device is 10.8.0.0
2、If you need to run all (TCP/IP, ICMP, UDP/IP) protocol data through SkylakeNAT then you need to configure the following route (CMD/cli interface).

WIN + R (runas administrator) -> cmd


route add 0.0.0.0 mask 0.0.0.0 10.8.0.0
route add 0.0.0.0 mask 128.0.0.0 10.8.0.0
route add 128.0.0.0 mask 128.0.0.0 10.8.0.0

WinAPI operation route can be referred to https://github.com/liulilittle/SkylakeNAT/blob/master/SupersocksR/Net/Routing/RouteTableManager.cs

3、If you're only going to SkylakeNAT for an IP or IP segment, you can configure SkylakeNAT as follows
    1、route add 172.8.8.8 mask 255.255.255.255 10.8.0.0 (172.8.8.8 ~ 172.8.8.8)
    2、route add 198.18.0.0 mask 255.254.0.0 10.8.0.0 (198.18.0.0 ~ 198.19.255.255)

Usage

Must run the program as Administrator
Specify that the IP that the SupersocksR listens on must be an "Ethernet physical network card" (typically a RTL[Realtek] network card) that can access input or output traffic

1:SupersocksR 192.168.0.104 7521 yy523o! 25
2:SkylakeNAT --server=192.168.0.104 --port=7521 --key=yy520o! --subtract=25 --max-concurrent=8

skylakenat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.