Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use TIdHTTPProxyServer?
#4
(06-05-2018, 04:57 AM)KPKPKPKP Wrote: now can you explain me how to use TIdSocksServer to make a proxy server?

What exactly do you not understand about it? Do you even know how the SOCKS protocol works? If you do, it is not that difficult to understand how TIdSocksServer works, since it follows the protocol pretty closely.

- Configure the server's DefaultPort and Bindings as needed to specify the local IP/Port(s) you want to listen on for SOCKS clients to connect to.

- Optionally enable/disable the AllowSocks4, AllowSocks5, and NeedsAuthentication (SOCKS v5 only) properties as needed.

- Optionally provide an OnAuthenticate event handler to validate username/password requests from SOCKS clients.

- Optionally provide an OnBeforeSocksConnect event handler to validate requests for outbound connections to the outside world.

- Optionally provide an OnBeforeSocksBind event handler to validate requests for binding a port for inbound connections from the outside world.

- Optionally provide an OnVerifyBoundPeer event handler to validate the IP/Port of outside clients connecting to a bound port.

- Set Active=True to start running the server when ready.

That is about all there is to it. TIdSocksServer handles the rest internally for you.

Reply


Messages In This Thread
How to use TIdHTTPProxyServer? - by KPKPKPKP - 06-04-2018, 08:17 AM
RE: How to use TIdHTTPProxyServer? - by rlebeau - 06-04-2018, 04:33 PM
RE: How to use TIdHTTPProxyServer? - by KPKPKPKP - 06-05-2018, 04:57 AM
RE: How to use TIdHTTPProxyServer? - by rlebeau - 06-05-2018, 06:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)