hmgle / graftcp

A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
GNU General Public License v3.0
2.1k stars 173 forks source link

white list for ip:port #21

Open c625473164 opened 5 years ago

c625473164 commented 5 years ago

Can I configire to only proxy 127.0.0.1:8080 http requests on a program?

hmgle commented 5 years ago

Only HTTP proxy? Try to modify the graftcp-local.conf:

http_proxy = 127.0.0.1:8080
select_proxy_mode = only_http_proxy

Then restart graftcp-local.

c625473164 commented 5 years ago

Sorry I mean threre are many inbounds and outbounds in my program. But I only want to redirect the request which remote ip:port is '127.0.0.1:8080'.

hmgle commented 5 years ago

Oh I see. This feature is not supported now, but can be implemented theoretically.