New answers tagged

0 votes
Accepted

CONNECT Proxy over Squid with TLS termination

Edit: solution for chain issue, compile squid from source with --with-gnutls or --with-openssl. -- For some reason, chain of certificates generated by Let's Encrypt are not in default CAfile. You can ...
  • 49
0 votes
Accepted

Squid in docker returns 502 but works when run on host

It seems to be the problem with ubuntu/squid image not docker in general. The image is currently marked as beta or edge, not stable. I built a alpine-based squid image and it has resolved my issue.
  • 223
0 votes

Difference beetween DNAT and REDIRECT in IPTABLES

DNAT and REDIRECT are exactly the same, if you want to send traffic to the local machine. The documentation states it like so: "[Redirection] is a specialized case of Destination NAT called ...
  • 1
0 votes

How do web clients access vpn protected servers?

Simplest answer is to think of a VPN as a tunnel through the Internet. The VPN client on the web client redirects any requests for the servers to a specific public IP, where it is picked up by the VPN ...
  • 355
0 votes

Proxy_pass everything on the fly with Nginx

Something like this should give you a good starting point: location / { resolver 8.8.8.8; proxy_pass $arg_url; } $ curl -s http://127.0.0.1?url=http://example.com | grep title &...
  • 700
1 vote
Accepted

How to configure a system wide proxy for php file_get_contents on CentOS?

file_get_contents requires manual context setup, either as shown, or by calling stream_context_set_default with proxy settings. However, many PHP applications use libcurl, which makes use of common ...
1 vote
Accepted

How many client PCs can access interent via a proxy which has only one public IPv4 address?

It is hard to have a complete answer for this question because it is not quite correct, or else not enough information given. We can estimate how many connections could be translated. How this ...
1 vote

How many client PCs can access interent via a proxy which has only one public IPv4 address?

If you are doing Port Address Translation it'll depend on how many (TCP/UDP) ports you have and how many each machine will use at one time and how long those ports are in use. Realistically 10s to ...
  • 4,225
0 votes

NGINX proxy_pass with html hard links

You need to configure your upstream application's root URL to sub.example.org. Then the application generates correct URLs to resources it loads.
0 votes

Can't make v2ray to send DNS queries to its localhost

The problem was an extra } where I specify tag for dns. And v2ray was fine with it, ignoring rest of it.
-1 votes

Failing to proxy arbitrary URLs with NGINX

The solution is the following (read the explanation after that) : location ~* /proxy/(?<pschema>https?):/(?<phost>[\w.]+)(?<puri>\/.*) { set $adr $pschema://$phost; ...
1 vote

Failing to proxy arbitrary URLs with NGINX

nginx matches only the path part of URL in location directive. Therefore location ~ /proxy/\?url=(.*)$ { does not match anything, since you are trying to match the query string. You need to work with ...

Top 50 recent answers are included