
Python
1
Вклад в тег
auto enp42s0
iface enp42s0 inet manual
auto br0
iface br0 inet manual
bridge_ports enp42s0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
auto macvlan0
iface macvlan0 inet manual
pre-up ip link add link br0 macvlan0 type macvlan
post-down ip link del macvlan0
hwaddress e2:3f:26:5c:8d:45
auto macvlan1
iface macvlan1 inet manual
pre-up ip link add link br0 macvlan1 type macvlan
post-down ip link del macvlan1
hwaddress e2:3f:26:5c:8d:44
auto macvlan2
iface macvlan2 inet manual
pre-up ip link add link br0 macvlan2 type macvlan
post-down ip link del macvlan2
hwaddress e2:3f:26:5c:8d:43
sudo apt update
sudo apt install wireguard
/etc/wireguard/wg0.conf
sudo apt install git build-essential libpcap-dev
git clone https://github.com/ValdikSS/GoodbyeDPI.git
cd GoodbyeDPI
make
#!/bin/bash
/path/to/goodbyedpi/goodbyedpi -1 --port 53,80,443 --dns-addr 1.1.1.1 --dnsv6-addr 2606:4700:4700::1111
sudo iptables -t mangle -N DIVERT
sudo iptables -t mangle -A DIVERT -j MARK --set-mark 1
sudo iptables -t mangle -A DIVERT -j ACCEPT
sudo iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT
sudo iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 8080
sudo iptables -t mangle -A PREROUTING -p tcp --dport 443 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 8080