Server/Jails/SRS17: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
Zeile 68: Zeile 68:
===== /usr/local/etc/ejabberd/ejabberd.cfg =====
===== /usr/local/etc/ejabberd/ejabberd.cfg =====


<code>
<code>
 
...
...
{loglevel, 3}.
{loglevel, 3}.
...
...
{watchdog_admins, ["blotter@srs17.stura.htw-dresden.de", "pwnytail@srs17.stura.htw-dresden.de"]}.
{watchdog_admins, ["blotter@srs17.stura.htw-dresden.de", "pwnytail@srs17.stura.htw-dresden.de"]}.
...
...
{hosts, ["srs17.stura.htw-dresden.de"]}.
{hosts, ["srs17.stura.htw-dresden.de"]}.
...
...
            starttls, {certfile, "/root/ejabberd.pem"},
              starttls, {certfile, "/root/ejabberd.pem"},
            starttls_required,  
              starttls_required,  
...
...
                        %%captcha,
                        %%captcha,
                        %%http_bind,
                        %%http_bind,
                        %%http_poll,
                        %%http_poll,
...
...
{s2s_use_starttls, required}.
{s2s_use_starttls, required}.
...
...
{s2s_certfile, "/root/ejabberd.pem"}.
{s2s_certfile, "/root/ejabberd.pem"}.
...
...
{acl, admin, {user, "blotter", "srs17.stura.htw-dresden.de"}}.
{acl, admin, {user, "blotter", "srs17.stura.htw-dresden.de"}}.
{acl, admin, {user, "pwnytail", "srs17.stura.htw-dresden.de"}}.
{acl, admin, {user, "pwnytail", "srs17.stura.htw-dresden.de"}}.
...
...
{acl, blocked, {user, "test"}}.
{acl, blocked, {user, "test"}}.
{acl, blocked, {user, "root"}}.
{acl, blocked, {user, "root"}}.
{acl, blocked, {user, "r00t"}}.
{acl, blocked, {user, "r00t"}}.
{acl, blocked, {user, "r0ot"}}.
{acl, blocked, {user, "r0ot"}}.
{acl, blocked, {user, "ro0t"}}.
{acl, blocked, {user, "ro0t"}}.
{acl, blocked, {user, "adm1n"}}.
{acl, blocked, {user, "adm1n"}}.
{acl, blocked, {user, "admin"}}.
{acl, blocked, {user, "admin"}}.
{acl, blocked, {user, "kss"}}.
{acl, blocked, {user, "kss"}}.
{acl, blocked, {user, "administrator"}}.
{acl, blocked, {user, "administrator"}}.
{acl, blocked, {user, "administrat0r"}}.
{acl, blocked, {user, "administrat0r"}}.
{acl, blocked, {user, "adm1n1strat0r"}}.
{acl, blocked, {user, "adm1n1strat0r"}}.
{acl, blocked, {user, "adm1nistrat0r"}}.
{acl, blocked, {user, "adm1nistrat0r"}}.
{acl, blocked, {user, "admin1strat0r"}}.
{acl, blocked, {user, "admin1strat0r"}}.
{acl, blocked, {user, "adm1nistrator"}}.
{acl, blocked, {user, "adm1nistrator"}}.
{acl, blocked, {user, "admin1strator"}}.
{acl, blocked, {user, "admin1strator"}}.
...
...
{access, max_user_sessions, [{2, all}]}.
{access, max_user_sessions, [{2, all}]}.
...
...
{language, "de"}.
{language, "de"}.
...
...
  %%{mod_irc,      []},
    %%{mod_irc,      []},
...
...
  %%{mod_pubsub,  [
    %%{mod_pubsub,  [
                %%{access_createnode, pubsub_createnode},
                  %%{access_createnode, pubsub_createnode},
                %%{ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant
                  %%{ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant
...
...
                %%{last_item_cache, false},
                  %%{last_item_cache, false},
                %%{plugins, ["flat", "hometree", "pep"]}  % pep requires mod_caps
                  %%{plugins, ["flat", "hometree", "pep"]}  % pep requires mod_caps
                %%]},
                %%]},
...
...
                {registration_watchers, ["blotter@srs17.stura.htw-dresden.de", "pwnytail@srs17.stura.htw-dresden.de"]},
                  {registration_watchers, ["blotter@srs17.stura.htw-dresden.de", "pwnytail@srs17.stura.htw-dresden.de"]},
...
...
                {ip_access, [
                  {ip_access, [
                    {allow, "0.0.0.0/8"}
                      {allow, "0.0.0.0/8"}
                    %%{allow, "127.0.0.0/8"},
                      %%{allow, "127.0.0.0/8"},
                              %%{deny, "0.0.0.0/0"}
                                %%{deny, "0.0.0.0/0"}
                    ]},
                      ]},
...
...
 
</code>
</code>
 
 


== Siehe auch ==
== Siehe auch ==

Version vom 20. April 2013, 23:16 Uhr

Ports

installierte Ports


konfigurierte Ports

help2man

libiconv

m4

pcre

perl-threaded

portupgrade

ruby

zsh

zusätzliche Konfigurationsdateien

Jail

/etc/rc.conf

sshd_enable="YES"

/etc/ssh/sshd_config

…
ListenAddress 141.56.50.17
…
PasswordAuthentication no
…
UsePAM no
…

/usr/local/etc/ejabberd/ejabberd.cfg


...
{loglevel, 3}.
...
{watchdog_admins, ["blotter@srs17.stura.htw-dresden.de", "pwnytail@srs17.stura.htw-dresden.de"]}.
...
{hosts, ["srs17.stura.htw-dresden.de"]}.
...
             starttls, {certfile, "/root/ejabberd.pem"},
             starttls_required, 
...
                        %%captcha,
                        %%http_bind,
                        %%http_poll,
...
{s2s_use_starttls, required}.
...
{s2s_certfile, "/root/ejabberd.pem"}.
...
{acl, admin, {user, "blotter", "srs17.stura.htw-dresden.de"}}.
{acl, admin, {user, "pwnytail", "srs17.stura.htw-dresden.de"}}.
...
{acl, blocked, {user, "test"}}.
{acl, blocked, {user, "root"}}.
{acl, blocked, {user, "r00t"}}.
{acl, blocked, {user, "r0ot"}}.
{acl, blocked, {user, "ro0t"}}.
{acl, blocked, {user, "adm1n"}}.
{acl, blocked, {user, "admin"}}.
{acl, blocked, {user, "kss"}}.
{acl, blocked, {user, "administrator"}}.
{acl, blocked, {user, "administrat0r"}}.
{acl, blocked, {user, "adm1n1strat0r"}}.
{acl, blocked, {user, "adm1nistrat0r"}}.
{acl, blocked, {user, "admin1strat0r"}}.
{acl, blocked, {user, "adm1nistrator"}}.
{acl, blocked, {user, "admin1strator"}}.
...
{access, max_user_sessions, [{2, all}]}.
...
{language, "de"}.
...
   %%{mod_irc,      []},
...
   %%{mod_pubsub,   [
                 %%{access_createnode, pubsub_createnode},
                 %%{ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant
...
                 %%{last_item_cache, false},
                 %%{plugins, ["flat", "hometree", "pep"]}  % pep requires mod_caps
                %%]},
...
                 {registration_watchers, ["blotter@srs17.stura.htw-dresden.de", "pwnytail@srs17.stura.htw-dresden.de"]},
...
                 {ip_access, [
                     {allow, "0.0.0.0/8"}
                     %%{allow, "127.0.0.0/8"},
                               %%{deny, "0.0.0.0/0"}
                     ]},
...


Siehe auch