SUSE Support

Here When You Need Us

SUSE Linux Enterprise : How to setup a Proxy manually

This document (7006845) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12
​​​​​​​SUSE Linux Enterprise Server 11


Setting up a proxy through YaST may not be preferred in some environments, so a manual method may be used.


Each account will need either its own proxy environment variables or a global proxy can be setup. 

If the environment requires a 'per-user' setup, then the proxy configuration will need to be achieved by creating a .bashrc file in the home folder to accommodate setting for the following environment variables. 

Otherwise 'system-wide' variables can be configured by editing the global /etc/sysconfig/proxy file.

Global proxy configuration

The global configuration file should look like the example below (please adjust TCP/IP addresses and Port numbers to match the environment)

Please edit /etc/sysconfig/proxy with the following proxy values

Single user proxy configuration

When it is desired or required to set a proxy configuration for a single user, please create a .bashrc file under the users home directory, and add the following export commands :

export http_proxy=""
export ftp_proxy=""
export https_proxy=""
export no_proxy="localhost,"

Providing credentials to the proxy

If the proxy requires credentials to login you will need to create the following file:


Let us assume the user is named 'john, then the following will need to be created 


The following permissions need to be set to his file :

-rw-r--r-- 1 user:group 16:18 .curlrc

The file should also follow the format below where john is the user and n0v3ll is the password :

# Created proxy file on 09/14/2010
proxy-user = "john:n0v3ll"

Note: For the setting to take effect immediately you will need to either log out and back in or export the proxy variables via the terminal session.

Additional Information

Applications that support it, such as YaST2 Online Update, use them immediately. Other applications use them after a new login (lynx, wget). 

Some applications do not support these settings at all – they use their own settings system.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7006845
  • Creation Date: 14-Sep-2010
  • Modified Date:27-Mar-2023
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.