Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Linux connect though a proxy


    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,

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


    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