configure local proxy

  • Hello,


    I would like to use OMV on a Raspberry Pi 2 behind a local proxy server. I downloaded the image with omv from sourceforge and omv 2.2 runs.
    I tried to setup omv by reading tutorials but all info based on PC-hardware and a specific setup routine where a proxy can easily be put in.


    I think there must be a way to configure proxy without setup program but I have not found it in the web gui.
    Could someone help?


    I have little experience with Linux Mint and Raspbian. Do I have to edit /etc/apt/apt.conf?
    Is there a novice friendly editor?


    Sorry for my english.

  • votdev: great to hear that OMV3 will have "built-in proxy support" :thumbup:


    Zonk: I usually add the proxy config to the following files:
    /etc/environment

    Code
    http_proxy=http://host:port/
    https_proxy=http://host:port/
    ftp_proxy=http://host:port/
    no_proxy="127.0.0.1,local"


    and add a file /etc/apt/apt.conf.d/02proxy with this content:

    Code
    Acquire::http::Proxy "http://host:port/";
    Acquire::ftp::Proxy "http://host:port/";


    of course you need to change host:port to your proxy config ;)


    Most of the proxy requirements should be fulfilled with this. There might be stuff which might need additional config (maybe wget, curl, ...) but most are able to use the config from /etc/environment.

    OMV 2.x - Kralizec // Hardware: HP Microserver N54L, 4GB RAM, 2x3TB WD Red - RAID 1, Sandisk SSD 60GB for system

  • Sorry for my late answer but I hadn't configured email notification so I was waiting for nothing.


    Meanwhile I have created /etc/apt/apt.conf with:


    Code
    Acquire::http::Proxy "http://host:port/";
    Acquire::https::Proxy "http://host:port/";
    Acquire::ftp::Proxy "http://host:port/";


    It was a little bit tricky because I'm using a german keyboard and I never used "nano" before. apt-get works now.
    That's what I wanted. Other services shall not reach internet.


    Today I have stumbled about some other issues. I think I open new threads therefore.


    Thanks

  • Meanwhile I figured out that "bananian-update" needs more configuration. In /etc/profile I added as follows:


    Code
    ###  in etc/profile 
    
    
    export http_proxy=http://192.168.1.1:3128
    export https_proxy=http://192.168.1.1:3128
    export ftp_proxy=http://192.168.1.1:3128
    export HTTP_PROXY=$http_proxy
    export HTTPS_PROXY=$https_proxy
    export FTP_PROXY=$ftp_proxy


    It seems to work.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!