LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2005, 03:54 AM   #1
abhishekgedam
LQ Newbie
 
Registered: Nov 2005
Posts: 14

Rep: Reputation: 0
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
 
Old 11-26-2005, 04:01 AM   #2
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
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..
 
Old 11-26-2005, 04:13 AM   #3
abhishekgedam
LQ Newbie
 
Registered: Nov 2005
Posts: 14

Original Poster
Rep: Reputation: 0
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
 
Old 11-26-2005, 06:04 AM   #4
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Step-By-Step Instruction to install Linksys WPC11 Ver.4 Wireless Card Zypher Linux - Hardware 8 08-12-2009 10:43 AM
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 07:31 PM
I need a step by step help to instal Suse 9.3 Pro on the same hdd as XP Home & 2003 suse91pro Linux - General 4 09-07-2005 01:15 PM
Easy step by step Guied for Squid mobassir Linux - Software 15 05-22-2004 03:05 AM
I need to upgrade to a recent Squid version, I need a Step by step procedure mfeoli Linux - Newbie 4 01-14-2004 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration