Results 1 to 4 of 4

Thread: Changing Opt-Out URL - NAT Firewall

  1. #1
    along is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    40

    Default Changing Opt-Out URL - NAT Firewall

    I did find another post with the exact same question, but it has gone unanswered for several months, (http://www.sugarcrm.com/forums/showthread.php?t=20260)...

    If sugarcrm host is behind a firewall using NAT and the only eth on host is bound to an internal IP, then the Opt-Out link generated automatically uses this internal IP and is no good. How can the IP be changed to the external IP of the host without breaking other features and functions in the application?

    Thank you for any help.

    - Andrew

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: Changing Opt-Out URL - NAT Firewall

    I would recommend that you use a host name and not the IP, then you won't have to worry about it.
    We do this all day long on our systems.
    in the config file, for the host & site url, put a host name and then in your /etc/hosts file, just make that box use the internal IP for your domain name.

  3. #3
    along is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    40

    Default Re: Changing Opt-Out URL - NAT Firewall

    Quote Originally Posted by sacramentojoe
    I would recommend that you use a host name and not the IP, then you won't have to worry about it.
    We do this all day long on our systems.
    in the config file, for the host & site url, put a host name and then in your /etc/hosts file, just make that box use the internal IP for your domain name.
    Can you be more specific and tell me which config file(s)?

    Added: I grep'd all files under /var/www/html/sugarcrm and found nothing with the internal IP of the host. Also, is there a certain port I need to open on our PIX for unsubscribe or bounces to work properly and is this port configurable somewhere?

    Thank You.
    Last edited by along; 2007-10-29 at 08:51 PM.

  4. #4
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: Changing Opt-Out URL - NAT Firewall

    OK, in the config.php file in the docroot.
    There are a few variables.
    one is 'host_name'..
    Set this to your host name.
    Example: sugarcrm.com

    The next setting you need to adjust is site_url
    example: http://www.sugarcrm.com

    This host needs to be a valid / registered host name that is accessible from the outside.

    So, lets say your host name is sugarcrm.com but from the inside, your IP is 192.168.1.203.
    So, in your hosts file (/etc/hosts) you need to make an entry for sugarcrm.com to be the ip of 192.168.1.203.
    example:
    192.168.1.203 sugarcrm.com www.sugarcrm.com

    As far as the port, you need to make sure that port 80 is open and points to your internal IP address.

    hope this helps.

    Let me know if you have any other questions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Opt Out link
    By jfainer in forum Help
    Replies: 7
    Last Post: 2009-08-03, 03:53 PM
  2. Altered link URL in email
    By papegaai in forum Help
    Replies: 0
    Last Post: 2007-07-03, 05:18 AM
  3. Replies: 4
    Last Post: 2007-05-17, 08:39 PM
  4. Replies: 1
    Last Post: 2005-10-06, 10:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •