Coder Social home page Coder Social logo

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.

Changli Gao's Projects

qqwry icon qqwry

A Ruby interface to QQWry IP database.

qvfile icon qvfile

Combine file segments split by QVod into a single one.

rbahocorasick icon rbahocorasick

A Ruby implementation of the Aho–Corasick string matching algorithm

rbnl icon rbnl

A Linux Netlink library in pure Ruby

redis icon redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, HyperLogLogs, Bitmaps.

rocksdb icon rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.

snoopy icon snoopy

A lightweight bypass censorship system for HTTP

state-threads icon state-threads

Fork from http://sourceforge.net/projects/state-threads, patched for SRS.

tsdc icon tsdc

A time series data cache.

twemproxy icon twemproxy

A fast, light-weight proxy for memcached and redis

udp_splice icon udp_splice

Splice two UDP sockets in kernel space to get the best performance

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.