Proxy
The Aitm Service includes a proxy.
You need to configure your client to use it.
How to use the service proxy
With the aitm command
By default, a one-shot execution (cli or acp) ill create its own proxy. To use the service proxy, you need to pass the --use-service flag
Example:
- with the flag
- with the AITM_USE_SERVICE environment
Manually with OS environment
You can set them manually.
- You get the service via the command:
- And you set them in your env. Example for Bash:
Manually with the PAC file (Proxy Auto-Config)
If you client supports proxy auto-detection, you can pass it on of the 2 proxy auto-configuration Url file format:
- http://localhost:{proxy_port}/wpad.dat
- and http://localhost:{proxy_port}/wpad.pac
You still need to set manually in the client store the certificate if they are not installed on your operating system.
Configuration
Port
The default value of the proxy port is by default 8080
You can set a different one with:
- the cli flag -pp or --proxy-port
- or the environment variable AITM_PROXY_PORT
If the port is taken:
- you can force its use by kill the process taking the port with the --force flag
- otherwise if the run is a:
- service run, Aitm will exit with an error
- one-shot run, Aitm will take the next available port
Support
Certificate problem
If you don't want to install the certificate, use the HTTP url so that clients don't need to validate certificates