Coder Social home page Coder Social logo

ip-sla-responder's Introduction

Cisco IP-SLA / Juniper RPM responder

Contents

  1. About
  2. Warnings
  3. Installation
  4. Usage
  5. TODO

Please visit http://cmouse.github.com/ip-sla-responder/ for latest information.

About

This program is intended for Cisco IP-SLA and Juniper PRM measurements. You can configure it to listen on any ethernet interface, and it'll reply to you. It expects all packets to be 802.1q encapsulated, and it works best if you do not configure any vlans into your system. IP and MAC address can be freely chosen, and do not need to be configured on your system. It supports both IPv4 and IPv6 protocols. You can also run it for your own measurement systems by utilizing the UDP ECHO port, it'll reply to you whatever you send there.

Warnings

This software is intended for little endian machines. Do not attempt to use it on any hardware that has big endian byte ordering. It will simply not work.

Note that this software has absolutely no rate limiting. If you put it on a machine, it will reply as fast as possible. It has no DDoS protection or any kind of access lists. You can easily ping someone to death with it. Be careful and use ACLs in front of it.

This version comes with any-ipv4 support, so you can actually make it reply to any IPv4 address. Do not enable on internet facing hosts.

For IPv4 all fragmented packets are silently dropped, and there will be no support for fragments in the future.

For IPv6 all packets that contain any extended headers are silently dropped. If someone makes a feature request, some extended headers might be preserved, but that is highly unlikely.

Installation

To install, run make CC=gcc (or some other compiler, default is cc). This software expects linux 2.6 or better kernel, or kernel with similar facilities. It needs pcap(3) interface on kernel and AF_PACKET. It also requires librt and libpcap.

Usage

The software can run in either routed or connected mode. In routed mode, you are expected to route in some IP via some VLAN. You can disable VLAN support in config file if necessary. In connected mode, you can have one or more vlans configured with same network on the network side, and nothing on linux side. Best if you don't configure any vlans and leave the interface offline, so linux or the nic won't eat up your packets. This is best used if you want to support same IP address on multiple VRFs. You can use up to 4096 different VLANs.

To configure the software, copy and edit responder.conf.sample. Program accepts one parameter, location where to read the file. Default is /etc/responder.conf or whatever you defined in Makefile.

After this, you can point Cisco IP SLA UDP echo, UDP Jitter measurements (udp-jitter), or Juniper RPM icmp-ping(-timestamp) or udp-ping(-timestamp) measurements towards the IP. It'll reply these.

TODO

  • Add more supported types for Cisco
  • Daemonize?
  • Code cleanup and documentation

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.