Hi Dear All,
In our office i have some problem in linux, can u help me for solve that problem, if possible.
Here we have two servers ( Windows & Linux) Linux is using for internet purpose. and we are assign ip address range 192.168.1.0/24 , windows server is 192.168.1.10 .
In Linux machine we have two nic's one for private and other for public , 192.168.1.2 & static ip,
here all node computers are using internet through linux (Squid proxy) server , IE Lan proxy is 192.168.1.2 and port is 3128.
and linux machine having iptables. as i given below
-A PREROTUING -p tcp -m tcp -d 22.214.171.124 --dport 80 -j DNAT --to-destination 192.168.1.10
-A POSTROUTING -s 192.168.1.10 -j SNAT --to-source 126.96.36.199
-A POSTROUTING -j SNAT --to-source 188.8.131.52
In the above scenario we are able to browse internet and send and receive a mail using outlook in all node machines.
But i will install the new linux machine and configure the same old linux machine. we are able to browse the net, but outlook is not working. and i try to ping our gate way which one is given by ISP in node machines, its not pinging.
I copy the old machine iptables and paste new machine and check the netsat and routing table and ip address configurations, all settings are same like old linux machine , but still i am not able to ping the gate way or any other public ip.
I remove the New machine and connect the old machine , i can able to ping gate way and public ip's ,
Here what i did wrong, pls tell me, and help to correct this problem.
Thanks & Regards