summaryrefslogtreecommitdiff
path: root/md/writeup
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2019-03-28 21:20:59 +0000
committerFreeArtMan <dos21h@gmail.com>2019-03-28 21:20:59 +0000
commit773628089a697f388683edb08154c631594ff466 (patch)
treef8f23e26257e69bde68e21f20c2f5c09c53a135d /md/writeup
parenta875779284f53a9a632aa24e5bd6d5c5465cb5ec (diff)
downloadmd-content-773628089a697f388683edb08154c631594ff466.tar.gz
md-content-773628089a697f388683edb08154c631594ff466.zip
added to iptables notes way to block tor nodes
Diffstat (limited to 'md/writeup')
-rw-r--r--md/writeup/using_iptables.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/md/writeup/using_iptables.md b/md/writeup/using_iptables.md
index 9f92993..b2b046c 100644
--- a/md/writeup/using_iptables.md
+++ b/md/writeup/using_iptables.md
@@ -305,6 +305,18 @@ there. Then there is possible to match specific connection state
iptables -A INPUT -m state --state NEW -j DROP -s 86.159.18.180
```
+### Block TOR
+
+There is quite common that ANNONYMOUSE users have higher chance to abuse services.
+Also some website provides list of exit nodes. Here we going to add to new
+iptables chai list of IPs gathered from public source
+```
+wget -c https://www.dan.me.uk/torlist/ > tor.list
+iptables -N TOR
+iptables -t filter -A INPUT -j TOR
+cat /tmp/tor.list | uniq | sort | xargs iptables -A TOR -j DROP -s
+```
+
### Logging
Log droppend packages
@@ -343,6 +355,7 @@ the system admins could be not happy with this jokes ;].
16. https://en.wikipedia.org/wiki/Transmission_Control_Protocol#Protocol_operation
17. https://tools.ietf.org/html/rfc675
18. https://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO-7.html
+19. https://www.dan.me.uk/torlist/
https://www.honeynet.org/node/691
http://wiki.lvl1.org/Iptables