diff --git a/deploy/i2p b/deploy/i2p index 47a2ea8b..458231b4 100755 --- a/deploy/i2p +++ b/deploy/i2p @@ -57,7 +57,8 @@ if [ -f /usr/bin/pacman ]; then pacman -S --noconfirm python-pip python-pysocks python-pycryptodome \ imagemagick python-pillow python-requests \ 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 else apt-get update @@ -67,7 +68,8 @@ else python3-setuptools python3-socks python3-idna \ libimage-exiftool-perl python3-flake8 python3-pyld \ python3-django-timezone-field nginx git i2pd wget \ - python3-pyqrcode qrencode python3-png + python3-pyqrcode qrencode python3-png \ + proxychains midori fi 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/ 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 "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 "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 'Your Epicyon i2p instance is now installed.' +echo '' +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