Use the vars from the Dockerfile
#1 - Forward using iptables, pr0xy and custom DNS
This commit is contained in:
@@ -2,10 +2,7 @@
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
DNS_PORT=5353
|
||||
I2PD_IP="172.16.200.10"
|
||||
I2PD_PORT=4444
|
||||
LOCAL_PROXY_PORT=10080
|
||||
# ENV Vars come from from Dockerfile
|
||||
|
||||
# Flush the nat table to have a clean start
|
||||
# without docker messing around with that
|
||||
@@ -32,8 +29,6 @@ iptables -t nat -A OUTPUT -o eth0 \
|
||||
iptables -A OUTPUT -o eth0 \
|
||||
-p udp -m udp --dport 53 \
|
||||
-j DROP
|
||||
# Redirect DNS requests to fake-dns
|
||||
# -j REDIRECT --to-port $DNS_PORT
|
||||
|
||||
# Set the default DNS nameserver to the localhost
|
||||
echo "nameserver 127.0.0.1" > /etc/resolv.conf
|
||||
@@ -41,9 +36,8 @@ echo "nameserver 127.0.0.1" > /etc/resolv.conf
|
||||
ulogd -d
|
||||
tcpdump -i any -w /mount/tcp.dmp &
|
||||
|
||||
#python3 /opt/pr0cks/pr0cks.py --proxy socks5:172.16.200.10:4447
|
||||
python3 /opt/bin/fake-dns.py -s "/tmp/fake-dns" &
|
||||
python3 /opt/pr0cks/pr0cks.py \
|
||||
--port ${LOCAL_PROXY_PORT}
|
||||
--proxy "http:${I2PD_IP}:${I2PD_PORT}" \
|
||||
--verbose
|
||||
# > /mount/pr0xy.log
|
||||
|
Reference in New Issue
Block a user