Hi Keith

Thanks for your reply. Please find my reply mentioned below :

"keith" wrote:

I am no expert but you can try the following.

1) check whether you can access the net from the linux(gateway) machine.

Answer : Yes. I am able to browse the net from the gateway machine.

2) check the ip_forward by doing cat /proc/sys/net/ipv4/ip_forward

Answer : It is permanently set to 1

3) the masquerade rule for iptables is something like this
For say network 192.168.0.0/24
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0/0 -j
MASQUERADE (also assuming ur using iptables and the 2.4 kernel)

Answer : Yes I am using Red Hat 9 and I am using above mentioned rule except "-s 
192.168.0.0/24" I shall modify the rule and check again.

4) Some ISP's dont allow ICMP packets so check whether you can access the
network using some other protocols.

Answer : I am not sure about this I shall check with the ISP.

5) Forget DNS for now, try accessing some sites by IP, a good check would be
to see if you can do a "whois" or a "dig", If you can ping an IP address, try
pinging your DNS server to see if they are they are up to perform name
resolution, maybe that isnt set correctly.

Answer : I shall try that ... thanks. The main reason to use NAT instead of Squid 
(squid-2.5.STABLE4) for proxy is the same mentioned by this gentleman : 

http://www.squid-cache.org/mail-archive/squid-users/200208/0102.html

SOS .... Can anybody guide me on this if possible .... 

Hope this helps...

Regards,
Keith

"joel_divekar" wrote:

> Hi All
> 
> I an trying to share internet access using NAT. On the server side I have
set
> ip_forward to 1 and added MASQUERADE in iptables script. And on the client
side
> I have configured server ip as gateway and using same dns servers as
specified
> on the server. But when I do tracert (windows client) it just hits gateway
> machine and get Request Timed Out. SOS.
> 
> Regards
> 
> Joel
> 9820533294
> 
> 
> Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
> 
> Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
> 
> Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to
> http://airsahara.indiatimes.com and Bid Now !
> 





Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to 
http://airsahara.indiatimes.com and Bid Now !


-- 
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to