XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    [Tutorial] Configurando proxy para update do XCP-ng

    Scheduled Pinned Locked Moved Portuguese (Português)
    2 Posts 2 Posters 1.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pedrosaP Offline
      pedrosa
      last edited by

      Por vezes operamos em ambientes protegidos por um proxy, o que torna necessária uma configuração para que as atualizações de patches seja realizada com sucesso, se este é seu caso, abaixo trarei uma forma de como fazer isso.

      Será consiredado neste artigo: ip do proxy 192.168.0.1 e porta 3128 com proxy transparente, usaremos aqui o editor "vi".

      Edite o arquivo /etc/yum.conf

      vi /etc/yum.conf
      

      Insira no final do arquivo as seuintes linhas, salve e saia

      # The proxy server - proxy server:port number
      proxy=http://192.168.0.1:3128
      

      Insira no final do arquivo .bash_profile as seguintes linhas. Salve e saia.

      vi /root/.bash_profile
      
      export http_proxy=http://192.168.0.1:3128
      export https_proxy=http://192.168.0.1:3128
      

      Insira no final do arquivo wgetrc as seguintes inhas. Salve e saia.

      vi /etc/wgetrc
      
      #proxy configuratios
      http_proxy= http://192.168.0.1:3128
      https_proxy= http://192.168.0.1:3128
      ftp_proxy= http://192.168.0.1:3128
      

      Insira no final do arquivo profile as seguintes inhas. Salve e saia.

      vi /etc/profile
      
      export http_proxy=http://192.168.0.1:3128
      export https_proxy=http://192.168.0.1:3128
      

      Linhas para o arquivo profile /etc/environment. Salve e saia.

      vi /etc/environment
      
      http_proxy="http://192.168.0.1:3128"
      https_proxy="http://1192.168.0.1:3128"
      ftp_proxy="ftp://192.168.0.1:3128"
      no_proxy=localhost,127.0.0.1/8
      export http_proxy https_proxy ftp_proxy
      
      yum update
      

      Se tudo correu como esperado o update será executado. Lembre-se de fazer as devidas liberações no seu servidor proxy e configurar corretamente o DNS de seu XCP-ng.

      Nosso grupo no Telegram: https://t.me/xcpng
      Fonte: http://oinformata.eti.br/wp/configurando-proxy-no-centos7-com-o-xcp-ng-embarcado/

      1 Reply Last reply Reply Quote 0
      • M Offline
        mavoff
        last edited by mavoff

        e porque é que tem http e https na mesma porta?
        pode funcionar, mas está errado. não é essa a abordagem correcta.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post