Your Name 4 years ago
parent
commit
8b1f83f2aa

BIN
manual_tools/config.7z


+ 5 - 0
manual_tools/config_tor_manual.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 22 -j REDIRECT --to-ports 22
+sudo iptables -t nat -A PREROUTING -i wlan0 -p udp --dport 53 -j REDIRECT --to-ports 53
+sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040
+echo "attendre 1 minute après le lancement de tor"

+ 5 - 0
manual_tools/install_openvpn.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+sudo apt-get install openvpn -y
+sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
+sudo iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
+sudo iptables -A FORWARD -i wlan0 -o tun0 -j ACCEPT

+ 18 - 0
manual_tools/iptable_hotspot

@@ -0,0 +1,18 @@
+# Generated by xtables-save v1.8.2 on Sat Mar 13 08:00:42 2021
+*nat
+:PREROUTING ACCEPT [57:13405]
+:INPUT ACCEPT [23:2643]
+:POSTROUTING ACCEPT [0:0]
+:OUTPUT ACCEPT [10:654]
+[31:5724] -A POSTROUTING -o eth0 -j MASQUERADE
+COMMIT
+# Completed on Sat Mar 13 08:00:42 2021
+# Generated by xtables-save v1.8.2 on Sat Mar 13 08:00:42 2021
+*filter
+:INPUT ACCEPT [153:17502]
+:FORWARD ACCEPT [0:0]
+:OUTPUT ACCEPT [88:11807]
+[452:379123] -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
+[380:62447] -A FORWARD -i wlan0 -o eth0 -j ACCEPT
+COMMIT
+# Completed on Sat Mar 13 08:00:42 2021

+ 21 - 0
manual_tools/openvpn-save

@@ -0,0 +1,21 @@
+# Generated by xtables-save v1.8.2 on Sat Mar 13 08:02:20 2021
+*nat
+:PREROUTING ACCEPT [101:21644]
+:INPUT ACCEPT [48:7257]
+:POSTROUTING ACCEPT [0:0]
+:OUTPUT ACCEPT [16:1047]
+[56:9742] -A POSTROUTING -o eth0 -j MASQUERADE
+[0:0] -A POSTROUTING -o tun0 -j MASQUERADE
+COMMIT
+# Completed on Sat Mar 13 08:02:20 2021
+# Generated by xtables-save v1.8.2 on Sat Mar 13 08:02:20 2021
+*filter
+:INPUT ACCEPT [677:65247]
+:FORWARD ACCEPT [0:0]
+:OUTPUT ACCEPT [396:51620]
+[708:468405] -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
+[659:121000] -A FORWARD -i wlan0 -o eth0 -j ACCEPT
+[0:0] -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
+[0:0] -A FORWARD -i wlan0 -o tun0 -j ACCEPT
+COMMIT
+# Completed on Sat Mar 13 08:02:20 2021

+ 17 - 0
manual_tools/tor-save

@@ -0,0 +1,17 @@
+# Generated by xtables-save v1.8.2 on Sat Mar 13 08:28:24 2021
+*nat
+:PREROUTING ACCEPT [223:59408]
+:INPUT ACCEPT [273:38270]
+:POSTROUTING ACCEPT [13:13957]
+:OUTPUT ACCEPT [4:248]
+-A PREROUTING -i wlan0 -p udp -m udp --dport 53 -j REDIRECT --to-ports 53
+-A PREROUTING -i wlan0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j REDIRECT --to-ports 9040
+COMMIT
+# Completed on Sat Mar 13 08:28:24 2021
+# Generated by xtables-save v1.8.2 on Sat Mar 13 08:28:24 2021
+*filter
+:INPUT ACCEPT [4309:1916477]
+:FORWARD ACCEPT [1083:274874]
+:OUTPUT ACCEPT [3170:1756110]
+COMMIT
+# Completed on Sat Mar 13 08:28:24 2021