Coder Social home page Coder Social logo

natat's Introduction

natat

natat is an abbreviation for nat assert. It's a NAT sniffing tool that you can use to determine your NAT type.

Installation

Go get with:

go get github.com/songjiayang/natat

Usage

  • Testing with Symmetric NAT
$ natat
2019/04/12 16:39:33 start stun server ping...
2019/04/12 16:39:34 stun.l.google.com:19302 mapped: 0.0.0.0:3489 -> 103.90.76.164:35598
2019/04/12 16:39:34 stun1.l.google.com:19302 mapped: 0.0.0.0:3489 -> 45.64.52.117:6078
2019/04/12 16:39:34 start NAT type assert...
2019/04/12 16:39:34 It's Symmetric NAT
  • Testing with Cone NAT
$ natat
2019/04/12 20:42:47 start stun server ping...
2019/04/12 20:42:48 stun.l.google.com:19302 mapped: 0.0.0.0:3489 -> 101.84.52.37:26262
2019/04/12 20:42:48 stun1.l.google.com:19302 mapped: 0.0.0.0:3489 -> 101.84.52.37:26262
2019/04/12 20:42:48 start NAT type assert...
2019/04/12 20:42:48 It's Cone NAT
  • More configuration:
$ natat -h
Usage of natat:
  -bind string
    	ping with local address bind. (default "0.0.0.0:3489")
  -studs string
    	stun servers for ping. (default "stun.l.google.com:19302,stun1.l.google.com:19302")

Supported NAT Type

  • Full Cone
  • Restricted Cone
  • Port Restricted Cone
  • Symmetric

Thanks

  • RFC 3489

  • stun servers:

    • stun.l.google.com:19302
    • stun1.l.google.com:19302
    • stun2.l.google.com:19302
    • stun3.l.google.com:19302
    • stun4.l.google.com:19302
    • more

natat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

simon4545

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.