goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

How and how can I forward specific domains to an upstream proxy?

Open elico opened this issue 3 years ago • 3 comments

I am pretty new to GoProxy and was wondering how would I be able to forward all intercepted traffic of *.youtube.com and *.ytimg.com to a specific upstream proxy which bumps/decrypts the connections?

I am currently running the proxy with the command: /usr/bin/proxy http -t tcp -p ":18443"

on a Linux server and I am intercepting these connections using iptables: iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 18443

I want to bump/decrypt traffic only for specific domains while all the others will be passed directly. The proxy I am using to decrypt the TLS traffic is: https://github.com/andybalholm/redwood/

elico avatar Jul 14 '20 13:07 elico

use function sps instead and use --hosts argument

snail007 avatar Jul 15 '20 09:07 snail007

Can it be done the other way around? Can I specify domain names that will not go though the proxy? i.e google.com should be fowled directly while YouTube.com will use proxy?

dorsegal avatar Mar 28 '24 20:03 dorsegal

goproxy commercial edition API Auth feature can do it.

snail007 avatar Mar 29 '24 01:03 snail007