All Projects → faicker → ipt_xor

faicker / ipt_xor

Licence: MIT license
iptables xor module

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to ipt xor

Iptables Boilerplate
rock solid default firewall-rules for webhosts
Stars: ✭ 249 (+1560%)
Mutual labels:  iptables
go-ipset
🔥 Go bindings for the IPtables ipset http://ipset.netfilter.org userspace utility
Stars: ✭ 110 (+633.33%)
Mutual labels:  iptables
nDPI
Open Source Deep Packet Inspection Software Toolkit
Stars: ✭ 92 (+513.33%)
Mutual labels:  iptables
Mignis
Mignis is a semantic based tool for firewall configuration.
Stars: ✭ 43 (+186.67%)
Mutual labels:  iptables
xt NAT
Full Cone NAT module for Linux iptables
Stars: ✭ 65 (+333.33%)
Mutual labels:  iptables
ddos-mitigation
Tips to mitigate and secure your large-scale server against DDoS attacks.
Stars: ✭ 58 (+286.67%)
Mutual labels:  iptables
Polycube
eBPF/XDP-based software framework for fast network services running in the Linux kernel.
Stars: ✭ 217 (+1346.67%)
Mutual labels:  iptables
droplan
Manage iptable rules for the private interface on DigitalOcean droplets
Stars: ✭ 69 (+360%)
Mutual labels:  iptables
oxorany
obfuscated any constant encryption in compile time on any platform
Stars: ✭ 155 (+933.33%)
Mutual labels:  xor
docker-nfqueue-scapy
Docker container for intercepting packets with scapy from a netfilter queue (nfqueue)
Stars: ✭ 78 (+420%)
Mutual labels:  iptables
dog
A firewall management system.
Stars: ✭ 67 (+346.67%)
Mutual labels:  iptables
UnboundBL
🛑 DNSBL (adblock) on OPNsense with UnboundBL & Unbound DNS
Stars: ✭ 63 (+320%)
Mutual labels:  iptables
blackip
IP Blocklist for Ipset / Squid-Cache
Stars: ✭ 81 (+440%)
Mutual labels:  iptables
k8s-custom-iptables
How to add custom iptables rules to a Kubernetes cluster
Stars: ✭ 52 (+246.67%)
Mutual labels:  iptables
Linux-System-Management-Scripts-Tricks
Linux Security & Linux Hardening & Linux Management & Linux Configuration
Stars: ✭ 70 (+366.67%)
Mutual labels:  iptables
Zjl
ZJL 免流防跳脚本
Stars: ✭ 222 (+1380%)
Mutual labels:  iptables
xor
Move to: https://github.com/templexxx/xorsimd
Stars: ✭ 27 (+80%)
Mutual labels:  xor
DrawBridge
Layer 4 Single Packet Authentication Linux kernel module utilizing Netfilter hooks and kernel supported Berkeley Packet Filters (BPF)
Stars: ✭ 81 (+440%)
Mutual labels:  iptables
lua-simple-encrypt
Lua simple XOR encrypt
Stars: ✭ 60 (+300%)
Mutual labels:  xor
hev-socks5-tproxy
A simple, lightweight socks5 transparent proxy for Linux. (IPv4/IPv6/TCP/UDP over TCP)
Stars: ✭ 209 (+1293.33%)
Mutual labels:  iptables

iptables xor module

The XOR target enables the user to encrypt TCP and UDP traffic using a very simple xor encryption.
Xor is its own inverse. That is, to undo xor, the same algorithm is applied, so the same action can be used for encoding and decoding.
warning: This is not a real encryption.

Install

  1. first install kernel-devel, iptables-devel and etc.
  2. To compile the userpace so,
cd userspace;make libxt_XOR.so
cp libxt_XOR.so /lib64/xtables/  # debian/ubuntu is /usr/lib/x86_64-linux-gnu/xtables/
  1. To compile the kernel module,
cd kernel;make
insmod xt_XOR.ko

Usage

XOR takes one mandatory parameter.

--key key-value where key-value is a byte used to xor with packet payloads.

--keys '1234' where 1234 is a string. Warning, don't use this with tcp because tcp is a stream.

Example

To use this target between hosts 1.2.3.4 and 1.2.3.5.

(on host A, 1.2.3.4)

iptables -t mangle -A OUTPUT -d 1.2.3.5 -p tcp --dport 1234 -j XOR --key 0x61
iptables -t mangle -A INPUT -s 1.2.3.5 -p tcp --sport 1234 -j XOR --key 0x61

(on host B, 1.2.3.5)

iptables -t mangle -A OUTPUT -d 1.2.3.4 -p tcp --sport 1234 -j XOR --key 0x61
iptables -t mangle -A INPUT -s 1.2.3.4 -p tcp --dport 1234 -j XOR --key 0x61

Notice

  • Support kernel version >= 2.6.32.
  • Tested on Centos6.5(2.6.32-431.23.3.el6.x86_64), centos7.2(3.10.0-327.22.2.el7.x86_64) and kernel 4.1.0.
  • Tested on Ubuntu18.04(4.15.0-101-generic) and Ubuntu 20.04(5.4.0-29-generic)

License

This project is under the MIT license. See the LICENSE file for the full license text.

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].