- Install
aptitude install ejabberd
- edit
/etc/ejabberd/ejabberd.conf
{hosts, ["jabber.myserver.tdl"]}.
{acl, admin, {user, "myuser", "jabber.
"}}.myserver.tdl
- restart server
/etc/init.d/ejabberd restart
- admin einrichten
ejabberdctl register myuser jabber.
myserver.tdl geheim
- erneuter restart
/etc/init.d/ejabberd restart
- status check
ejabberdctl status
- WebGui starten
http://jabber.
:5280/adminmyserver.tdl
Benutzername:
myuser@
jabber.
myserver.tdl
- Clients via console hinzufügen
ejabberdctl register myuser2 jabber
geheim2.
myserver.tdl
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!
http://erlycoder.com/87/ssl-how-to-self-signed-ssl-certifiate-creation-with-open-ssl
http://erlycoder.com/93/ssl-how-to-install-ssl-on-ejabberd