December 14, 2017, 01:06:24 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: NAT and Squid Difference  (Read 2850 times)

Offline shani

  • Tux Awared
  • **
  • Posts: 36
NAT and Squid Difference
« on: December 09, 2004, 10:34:21 AM »
Hi Ricky and every one


i want to ask that can we use NAT and Squid at the same time and which

what will be the difference b/w using them at the same time and seperatly

Thanks

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
NAT and Squid Difference
« Reply #1 on: December 09, 2004, 07:45:32 PM »
hmm..

Squid and NAT can be used together..

first you understand a brief about both..

NAT = Network Address Translation

Here in that we set your Linux box to act as gatway to your local computer so that they can access internet through it. In this way your clients sends the request to internet which are passed to server which changed them according so that they can be sent over internet, now reply from internet is returned, at this point our server again do changes accordingly and then foward that to local client. What it actually do is network address translation (when sending and when recieiving packets from internet)

Squid = A proxy server for LINUX

Here in this you set a proxy on LINUX on a specific port (say port 8000) now when client request for packet from internet on port 8000 of that box then it simply recieves the request and then fectches that from internet and then return to that box, so address of packet is not altered. It means if u request a PC running proxy on it.. say 192.168.0.1 on port 8000 then u can connect to internet by specifying server as 192.168.0.1 and port 8000 in your web browser.
BTW.. squid also caches the pages.. ie store them on local computer so that next they are required will be delivered through cache so faster browsing .

Offline shani

  • Tux Awared
  • **
  • Posts: 36
NAT and Squid Difference
« Reply #2 on: December 10, 2004, 01:27:21 PM »
Hi Ricky


If i use Nat for gateway for our lan and i define delay pool in my squid then is there any effect to control bandwidth

Thanks

Offline shani

  • Tux Awared
  • **
  • Posts: 36
NAT +squid
« Reply #3 on: December 13, 2004, 07:43:54 AM »
Hi Ricky

If we use NAT and squid proxy at the same time then which one be more efective then other
i mean NAT   or Squid.


thanks

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
NAT and Squid Difference
« Reply #4 on: December 15, 2004, 01:16:56 PM »
Tranparent proxy is combination of NAT and squid..
ie .. you can restrict bandwidth as well as have power/simplicity  of NAT .

So you can use squid and NAT on one machine