Browser setup for i2p deployment

main
Bob Mottram 2020-06-27 11:08:08 +01:00
parent de4f00bb8c
commit 44393f7277
1 changed files with 30 additions and 5 deletions

View File

@ -57,7 +57,8 @@ if [ -f /usr/bin/pacman ]; then
pacman -S --noconfirm python-pip python-pysocks python-pycryptodome \ pacman -S --noconfirm python-pip python-pysocks python-pycryptodome \
imagemagick python-pillow python-requests \ imagemagick python-pillow python-requests \
perl-image-exiftool python-numpy python-dateutil \ perl-image-exiftool python-numpy python-dateutil \
certbot flake8 git i2pd wget qrencode certbot flake8 git i2pd wget qrencode \
proxychains midori
pip3 install pyLD pyqrcode pypng pip3 install pyLD pyqrcode pypng
else else
apt-get update apt-get update
@ -67,7 +68,8 @@ else
python3-setuptools python3-socks python3-idna \ python3-setuptools python3-socks python3-idna \
libimage-exiftool-perl python3-flake8 python3-pyld \ libimage-exiftool-perl python3-flake8 python3-pyld \
python3-django-timezone-field nginx git i2pd wget \ python3-django-timezone-field nginx git i2pd wget \
python3-pyqrcode qrencode python3-png python3-pyqrcode qrencode python3-png \
proxychains midori
fi fi
if [ ! -d /etc/i2pd ]; then if [ ! -d /etc/i2pd ]; then
@ -395,8 +397,31 @@ echo "Creating nginx virtual host for http://${I2P_DOMAIN}"
ln -s /etc/nginx/sites-available/epicyon-i2p /etc/nginx/sites-enabled/ ln -s /etc/nginx/sites-available/epicyon-i2p /etc/nginx/sites-enabled/
systemctl restart nginx systemctl restart nginx
# set up socks5 proxy for browser
{ echo 'dynamic_chain';
echo 'proxy_dns';
echo 'remote_dns_subnet 224';
echo 'tcp_read_time_out 15000';
echo 'tcp_connect_time_out 8000';
echo 'localnet 127.0.0.0/255.0.0.0';
echo '[ProxyList]';
echo 'http 127.0.0.1 4444';
echo 'socks5 127.0.0.1 4447'; } > /etc/proxychains.conf
clear
echo -n "$I2P_DOMAIN" | qrencode -t ANSI echo -n "$I2P_DOMAIN" | qrencode -t ANSI
echo "Your Epicyon i2p instance is now installed." echo 'Your Epicyon i2p instance is now installed.'
echo 'In Firefox see preferences/network settings, manual proxy and uncheck DNS over HTTPS. In about:config and find the property media.peerConnection.ice.proxy_only and set it to true.' echo ''
echo "In a browser http proxied through 127.0.0.1 port 4444 and socks5 proxied through 127.0.0.1 port 4447 navigate to http://${I2P_DOMAIN} and register an account" echo 'You can view it from the terminal with the command:'
echo ''
echo ' proxychains midori'
echo ''
echo 'If you prefer Firefox then see preferences/network settings, '
echo 'manual proxy and uncheck DNS over HTTPS. In about:config and '
echo 'find the property media.peerConnection.ice.proxy_only and set '
echo 'it to true. http should be proxied through 127.0.0.1 port 4444 '
echo 'and socks5 proxied through 127.0.0.1 port 4447.'
echo ''
echo "Navigate to http://${I2P_DOMAIN} and register an account."
exit 0 exit 0