Install and Configure an Openfire server and DNS

Bootstrap a linux server:
Yep. ntpd and all that good stuff. Remember to `yum -y update`.
Here I use RHEL (fedora, centos, redhat…), so Debian might be a bit different.

Download, install and start openfire:

yum install glibc.i686
wget http://download.igniterealtime.org/openfire/openfire-3.8.2-1.i386.rpm
rpm -i openfire-3.8.2-1.i386.rpm
#modify the config if needed (like network address, disabling http, etc): http://community.igniterealtime.org/docs/DOC-1061
vim /opt/openfire/conf/openfire.xml
service openfire start
netstat -apn | grep :9090

Modify some settings:
1) Log on to the web UI
2) Set up an admin username and password and the remaining intro settings.
3) Server/Server Manager/Language and Time: Adjust the timezone setting.
4) Server/Server Manager/Email Settings: Adjust the email server setting.
5) Server/Server Settings/Server to Server/Service Enabled/Disabled: Adjust the s2s setting.
6) Server/Server Settings/Registration Settings/Inband Account Registration/Disabled: Adjust the ability for users to register themselves.
7) Server/Server Settings/Registration Settings/Anonymous Login/Disabled: Adjust the ability for users to logon anonymously.
8) Server/Server Settings/File Transfer Settings/Proxy Service/Disabled: Adjust the ability for users to utilize the server as a file transfer proxy.

Client control plugin:
This is a layer of client control. Flaws are discussed here.

1) Log on to the web UI
2) Go to plugins\Available Plugins\Client Control, click + under the Install column.
3) Go to Server\Client Management\Permitted Clients
4) If you wish to you can “Add Other Clients”. The given string will be included in a case-insensitive search of the http://jabber.org/protocol/disco#info response’s identity name parameter.

Configure public/internal DNS:
1) Decide on a server name, like chat.domainy.com or xmpp.domainy.com or openfire.domainy.com.
2) Create an A record for chat.domainy.com.
3) Create an SRV record that allows clients to find the xmpp resource:

#like: _xmpp-client._tcp.example.net. TTL IN SRV priority weight port target
_xmpp-client._tcp.domainy.com. 3600 IN SRV 5 0 5222 chat.domainy.com.

4) Create a TXT record that allows BOSH clients to configure themselves:

_xmppconnect._tcp.domainy.com. IN TXT "_xmpp-client-xbosh=https://chat.domainy.com:7443/http-bind/"
  1. pywy
    March 20, 2016 at 1:25 pm

    xmppconnect dns record should rather be:

    _xmppconnect.domainy.com. IN TXT "_xmpp-client-xbosh=https://chat.domainy.com:7443/http-bind/"
    
  2. Daniel YUNG
    September 14, 2016 at 4:46 am

    I would like to configure openfire with internet access. It’s obligation to configure public/internal DNS ?
    How i have to configure DNS (Cache / Master/ ..??)

    regards
    Dan

    • September 14, 2016 at 8:07 am

      Sorry Daniel. I don’t have any information for you, as public DNS is a complex thing. Take a look at GoDaddy DNS.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: