Coder Social home page Coder Social logo

vxlan_tool's Introduction

vxlan_tool

VXLAN Tool

This was started with a copy of https://github.com/opendaylight/sfc/blob/master/sfc-test/nsh-tools/vxlan_tool.py written by Yi Yang and Reinaldo Penno

This code was modified to

  • run with Python 2.7
  • swap the IP SA and DA when forwarding.
  • Work for either UDP port 4790 or 6633
  • Don't forward NSH frames unless service index is > 1
  • Added verbose option to turn off prints when in forward mode

Options:

  • -i: Interface to receive, and optionally send packets on
  • -d: Mode: 'dump' or 'forward'. Default is dump.
  • -v: Verbose: 'on' or 'off'. Default is 'on', and 'off' only works in 'forward' mode.

Example Use:

sudo python vxlan_tool.py -i 'eth1' -d 'forward' -v 'off'

vxlan_tool uses a raw socket to recieve and send packets. Even though vxlan_tool is handling the packets, the host will sent an ICMP unreachable message because it doesn't know that anything is listening on the UDP ports.

vxlan_tool's People

Contributors

anfredette avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vxlan_tool's Issues

The vxlan tool sent back SSH traffic received

If I connected to the VM using SSH and run the tool with "-i eth0","-d forward" and "-v on", I found it Send many packets with no end. That means it send back all SSH TCP packets.

So how to solve the issue ? I used it on Ubuntu VM.

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.