1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Elastic Search using AWS ES

Discussion in 'Enhanced Search Support' started by TheComputerGuy, Jan 8, 2016.

  1. TheComputerGuy

    TheComputerGuy Active Member

    Has anyone tried using the AWS Elastic Search setting it up?
    We are having issues with anonymous users aka xenforo trying to access it.

    We went this way as ES was already installed, one less things to manage.
  2. Slavik

    Slavik XenForo Moderator Staff Member

    What particular error are you getting?
  3. Rudy

    Rudy Well-Known Member

    If this is what I think you're asking about...

    Your firewall on AWS should be set to block access to port 9200 from outside, if you are hosting XF and ES on the same server instance. If the forum is hosted elsewhere, you should allow in only the IP address of the remote XF.

    Since I host both on the same server for now, I only allow the bare minimum of ports in, so 9200 is excluded already. And network.host is set to "localhost" in elasticsearch.yml (I believe in recent versions, it is set to that by default).

    Since I may split ES to its own cloud server in the near future, I am going to use our host's internal IP address ( so requests stay inside their network.
  4. TheComputerGuy

    TheComputerGuy Active Member

    So, we put a cname to the ip address and opened up to port only to allow certain ips.

    Amazon support is slow but helped us find the proper security technique without us requiring additional overhead.
    Rudy likes this.
  5. zagman76

    zagman76 Member

    Sorry to bump an old thread...

    Were you operating in a VPC? If so, did you open up access to your private IPs (or does the ES service run over public IPs)? Do you mind posting any non-sensitive security-group / policy configs you used to make it work?

Share This Page