in

Allowing CommunityManager to access the internet via a proxy

Last post 11-10-2008 3:09 PM by AlanLee. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-29-2008 11:48 AM

    • AlanLee
    • Top 25 Contributor
    • Joined on 01-20-2008
    • Sydney, Australia
    • Posts 4

    Allowing CommunityManager to access the internet via a proxy

    CommunityManager can be set up to use a proxy server to make external connections, such as to third party RSS feed's via the web.config.

    To do this - please enter the following into the web.config file in the root of the website under the tag

    <system.net>
       <defaultProxy>
          <proxy proxyaddress ="http://ip_address:port" bypassonlocal="True" usesystemdefault="False" />
       </defaultProxy>
    <system.net>

    Replace ip_address with the IP address of your proxy. I.e. 192.168.0.1
    Replace port witht he port number of your proxy. I.e. 3128

    Save the web.config file and give it a try. To confirm it is working, you may wish to monitor your proxy server's log(s) to confirm the request is going via the proxy. You should see a request via the primary IP address of your web server.

    Please note that any changes to the web.config file will cause the ASP.NET application to recompile, and any current sessions on your site will be reset and users will need to re-log into your site.

    Filed under: , ,
    • 202.27.15.254
  • 11-10-2008 2:34 PM In reply to

    • HilaryB
    • Top 10 Contributor
    • Joined on 03-07-2008
    • Penrith NSW
    • Posts 65

    Re: Allowing CommunityManager to access the internet via a proxy

    Is this a CM function or  .NET functionality?

    Can you specify a username/password?

    Regards
    Hilary

    Intranet - CM V5.4
    Internet - CM v6.0
    --
    • 203.32.142.5
  • 11-10-2008 3:09 PM In reply to

    • AlanLee
    • Top 25 Contributor
    • Joined on 01-20-2008
    • Sydney, Australia
    • Posts 4

    Re: Allowing CommunityManager to access the internet via a proxy

    Hello Hilary,

    It is using the .NET functionality to provide the access to pull data down via a proxy.  As far as I know, you cannot specify a username/password when using this method.

    But by adjusting it a little - it might be possible (I have not tested) to use the creditentals of the user of which the IIS Application Pool is running under.  This might work for Proxy servers which are tied in with AD and/or the network service under Windows in which it is automatically authenticated.  A third party proxy like Squid probably won’t work.

    <system.net>
       <defaultProxy>
          <proxy useDefaultCredentials="true" usesystemdefaults="true" />
       </defaultProxy>
    <system.net>

    Since it is using the system details – the proxy address / port is no longer required.

    • 202.27.15.254
Page 1 of 1 (3 items)