Get rid of I2P
This commit is contained in:
parent
e9f97b0693
commit
2a3b78631b
5 changed files with 1 additions and 19 deletions
10
build.sh
10
build.sh
|
@ -71,7 +71,7 @@ capsh --drop=cap_setfcap -- -c "$BOOTSTRAP_CMD \
|
||||||
--components=main,contrib,non-free \
|
--components=main,contrib,non-free \
|
||||||
--arch armhf \
|
--arch armhf \
|
||||||
--keyring $KEYS_DIR/raspbian-archive-keyring.gpg \
|
--keyring $KEYS_DIR/raspbian-archive-keyring.gpg \
|
||||||
--include=ca-certificates,apt-transport-https \
|
--include=ca-certificates \
|
||||||
jessie \
|
jessie \
|
||||||
$ROOTFS_DIR \
|
$ROOTFS_DIR \
|
||||||
http://mirrordirector.raspbian.org/raspbian/" || rmdir "$ROOTFS_DIR/debootstrap/"
|
http://mirrordirector.raspbian.org/raspbian/" || rmdir "$ROOTFS_DIR/debootstrap/"
|
||||||
|
@ -122,7 +122,6 @@ ln -nsf /proc/mounts "$ROOTFS_DIR/etc/mtab"
|
||||||
apply_file 644 '/etc/apt/sources.list'
|
apply_file 644 '/etc/apt/sources.list'
|
||||||
|
|
||||||
on_chroot apt-key add - < "$KEYS_DIR/raspberrypi-archive-keyring.gpg"
|
on_chroot apt-key add - < "$KEYS_DIR/raspberrypi-archive-keyring.gpg"
|
||||||
on_chroot apt-key add - < "$KEYS_DIR/i2p-archive-keyring.gpg"
|
|
||||||
|
|
||||||
apply_file 644 '/etc/apt/apt.conf.d/02noinstall'
|
apply_file 644 '/etc/apt/apt.conf.d/02noinstall'
|
||||||
apply_file 644 '/etc/apt/apt.conf.d/50pdiffs'
|
apply_file 644 '/etc/apt/apt.conf.d/50pdiffs'
|
||||||
|
@ -276,13 +275,6 @@ EOF
|
||||||
|
|
||||||
apply_file 644 '/etc/tor/torrc'
|
apply_file 644 '/etc/tor/torrc'
|
||||||
|
|
||||||
##
|
|
||||||
# Install I2P.
|
|
||||||
#
|
|
||||||
on_chroot << EOF
|
|
||||||
apt-get install -y i2p
|
|
||||||
EOF
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Configure firewall.
|
# Configure firewall.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
deb http://mirrordirector.raspbian.org/raspbian jessie main
|
deb http://mirrordirector.raspbian.org/raspbian jessie main
|
||||||
deb http://archive.raspberrypi.org/debian jessie main
|
deb http://archive.raspberrypi.org/debian jessie main
|
||||||
deb https://deb.i2p2.de jessie main
|
|
||||||
|
|
|
@ -7,10 +7,6 @@
|
||||||
-A PREROUTING -i eth0 -p udp --dport 5353 -j REDIRECT --to-ports 5353
|
-A PREROUTING -i eth0 -p udp --dport 5353 -j REDIRECT --to-ports 5353
|
||||||
# Tor SOCKS proxy
|
# Tor SOCKS proxy
|
||||||
-A PREROUTING -i eth0 -p tcp --dport 9050 -j REDIRECT --to-ports 9050
|
-A PREROUTING -i eth0 -p tcp --dport 9050 -j REDIRECT --to-ports 9050
|
||||||
# I2P router console web interface
|
|
||||||
-A PREROUTING -i eth0 -p tcp --dport 7657 -j DNAT --to-destination 127.0.0.1:7657
|
|
||||||
# I2P HTTP proxy
|
|
||||||
-A PREROUTING -i eth0 -p tcp --dport 4444 -j DNAT --to-destination 127.0.0.1:4444
|
|
||||||
# Tor transparent proxy
|
# Tor transparent proxy
|
||||||
-A PREROUTING -i eth0 -p tcp --syn -j REDIRECT --to-ports 9040
|
-A PREROUTING -i eth0 -p tcp --syn -j REDIRECT --to-ports 9040
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,3 @@ net.ipv6.conf.default.disable_ipv6 = 1
|
||||||
net.ipv6.conf.lo.disable_ipv6 = 1
|
net.ipv6.conf.lo.disable_ipv6 = 1
|
||||||
net.ipv6.conf.eth0.disable_ipv6 = 1
|
net.ipv6.conf.eth0.disable_ipv6 = 1
|
||||||
net.ipv6.conf.wlan0.disable_ipv6 = 1
|
net.ipv6.conf.wlan0.disable_ipv6 = 1
|
||||||
|
|
||||||
##
|
|
||||||
# Allow NAT to localhost (for I2P).
|
|
||||||
#
|
|
||||||
net.ipv4.conf.eth0.route_localnet = 1
|
|
||||||
|
|
Binary file not shown.
Reference in a new issue