3proxy: Difference between revisions

m Minor formatting pass, add internal link to NixOS.
imported from old wiki
 
Line 1: Line 1:
<strong>3proxy</strong> is universal proxy server. It can be used to provide internal users with fully controllable access to external resources or to provide external users with access to internal resources. 3proxy is not developed to replace squid, but it can extend functionality of existing cashing proxy. It can be used to route requests between different types of clients and proxy servers. Think about it as application level gateway with configuration like hardware router has for network layer. It can establish multiple gateways with HTTP and HTTPS proxy with FTP over HTTP support, SOCKS v4, v4.5 and v5, POP3 proxy, UDP and TCP portmappers.
== What is 3proxy ==
 
<strong>3proxy</strong> is universal proxy server. It can be used to provide internal users with fully controllable access to external resources or to provide external users with access to internal resources. 3proxy is not developed to replace squid, but it can extend functionality of existing caching proxy. It can be used to route requests between different types of clients and proxy servers. Think about it as application level gateway with configuration like hardware router has for network layer. It can establish multiple gateways with HTTP and HTTPS proxy with FTP over HTTP support, SOCKS v4, v4.5 and v5, POP3 proxy, UDP and TCP portmappers.


== Sample configuration ==
== Sample configuration ==


Just add the following to your [[Overview_of_the_NixOS_Linux_distribution#Declarative_Configuration|NixOS configuration]]:
Just add the following to your [[Overview_of_the_NixOS_Linux_distribution#Declarative_Configuration|NixOS configuration]] i.e. the <code>configuration.nix</code> file:
{{file|configuration.nix|nix|
 
<nowiki>
<syntaxhighlight lang="nix">
{
   services._3proxy = {
   services._3proxy = {
     enable = true;
     enable = true;
Line 29: Line 30:
     '';
     '';
   };
   };
}
</syntaxhighlight>
</nowiki>
}}
{{Evaluate}}


This sample configuration runs a single instance as socks proxy with user/password auth. The password can be clear text, as indicated by the <code>CL</code> for user <code>test1</code> or it can be encrypted as indicated by the <code>CR</code> for user <code>test2</code>. You can generate md5-crypted passwords via https://unix4lyfe.org/crypt/
This sample configuration runs a single instance as socks proxy with user/password auth. The password can be clear text, as indicated by the <code>CL</code> for user <code>test1</code> or it can be encrypted as indicated by the <code>CR</code> for user <code>test2</code>. You can generate md5-crypted passwords via https://unix4lyfe.org/crypt/
Line 40: Line 38:
== Firewall ==
== Firewall ==


If not set otherwise, open port <code>3128</code> on the firewall.
If not set otherwise, open port <code>1080</code> on the firewall.


== Firefox ==
== Firefox ==


To use in Firefox, you can install the FoxyProxy addon and create a new proxy. Give it a name, use <code>SOCKS5</code> and provide the proxy's IP address or domain name. If not set otherwise, use port <code>3128</code> and provider username and password.
To use in Firefox, you can install the FoxyProxy addon and create a new proxy. Give it a name, use <code>SOCKS5</code> and provide the proxy's ip address or domain name. If not set otherwise, use port <code>1080</code> and provider username and password.


[[Category: Applications]]
[[Category: Applications]]
[[Category: Server]]
[[Category: Server]]
[[Category: Networking]]
[[Category: Networking]]