访问 TOR 内的路由器管理页面 (raspberry pi)
Reach router admin page inside TOR (raspberry pi)
我在地址 10.3.141.1 上将 Pi 零编程为无线接入点 (https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point). Wlan0 delegates IPs to my computers via hostapd and wlan1 is connected to my wireless. Everything is routed over tor. I have an admin page (https://github.com/billz/raspap-webgui)。我试图达到这个但我不能,我猜这是因为我的流量通过 TOR。
我希望能够连接到 WLAN0 (SSID=TOR_TEST) 并能够直接访问管理页面。
当前 Iptables:
iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 22 -j REDIRECT --to-ports 22
iptables -t nat -A PREROUTING -i wlan0 -p udp --dport 53 -j REDIRECT --to-ports 53
iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040
iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE
iptables -A FORWARD -i wlan1 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o wlan1 -j ACCEPT
如果我排除这一行
iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040
它停止通过 TOR 路由,我可以访问管理页面,所以我想这只是我必须放入 iptables 的某种简单异常?请帮忙!
之前
iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040
添加:
iptables -t nat -A PREROUTING -i wlan0 -d 10.3.141.1 -p tcp --syn -j ACCEPT
我在地址 10.3.141.1 上将 Pi 零编程为无线接入点 (https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point). Wlan0 delegates IPs to my computers via hostapd and wlan1 is connected to my wireless. Everything is routed over tor. I have an admin page (https://github.com/billz/raspap-webgui)。我试图达到这个但我不能,我猜这是因为我的流量通过 TOR。
我希望能够连接到 WLAN0 (SSID=TOR_TEST) 并能够直接访问管理页面。
当前 Iptables:
iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 22 -j REDIRECT --to-ports 22
iptables -t nat -A PREROUTING -i wlan0 -p udp --dport 53 -j REDIRECT --to-ports 53
iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040
iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE
iptables -A FORWARD -i wlan1 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o wlan1 -j ACCEPT
如果我排除这一行
iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040
它停止通过 TOR 路由,我可以访问管理页面,所以我想这只是我必须放入 iptables 的某种简单异常?请帮忙!
之前
iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040
添加:
iptables -t nat -A PREROUTING -i wlan0 -d 10.3.141.1 -p tcp --syn -j ACCEPT