Coder Social home page Coder Social logo

xiaosuo / glog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/glog

1.0 1.0 1.0 1.68 MB

C++ implementation of the Google logging module

License: Other

Shell 3.27% Makefile 2.23% C++ 72.53% C 7.97% CMake 7.64% M4 5.24% Python 1.11%

glog'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.

glog's People

Contributors

aesophor avatar andyleejordan avatar artemdinaburg avatar bsilver8192 avatar dariuszostolski avatar drigz avatar durswd avatar ezegomez avatar ffontaine avatar hlsyounes avatar jray272 avatar loop0day avatar mayah avatar mizux avatar neheb avatar neroburner avatar pcc avatar qzmfranklin avatar romange avatar romkatv avatar ruslo avatar sergeyvfx avatar sergiud avatar shinh avatar skeptic-monkey avatar tzik avatar ukai avatar v1bri avatar yoshisatoyanagisawa avatar zhenhuaw-me avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

panda-sheep

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.