Um awfully sorry ricky... I just saw your reply to my posting which I hadn't realised that I'd pasted in someone else's Thread. I was just retracing the solution u'd given me and I saw my post and your reply to the same just now
. This makes a lot of sense ricky.. configuring ports I want directly routed to use the router and HTTP browsers to use Squid. Thank you so much but I hope this is all that I have to do...
Firstly I need to flush all the earlier TRANSPARENT PROXY settings which I'd made with these commands u'd posted earlier in this thread:
$iptables --flush -t nat
iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -A INPUT -p udp -i eth0 --dport 21 -j DROP
iptables -A INPUT -p tcp -i eth0 --dport 22 -j DROP
iptables -A INPUT -p smtp -i eth0 dport 25 -j DROP
Now Ricky Why r we saying Drop and I guess the Forwarding has been done in the previous step Correct
! Now like is this enough or Do I need to configure more...