LinuxQuestions.org
Visit Jeremy's Blog.
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 08-05-2005, 07:19 AM   #1
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
Squid V/s IP Masquerading


can we use SQUID Proxy in place of IP Masquerading for connecting other users in a LAN to internet through a gateway??

regards

xing
 
Old 08-06-2005, 12:25 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
generally speaking, yes (for basic usage)... but keep in mind that there's a LOT of stuff that can't be proxied... you should consider using a mixture of both squid and ip masquerading, by installing squid in transparent mode, for example... of course there's also times when it's better to ONLY use a proxy and do absoloutely no NATing, but i'm not sure what your situation is like...

just my ...
 
Old 08-06-2005, 06:48 AM   #3
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
my situation sis very simple.. i am putting up a gateway which will connect my lan to another lan.. basically 172.x.x.x and 192.x.x.x. Now 192.x.x.x is my ISP.

i wnat to give internet access to my LAN (172.x.x.x) through my ISP. This is possible if i use IP Masquerading. I want to know whether i can use the Squid for the same purpose i.e. to give internet access to my LAN.

regards

xing
 
Old 08-06-2005, 04:54 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
if by "internet access" you mean web surfing, email, etc. then yes, squid will be able to do that... but if your main concern is sharing the connection (and NOT saving bandwidth / increasing speed) then it would be much simpler to do NAT instead of using squid...

keep in mind that they do not work the same way... when you do NAT, the packets are passed right through the firewall/router without any connection being established with the firewall/router... with squid, however, the clients connect to the squid box, and then the squid box connects to the web server, etc.
 
  


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
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
squid message customization, hiding squid versioin rajnishmishra Linux - Networking 0 11-27-2004 03:55 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
squid and iptables masquerading egyptian Linux - Security 1 09-05-2004 04:31 AM
Squid load testing software / Squid optimisation? gundelgauk Linux - Networking 2 08-31-2004 07:36 PM

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

All times are GMT -5. The time now is 03:32 AM.

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