All Projects → KCCat → DROP-ISP-TCP-Hijacking

KCCat / DROP-ISP-TCP-Hijacking

Licence: GPL-3.0 license
过滤运营商的劫持包

Labels

Projects that are alternatives of or similar to DROP-ISP-TCP-Hijacking

Mignis
Mignis is a semantic based tool for firewall configuration.
Stars: ✭ 43 (-44.16%)
Mutual labels:  iptables
hev-socks5-tproxy
A simple, lightweight socks5 transparent proxy for Linux. (IPv4/IPv6/TCP/UDP over TCP)
Stars: ✭ 209 (+171.43%)
Mutual labels:  iptables
ipt xor
iptables xor module
Stars: ✭ 15 (-80.52%)
Mutual labels:  iptables
iptables-uwu
iptables target that uwu's outgoing packets
Stars: ✭ 86 (+11.69%)
Mutual labels:  iptables
ddos-mitigation
Tips to mitigate and secure your large-scale server against DDoS attacks.
Stars: ✭ 58 (-24.68%)
Mutual labels:  iptables
nDPI
Open Source Deep Packet Inspection Software Toolkit
Stars: ✭ 92 (+19.48%)
Mutual labels:  iptables
Iptables Boilerplate
rock solid default firewall-rules for webhosts
Stars: ✭ 249 (+223.38%)
Mutual labels:  iptables
ipset-netgear-r7000-dd-wrt
Packages and kernel modules for ipset support for the Netgear R7000 running DD-WRT firmware
Stars: ✭ 45 (-41.56%)
Mutual labels:  iptables
blackip
IP Blocklist for Ipset / Squid-Cache
Stars: ✭ 81 (+5.19%)
Mutual labels:  iptables
DrawBridge
Layer 4 Single Packet Authentication Linux kernel module utilizing Netfilter hooks and kernel supported Berkeley Packet Filters (BPF)
Stars: ✭ 81 (+5.19%)
Mutual labels:  iptables
UnboundBL
🛑 DNSBL (adblock) on OPNsense with UnboundBL & Unbound DNS
Stars: ✭ 63 (-18.18%)
Mutual labels:  iptables
go-ipset
🔥 Go bindings for the IPtables ipset http://ipset.netfilter.org userspace utility
Stars: ✭ 110 (+42.86%)
Mutual labels:  iptables
Linux-System-Management-Scripts-Tricks
Linux Security & Linux Hardening & Linux Management & Linux Configuration
Stars: ✭ 70 (-9.09%)
Mutual labels:  iptables
dog
A firewall management system.
Stars: ✭ 67 (-12.99%)
Mutual labels:  iptables
awall
[MIRROR] Alpine firewall configuration tool
Stars: ✭ 37 (-51.95%)
Mutual labels:  iptables
k8s-custom-iptables
How to add custom iptables rules to a Kubernetes cluster
Stars: ✭ 52 (-32.47%)
Mutual labels:  iptables
docker-nfqueue-scapy
Docker container for intercepting packets with scapy from a netfilter queue (nfqueue)
Stars: ✭ 78 (+1.3%)
Mutual labels:  iptables
awesome-sysadmin-tools
Collection of links and resources for sysadmins and Drupal lovers
Stars: ✭ 17 (-77.92%)
Mutual labels:  iptables
webfilter-ng
Transparent HTTP/HTTPS/TLS web filter
Stars: ✭ 29 (-62.34%)
Mutual labels:  iptables
droplan
Manage iptable rules for the private interface on DigitalOcean droplets
Stars: ✭ 69 (-10.39%)
Mutual labels:  iptables

DROP-ISP-TCP-Hijacking

使用 iptables 丢弃运营商的TCP/IP连接劫持包.
注意:目前仍在实验阶段,无法保证不会对正常的连接产生破坏.

使用方式  

  • 保存iptables-save-rule.conf到本地, 修改{you WAN}为你的wan介面.ppp0  
  • 运行iptables-restore来恢复iptables规则.
    注意 :此操作会重置iptables所有表.

##需求

  • Module bpf
  • Module u32
  • Module connmark
  • Module mark
  • connmark的标志位需要0x7FF长度来记录MSS值,还有0xFF来记录TTL值.默认记录位置为0x07FF00FF.
  • mark的标志位需要0x1长度.默认记录位置为0x00000001.

##工作原理

  • 对每条TCP连接在握手时的SYN+ACK包的TTL值和MSS协商值.
  • 并使用TCP flags标志为ACK|ACK&&PSH,且TCP Data长度为0或长度为MSS协商值的包对保存的TTL值更新.
  • 其余包在不符合TTL值时将被DROP.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].