JohnDoeSr
asked on
Looking 4 software that'll allow several of my IPs to be used as http proxy at the same time
Does anyone know if something like this exists? I've setup Squid, and it works great, but you can only enable ONE IP to be open for use. This doesn't do me any good when I need several IPs open at once. From what I've been reading, Squid can't enable more than one ip at once. The ips need to be used as a basic http proxy.
ASKER
Hello, thanks for the reply.
When doing the above Im able to connect from the windows box to the fbsd box using the IP I enter with 'http_port'. But the outgoing IP remains the same as what I have entered in tcp_outgoing_address. I tried commenting out tcp_outgoing_address but then the proxied IP on the windows box shows as the fbsd boxs main IP. I'm trying to get things setup so that the outgoing ip will be the same as what is being connected to.
When doing the above Im able to connect from the windows box to the fbsd box using the IP I enter with 'http_port'. But the outgoing IP remains the same as what I have entered in tcp_outgoing_address. I tried commenting out tcp_outgoing_address but then the proxied IP on the windows box shows as the fbsd boxs main IP. I'm trying to get things setup so that the outgoing ip will be the same as what is being connected to.
How squid can guess which IP addresses are outgoing and for which incoming IP addresses they should be used?
It's quiet logical to have 1 incoming and 1 outgoing IP (interface).
If you wish more complexity, run several squid's with different config files.
Each copy of Squid will have it's own tcp_outgoing_address and http_port.
It's quiet logical to have 1 incoming and 1 outgoing IP (interface).
If you wish more complexity, run several squid's with different config files.
Each copy of Squid will have it's own tcp_outgoing_address and http_port.
ASKER
I see what you're saying. So if I wanted 10 different outgoing IPS then simply run 10 instances of Squid, each designating it's own squid.conf file? Would this require installing Squid again another 9 times in a new location?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Nopius. I tried the first suggestion about 10 different conf files and had this error when executing the 2nd 'squid squid02.conf' command, "Squid is already running! Process ID 22285"
I made sure that the ip I had listed for tcp_outgoing_address & http_port for squid01.conf were unique from squid02.conf
I'll give the 2nd suggestion a shot when I have a chance. I'm not familiar with acls. I'm assuming that the only place I'd insert an actual IP of mine would be where you have listed 1.1.1.1, 1.1.1.2, etc... ? I'd leave the my_IP_1 / myip alone? Would I just insert the following into the squid.conf file
acl my_IP_1 myip 64.212.13.4
acl my_ip_2 myip 64.212.13.5
tcp_outgoing_address 64.212.13.4 my_IP_1
tcp_outgoing_address 64.212.13.5 my_IP_2
I made sure that the ip I had listed for tcp_outgoing_address & http_port for squid01.conf were unique from squid02.conf
I'll give the 2nd suggestion a shot when I have a chance. I'm not familiar with acls. I'm assuming that the only place I'd insert an actual IP of mine would be where you have listed 1.1.1.1, 1.1.1.2, etc... ? I'd leave the my_IP_1 / myip alone? Would I just insert the following into the squid.conf file
acl my_IP_1 myip 64.212.13.4
acl my_ip_2 myip 64.212.13.5
tcp_outgoing_address 64.212.13.4 my_IP_1
tcp_outgoing_address 64.212.13.5 my_IP_2
ASKER
W00T! You're the man!
"Squid is already running! Process ID 22285"
this also can be resolved by specifying different lock file location in config files, like
squid1.conf:
pid_filename /var/run/squid1.pid
squid2.conf:
pid_filename /var/run/squid2.pid
Anyway if ACL works, it's better to use it.
this also can be resolved by specifying different lock file location in config files, like
squid1.conf:
pid_filename /var/run/squid1.pid
squid2.conf:
pid_filename /var/run/squid2.pid
Anyway if ACL works, it's better to use it.
Just specify multiple lines like this:
http_port x.x.x.x:8080
http_port y.y.y.y:8080
http_port z.z.z.z:8080