linux - Reach router admin page inside TOR (raspberry pi) -
i have pi 0 programmed wireless accespoint (https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point). wlan0 delegates ips computers via hostapd , wlan1 connected wireless. routed on tor. have admin page (https://github.com/billz/raspap-webgui) on adress 10.3.141.1. im trying reach can't, guess because traffic goes trough tor.
i want able connect wlan0 (ssid=tor_test) , able access admin page directly.
current 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
if exclude row
iptables -t nat -a prerouting -i wlan0 -p tcp --syn -j redirect --to-ports 9040
it stops routing trough tor , can access admin page, guess it's simple exception of kind have put in iptables? please!
before
iptables -t nat -a prerouting -i wlan0 -p tcp --syn -j redirect --to-ports 9040
add:
iptables -t nat -a prerouting -i wlan0 -d 10.3.141.1 -p tcp --syn -j accept
Comments
Post a Comment