Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add a BindRandom feature? #26

Closed
kunzhipeng opened this issue Jul 15, 2016 · 5 comments
Closed

Can you add a BindRandom feature? #26

kunzhipeng opened this issue Jul 15, 2016 · 5 comments

Comments

@kunzhipeng
Copy link

The BindSame feature is very useful and easy to use(While squid needs to add many tcp_outgoing_address lines for all interfaces)!

Can you add another feature "BindRandom"?
If enabled, tinyproxy will bind the outgoing connection to a random interface(eth0, eth1, eth2, eth3, ....).

@obnoxxx
Copy link
Member

obnoxxx commented Aug 25, 2016

What would be the benefit?
And would that be random each time or once?

@johnz0r
Copy link

johnz0r commented Oct 4, 2016

Hello,

I would like this feature too !

My personal benefit would be this kind of pattern:
Let's imagine i use one instance of tinyproxy, binded on a /24 or more IP address (aka iface). On my project i need to scrap Internet, i would love to use gateway.myproject.com as proxy in curl and tinyproxy totally randomize outgoing interface. That may prevent the scrapper being banned.

Obviously i can use "BindSame yes" and my application could hold the whole IP address list, but I find it easier to maintain if it is the daemon that manages it.

Let me know,
Thank you :)

@kunzhipeng
Copy link
Author

kunzhipeng commented Oct 8, 2016

  1. I have many ADSL connections(more than 100) , the IP address of each is changing aperiodically. With"BindRandom" i can ignore that.
  2. Choise random outgoing address for each new request.

@naroga
Copy link

naroga commented Mar 8, 2017

I too would love this feature. Having tinyproxy behave as a "proxy gateway" (sorting through many outgoing interfaces, randomizing my traffic) would be amazing.

@rofl0r
Copy link
Contributor

rofl0r commented Feb 27, 2018

imo this is outside the scope of tinyproxy functionality, but with the new upstream proxy capabilities you could just redirect requests to a very simple socks5 proxy to shuffle the outgoing requests. for example there is https://github.com/rofl0r/microsocks/blob/master/sockssrv.c a socks5 server in 400 lines and i guess it'd be much easier to add this functionality to something like that, or some python script.

@rofl0r rofl0r closed this as completed Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants