Configure the proxy authentication for SysVInit systems

Prev Next

Navigate to the respective directory and configure the environment variable and its value, and export it.

  1. Navigate to the directory and open the file.

    cd /etc/init.d/mfetpd

  2. Define the environment variable in the mfetpd configuration file.

    <environment variable>=<user's proxy settings>

    export <environment variable>

    For example:

    http_proxy="http://username:usernamepassword@sampleproxy.url:5678"
    export http_proxy
    
  3. Restart the mfetpd service.

    service mfetpd restart