LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   squid step by step (https://www.linuxquestions.org/questions/linux-networking-3/squid-step-by-step-386627/)

abhishekgedam 11-26-2005 03:54 AM

squid step by step
 
hi
I have FC2 machine and i am conneted to internet through this machince. The NIC card which is connented to internet have following network specification
static IP := 192.168.1.190
network mask := 255.255.255.0
gateway := 192.168.1.11
DNS : = 192.68.1.11

now i have one more NIC on this machince i am using this NIC to connect with one more machine having windows.
I want to use Internet on windows machine .
can anybody pls tell me step by step process to use squid.
also an example for squid.conf will be helpful

karunesh 11-26-2005 04:01 AM

Hi..

You actually don't require squid.conf to run internet on windows m/c. Simply enable IP forwarding and SNAT on your Linux m/c. You can use 'iptables' for that. One more thing you need to use linux m/c IP as a gateway IP for your windows m/c. I hope this will help..

abhishekgedam 11-26-2005 04:13 AM

hi karunesh,
Thanks for the reply but i am new to linux. Can u give exact commands and step by step procdure for both linux and windows machince depends upon my internet setting.

Also please tell me configuaration of NIC card on windows as well on linux throught which it is connected to windows
if u can give me ur yahoo chat ID it will be better

karunesh 11-26-2005 06:04 AM

Hi..

For enabling IP forwarding simply open the file '/etc/sysctl.conf' and locate the option 'net.ipv4.ip_forward = 0'. Here change the value 0 to 1.

About NATing you can us the following command...
Quote:

iptables -t nat -A POSTROUTING -s 192.168.x.x/24 -j MASQUERADE
After doing all this you need to change the default gateway of your win m/c poining to your linux m/c ip.


All times are GMT -5. The time now is 09:39 PM.