Proxy and Client talk, proxy isn't returning/retrieving requests (iptables problem?)
I am trying to use NSTX in the style of thomer.com/howtos/nstx.html
The client is 172.16.16.2 for the tun device, and the wireless card is using a static IP of 192.168.1.111
The proxy is 172.16.16.1 for the tun device and with fixed external IP of 184.108.40.206.
I have the following entered in the proxy for ip forwarding and ip tables
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 172.16.16.0/24 -j MASQUERADE
iptables -A INPUT -p udp --dport 53 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT
From the tcpdump tool I can see that the proxy is receiving requests for web pages and the like. It is not, however, returning the encapsulated pages as it should. It looks to me like a problem with ip tables.
Can someone shed some light?