Hi, i'm trying to redirect packets from some ip sources ( kind of transparent proxy)
I tried with http traffic using this ip rule: (both are wireless clients)
iptables -t nat -I PREROUTING -s 192.168.1.207 -p tcp --dport 80 -j DNAT --to 192.168.1.70.
When i set this rule the client can't navigate outside the LAN but if i try with 192.168.1.4 it opens the webpage. But in any cases the 192.168.1.70 running "nc -l -p 80" gets any connection.
if i set a log for this rule i can see that the rule is getting matches.
Any ideas?
Thanks in advance.
I tried with http traffic using this ip rule: (both are wireless clients)
iptables -t nat -I PREROUTING -s 192.168.1.207 -p tcp --dport 80 -j DNAT --to 192.168.1.70.
When i set this rule the client can't navigate outside the LAN but if i try with 192.168.1.4 it opens the webpage. But in any cases the 192.168.1.70 running "nc -l -p 80" gets any connection.
if i set a log for this rule i can see that the rule is getting matches.
Any ideas?
Thanks in advance.