I have set up a wireless access point on my Debian 8 laptop following this and this tutorial. When redirecting iptables to port 9040
it works but changing the port to 8118
which is the one privoxy listens to, it doesn't work and I can't access any website from my clients. Do I have to activate/specify any extra options so that privoxy would accept the requests? I can set my browser to work with privoxy why can't I do the same there? I have set my privoxy to forward the traffic to tor
and I want my clients to be able to access the internet through tor. how can i achieve this?
my /etc/iptables.ipv4.nat
file:
# Generated by iptables-save v1.4.21 on Mon Jan 12 20:42:04 2015
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i wlan0 -p tcp -m tcp --dport 22 -j REDIRECT --to-ports 22
-A PREROUTING -i wlan0 -p udp -m udp --dport 53 -j REDIRECT --to-ports 53
-A PREROUTING -i wlan0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j REDIRECT --to-port 9040
COMMIT
# Completed on Mon Jan 12 20:42:04 2015
# Generated by iptables-save v1.4.21 on Mon Jan 12 20:42:04 2015
*filter
:INPUT ACCEPT [24351:18113815]
:FORWARD ACCEPT [7:280]
:OUTPUT ACCEPT [22600:14890944]
COMMIT
# Completed on Mon Jan 12 20:42:04 2015