November 23, 2024, 05:17:29 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: need help how i allow outside user to use my cache  (Read 8393 times)

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
need help how i allow outside user to use my cache
« on: September 19, 2004, 04:48:28 AM »
is it possible that to use this squid proxy from out side i mean from other internet connection like if i give you the the ip/port you use my proxy from other country
thanks

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
need help how i allow outside user to use my cache
« Reply #1 on: September 19, 2004, 01:58:05 PM »
Yes it is possible but only if your acls are set to allow this !

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
need help how i allow outside user to use my cache
« Reply #2 on: March 20, 2005, 05:45:10 AM »
Quote from: "Ricky"
Yes it is possible but only if your acls are set to allow this !



i want to allow u to use what i have to do
please example u now my acls
my lan 192.168.1.0
allow my lan

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
need help how i allow outside user to use my cache
« Reply #3 on: March 20, 2005, 12:01:15 PM »
For that.. you just have to create new ACL for another LAN.

But first you have to make sure that you can ping to the squid machine from that LAN or client.

Secondly.. take this Squid proxy as example config file. Here if we want other netowrk other than already given one 192.168.0.0/255.255.255.0  to use squid then have to just give it ip range like below.
Code: [Select]
acl other_network src 192.168.2.0/255.255.255.0
http_access allow other_network

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
need help how i allow outside user to use my cache
« Reply #4 on: July 01, 2005, 11:38:01 AM »
dear ricky
i add this to my cache
note : one lan is 10.0.0.0
and other is 192.168.1.0
now i am on 192.168.1.0
squid box is 192.168.1.200
so i add this to squid box 192.168.1.200
#to allow  10.0.0.0 lan
acl other_network src 10.0.0.0/255.255.255.0
http_access allow other_network
======
#to go to 192.168.1.200
and other squid box is 10.0.0.200
so i add there
cache_peer 192.168.1.200 8080 sibling

but the cache.log says failed to connect  

did i connect both hubs with means of cable
thank you

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
need help how i allow outside user to use my cache
« Reply #5 on: July 01, 2005, 05:15:29 PM »
If you can ping from one LAN to other.. ie . from squid box to the other lan client then adding the lines as I told you will work.

You need to bridge the networks !

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
need help how i allow outside user to use my cache
« Reply #6 on: July 02, 2005, 03:27:41 AM »
Thanks
It means it will not go through wan
Just like other open proxyes we use from usa and other diff countries
i will try by bridging then inform you
I think i have to change port because i have both squid running on 8080

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
need help how i allow outside user to use my cache
« Reply #7 on: July 02, 2005, 01:41:39 PM »
It can go through WAN..  but only when if your machine is directly having public IP or you are routing all proxy request to internet if its on internal LAN.

Say you have been given a static public Ip of 231.111.2.34 and the very same box is also running squid then if you allow everyone to access that proxy .. anyone can access by specifying ip 231.111.2.34 and port 8080 ! or as you specified.