Hi,
I use privoxy server which listen to the IP address 10.0.0.1:8118 on wlan0 interface. In normal use any client can access the server.
This IP/interface is not always in use and sometimes down then privoxy wont run when an listen address does not exist.
I need privoxy always running because some program use it in other interfaces then I use a trick to have permanent IP.
The trick is I try to use another permanent IP 127.0.0.3:8118 then route 10.0.0.1:8118 traffic to it. I set privoxy to listen 127.0.0.3:8118. The NAT filtering are:
Code:
iptables -t nat -A PREROUTING -i wlan0 -p tcp -m multiport --destination-ports 8118 -j DNAT --to-destination 127.0.0.3:8118
iptables -A FORWARD -i wlan0 -p tcp -m multiport --destination-ports 8118 -d 127.0.0.3 -j ACCEPT
It does not work once the wlan0 is up, remote client can not access internet. Could someone tell my why ?