XMPP / Jabber Server unter Debian 6 Squeeze

  1. Install
     aptitude install ejabberd
  2. edit /etc/ejabberd/ejabberd.conf
    {hosts, ["jabber.myserver.tdl"]}.
    {acl, admin, {user, "myuser", "jabber.myserver.tdl"}}.
  3. restart server
     /etc/init.d/ejabberd restart
  4. admin einrichten
     ejabberdctl register myuser jabber.myserver.tdl geheim
  5. erneuter restart
    /etc/init.d/ejabberd restart
  6. status check
    ejabberdctl status
  7. WebGui starten
    http://jabber.myserver.tdl:5280/admin
    Benutzername: myuser@jabber.myserver.tdl
  8. Clients via console hinzufügen
    ejabberdctl register myuser2 jabber.myserver.tdl geheim2

Firewall Setup

# 5222 für Jabberclients (c2s)
# 5269 Server2Server (s2s)
# 5280 admininterface auf loopback-device, erreichbar über ssh-tunnel
IPTABLES -A INPUT -m state --state NEW -p tcp --dport 5222 -j ACCEPT
IPTABLES -A INPUT -m state --state NEW -p tcp --dport 5269 -j ACCEPT

Generating a Self-Signed SSL Certificate (http://www.jabberdoc.org/app_sslkey.html)

openssl req -new -x509 -newkey rsa:4096 -days 3650 -keyout privkey.pem -out server.pem
openssl rsa -in privkey.pem -out privkey.pem
cat privkey.pem >> server.pem
rm privkey.pem

enter your domain name as the Common Name for your certificate!

One thought on “XMPP / Jabber Server unter Debian 6 Squeeze

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.