I want to redirect all my outgoing connection on port 80 to my eth0 port 8080 (to squid)
I am using IPTABLES with simple line:
#/sbin/iptables -A OUTPUT -p tcp -d 0/0 --dport 80 -j DNAT --to 192.168.1.122:8080
But with :
#tail -f /var/log/squid/access.log
when i request i get:
------------
1014027725.803 0 192.168.1.122 NONE/400 1062 GET / - NONE/- -
1014027725.803 3000 127.0.0.1 TCP_MISS/400 1096 GET - DIRECT/ text/html
-------------
And in my browser i see :
----------
The requested URL could not be retrieved
While trying to retrieve the URL: /
........
.......
Am i wrong else where ?
Can some one help ?
-------------
I am using IPTABLES with simple line:
#/sbin/iptables -A OUTPUT -p tcp -d 0/0 --dport 80 -j DNAT --to 192.168.1.122:8080
But with :
#tail -f /var/log/squid/access.log
when i request i get:
------------
1014027725.803 0 192.168.1.122 NONE/400 1062 GET / - NONE/- -
1014027725.803 3000 127.0.0.1 TCP_MISS/400 1096 GET - DIRECT/ text/html
-------------
And in my browser i see :
----------
The requested URL could not be retrieved
While trying to retrieve the URL: /
........
.......
Am i wrong else where ?
Can some one help ?
-------------