Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptolok authored Jul 13, 2018
1 parent 723fee2 commit 8838f92
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
Binary file added CHAOS/i2p-conf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CHAOS/i2p-conf2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CHAOS/i2p-conf3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CHAOS/i2p-conf4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions CHAOS/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#/bin/bash

apt install openssh-server iptables-persistent
# https://geti2p.net/en/download/
# systemctl enable i2p || crontab /usr/bin/i2prouter

cat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keys
chmod -R 700 ~/.ssh

22 changes: 22 additions & 0 deletions CHAOS/iptables.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#/etc/iptables/rules.v4
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [2590:1545351]

-A INPUT -i lo -j ACCEPT
-A INPUT -i tun0 -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i eth0 -p udp -j ACCEPT
#-A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT
-A INPUT -j DROP
COMMIT
#/etc/iptables/rules.v6
*filter
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth0 -p udp -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -j DROP
-A FORWARD -j DROP
COMMIT

0 comments on commit 8838f92

Please sign in to comment.