Configure proxy on elastix

Discussion in 'General' started by waraltca, Mar 2, 2010.

  1. waraltca

    Joined:
    Nov 5, 2009
    Messages:
    17
    Likes Received:
    0
    hi guys...

    I have elastix 1.6 behind a proxy.
    How do I configure the proxy settings (ip and port) for elastix?

    thanks
     
  2. teguh.umar

    Joined:
    Aug 25, 2010
    Messages:
    6
    Likes Received:
    0
    open elastix terminal with ssh, and type :

    export http_proxy=http://yourProxy:yourPort/
    export ftp_proxy=ftp://yourProxy:yourPort/

    that only works for cli update command, not for elastix web console.
    Cheers
     
  3. simdevmat

    Joined:
    May 19, 2011
    Messages:
    1
    Likes Received:
    0
    To allow the elastix/freepbx web interface to use the proxy you also need to add a rule to iptables.

    So the steps you need to do is as follows (do in the terminal):
    Code:
    export http_proxy=<proxy address>:<port>
    also add the above to ~/.bashrc to make it permanent.

    Then add the following rule to iptables to route all http traffic to the proxy server.
    Code:
    iptables -t nat -A OUTPUT -o <interface E.G. eth0> -p tcp --dport 80 -j DNAT --to <proxy address>:<port>
     

Share This Page