I am trying to create a simple proxy-server for HTTP(s) traffic(in other words - in order to change IP).
So, i've got 6 ips(from ISP) and VPS with ubuntu 18.04 installed. These ips are linked to a virtual interface, so, i should be able to access these ips from server.
I was trying to make [this][1] solution work, but i failed.
For now im totally out of ideas, was looking towards squid
, but now looking for any solution for that :)
UPD: did all steps as described in the topic above, but, when trying to get a webpage via proxy -> I don't get any response at all. Just a timeout.
Thought, that it might me problem with some kind of firewall, then disabled iptables at all (ufw is not installed), and made a line http_access allow all
in squid.cfg file, but, didnt get any response again.
No refused connection, just no response from proxy-server.
UPD2: Now proxy is working, but only for one ip. Seems, that this config
http_port 45.153.231.zzz:xxxx name=xxxx
http_port 45.153.231.zzz:xxxx name=xxxx
http_port 45.153.231.zzz:xxxx name=xxxx
acl firstProxy src 188.234.94.xxx
http_access allow all
tcp_outgoing_address 45.153.231.zzz firstProxy
acl secondProxy src 188.234.94.xxx
http_access allow all
tcp_outgoing_address 45.153.231.zzz secondProxy
acl thirdProxy src 188.234.94.xxx
http_access allow all
tcp_outgoing_address 45.153.231.zzz thirdProxy
is unable to clarify, which ACL I wanna use now. Any ideas how to make my traffic to be sent via proxy that I need?
For example, by connecting to proxy 45.153.231.zzz
I want all traffic to be sent from this ip to web-server, then the oppsite way to my PC.
Now all traffic is recognized as firstProxy
ACL, and sent from 45.153.231.zzz