Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => General Networking Support in Linux => Topic started by: tomamodi 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
-
Yes it is possible but only if your acls are set to allow this !
-
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
-
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 (http://www.linuxsolved.com/forums/ftopic116.html) 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.
acl other_network src 192.168.2.0/255.255.255.0
http_access allow other_network
-
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
-
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 !
-
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
-
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.