Coder Social home page Coder Social logo

xiaosuo / libsrtp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cisco/libsrtp

0.0 0.0 0.0 6.22 MB

Library for SRTP (Secure Realtime Transport Protocol)

License: Other

C 91.78% Shell 2.34% Batchfile 0.09% C++ 2.58% Makefile 1.33% M4 1.39% CMake 0.49%

libsrtp's Introduction

ipt_SYNPROXY

It is an implementation of SYNPROXY based on netfilter of Linux. An iptables raw target SYNPROXY is implemented.

In order to use it, you must get the newest Linux kernel source code, and follow the following steps:

cd linux
patch -p1 < path-to-synproxy.diff
/* you need select raw table, ip_conntrack and syncookies */
make && make install modules_install && reboot
cd path-to-synproxy
make
cp libipt_SYNPROXY.so path-to-iptables-shared-module
insmod ipt_SYNPROXY.ko

If there isn't any error in the above steps, congratulations, and you can play with it.

For example, you want to protect the local HTTP server from the SYN-flood attacks:

iptables -t raw -A PREROUTING -p tcp --dport 80 \
	--tcp-flags SYN,ACK,RST,FIN SYN \
	-m conntrack --ctstate INVALID -j SYNPROXY

If you run SYNPROXY on a gateway which does DNAT, you should move the DNAT rules from PREROUTING to OUTPUT chain, because the second SYN to the server is sent locally.

libsrtp's People

Contributors

bernardotorres avatar bifurcation avatar bryonglodencissp avatar coien avatar davidmcgrew avatar escrichov avatar fancycode avatar floppym avatar fluffy avatar guidovranken avatar j4y avatar jaapkeuter avatar jfigus avatar mfroeschl avatar mmdriley avatar nikoli avatar nils-ohlmeier avatar pabuhler avatar paulej avatar rsith71 avatar saghul avatar sobomax avatar tarask1n avatar teerapap avatar thisisg avatar traud avatar traviscross avatar tvsriram avatar ulfolsson avatar vopatek avatar

Watchers

 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.