Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a Linux server (CentOS v5), now I want the internet connection of this server is through a proxy (not direct to internet). Can anyone help me please. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    1

    Linux connect though a proxy


    Hi,

    I have a Linux server (CentOS v5), now I want the internet connection of this server is through a proxy (not direct to internet). Can anyone help me please.

    Thank you,
    cheers

  2. #2
    Just Joined! TuxKnight's Avatar
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    28

    Proxy

    To allow your server to access internet via a proxy, Add the following line to the ~/.bashrc

    export http_proxy=http://<proxy>:<port>/

    If you need a username & password to access the proxy add the following to the ~/.bashrc

    export http_proxy=http://<username>:<password>@<proxy>:<port>/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •