ok .. so now we focused on RHEL Setting :
- eth0 = 202.71.145.114 (to internet)
- eth1 = 192.168.0.1 (to LAN)
- Gateway = 202.71.145.113
This is the step you can try and follow:
1. make sure you allowing ip forwarding
/proc/sys/net/ipv4/ip_forward -- set it value to 1
2. after that, windows machine should be able to ping
RHEL gw (202.71.145.113)
3. u don't mention ur dns nameserver ... u should set it, before
we try to browse any website.
4. from this step, u should able to connect internet from your
windows client without proxy.
5. for redirecting, use this on RHEL machine :
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT
--to-ports 3128
6. restart your iptables & test it from windows client.
7. for monitoring squid you can tail it by :
tail -f /var/log/squid/access.log
note that there should be no error in squid before u configure iptables.
hope works friend.
Quote:
Originally Posted by jpmaxyusuf
Default gateway for windows machines is 192.168.0.1(Router IP)
Default gateway for RHEL Machine is eth0 : 202.71.145.113
eth1 : 192.168.0.1. I think some mistake i made but i dont know what i made.........
Thanks and Regards
S. A. Yusuf Sithik.
|