Prosody IM ma tagata faʻaoga - Networks PYMES

Faʻasino lautele o le faʻasologa: Fesootaiga komepiuta mo SMEs: Faatomuaga

O lenei tusitusiga o le faʻaauauina o:

Talofa uo ma uo!

O loʻo faʻaauau pea ona matou faʻaopopoina ni fesoʻotaʻiga i luga ole laiga i luga ole laiga. Tagata fiafia Polokalama maua fua, faʻapitoa lava CentOS.

O tulaga o galuega a le kulupu na suia mo le lelei sili atu. Ua iai nei ia latou ofisa tutotonu o se fale fogafale tolu ma le potu i lalo ma e manaʻomia le faʻatinoina o se taimi vave feau tautua ma faila faila i le va o falefaigaluega, e faʻaitiitia ai le faigata o le alu i luga ma lalo o faasitepu poʻo le tele o savali. ;-). Mo lenei latou manatu e faʻaaoga le polokalama Prosody.

Ua latou maumauaʻi e faʻasalalau le tautua i luga ole Initaneti mo naʻo Tagata Faʻafiafia, ma ua latou fuafuaina e faʻafesoʻotaʻi le latou au feau masani ma isi tagata faigaluega XMPP o loʻo tuʻufaʻatasia i le Network of Networks. Mo lenei mea na latou faʻatauina ai le igoa igoa mailinux.fan ma e oʻo mai i le taimi nei o le IP tuatusi e fesoʻotaʻi ma lena igoa o loʻo puleaina e lau Initaneti ulufale.

O le talanoaga e ala i le Prosody service o le a faʻatagaina ai i latou e fefaasoaai vave feau, fesiitai faila, faia leo ma vitio konafesi, ma sili atu.

O le a le Prosody Instant Messenger?

Prosody o se fesoʻotaʻiga faʻaonapo nei e faʻavae luga o le XMPP. Ua fuafuaina mo faigofie faapipiiina ma configuration, ma lelei pulega o faiga punaoa. Prosody o se Open Source - Tatala Punaoa polokalama fausia i lalo o le faʻatagaina laisene MIT / X11.

XMPP o se filifiliga le faʻapisinisi e saunia vave feau tautua. E mafai ona faʻatinoina i totonu o se gaosiga pisinisi pisinisi, i totonu o se aiga network, tumaʻoti fesoʻotaʻiga o tuaoi, ma isi. E lagolagoina le lautele o ituaiga tagata faʻatau polokalama mo desktop ma feaveaʻi tulaga. E ala ile XMPP o lenei tautua e mafai ona tuʻuina atu i soʻo se masini.

E le gata i lea, latou te mafaia sootaga tele faʻapipiʻiina o le Prosody ma isi tautua e o gatasi ma le XMPP protocol, ma fausia ai se feʻau fesoʻotaʻiga e mafai ai ona matou faʻatonutonuina le feʻau ma faila faila o le a tupu i se auala e matua mautu lava.

Prosody ma le faʻamaoniga faʻasaga i tagata faʻaoga

I le Faʻafanua IM Nofoaga Faʻafanua na matou mauaina le fesoʻotaʻiga i le itulau Faʻamaonia Autasi, lea o loʻo taua ai e faʻapea o le vaega 0.8 o le Prosody, o loʻo lagolagoina lagolago e toʻatele plugins. E mafai ona e faʻaogaina le avetaavale fausia-i polokalama, pe mafai ona e tuʻufaʻatasia ma le lona tolu-pati faʻamaonia ma teuina sapalaiina faʻaaogaina latou API.

Faʻamaonia tautua e mafai ona tatou faʻafaigaluegaina

Igoa Faʻamatalaga ---------------- ----------------
lotoa i totonu   Le faʻamaonia faʻamaonia. O loʻo teuina faʻaupuga upu faigofie e teu ai totonu.

i totonu  O upu faʻapipiʻi na tusia e se algorithm i totonu e teuina i totonu e teu ai totonu.

cyrus       Tuʻufaʻatasia ma Cyrus SASL (LDAP, PAM,...)

le iloa    Faʻamaoniga masini faʻaaogaina SASL 'ANONYMOUS' ma soʻoga igoa igoa e le manaʻomia faʻamaoniga agavaʻa.

XMPP faʻaaogaina le tulaga Secure Layer Faʻamaonia Authentication faʻavae mo le faʻamaoniaina - Sfaʻaaoga Afaʻamaoniga ma Sfiafia LAnanafi (SASL), e faʻamaonia ai faʻamaoniga a le au maʻi. Prosody aofia ai le faletusi SASL lea e ala i le le faʻamaonia faʻamaonia tusipasi e faʻasaga i teugatupe o loʻo iai i totonu o lona teuina i totonu.

Talu mai le 0.7 o le Prosody, o loʻo lagolagoina le tautua i fafo atu SALAMO SALS lea e mafai ona faʻamaonia ia faʻamaoniga tuʻuina mai e tagata faʻaaoga i fafo atu i isi faʻamatalaga e pei o: PAM, LDAP, SQL ma isi. E faʻatagaina ai foʻi le faʻaaogaina o GSSAPI mo Nofofua Saini-I Auaunaga - Nofofua Saini-i Tautua.

I lenei tusitusiga i luga o le Prosody, ina ia ausia ai le faʻamaoniga e faʻasaga i tagata faʻaoga i le lotoifale e ala i le PAM, o le a matou faʻaaogaina le faʻamaoniga tautua «cyrus»Saunia e le afifi«cyrus sasl»Ma o lena e galue faʻatasi ma le daemon saslauthd.

cyrus-sasl ma saslauthd

[root @ linuxbox ~] # yum install cyrus-sasl

Ua uma ona faʻapipiʻi le saslauthd daemon

[root @ linuxbox ~] # getebool -a | grep saslauthd
saslauthd_read_shadow -> tapē

[root @ linuxbox ~] # setebool saslauthd_read_shadow on
[root @ linuxbox ~] # getebool -a | grep saslauthd
saslauthd_read_shadow -> luga

[root @ linuxbox ~] # systemctl tulaga saslauthd
● saslauthd.service - SASL faamaoniga daemon. Uta: utaina (/usr/lib/systemd/system/saslauthd.service; le atoatoa; tagata faʻatau preset: le atoatoa) Toaga: le toaga (maliu)

[root @ linuxbox ~] # systemctl mafai ai saslauthd
Fausia symlink mai /etc/systemd/system/multi-user.target.wants/saslauthd.service i le /usr/lib/systemd/system/saslauthd.service.

[root @ linuxbox ~] # systemctl amata saslauthd
[root @ linuxbox ~] # systemctl tulaga saslauthd
● saslauthd.service - SASL faamaoniga daemon. Utaina: utaina (/usr/lib/systemd/system/saslauthd.service; mafai; tagata faʻatau preset: le atoatoa) Toaga: toaga (tamoʻe) talu mai Sat 2017-04-29 10:31:20 EDT; 2s talu ai Faʻagasologa: 1678 ExecStart = / usr / sbin / saslauthd -m $ SOCKETDIR -a $ MECH $ FLAGS (code = exited, status = 0 / SUCCESS) Autu PID: 1679 (saslauthd) CGroup: /system.slice/saslauthd. tautua ├─1679 / usr / sbin / saslauthd -m / run / saslauthd -a pam ├─1680 / usr / sbin / saslauthd -m / run / saslauthd -a pam ├─1681 / usr / sbin / saslauthd -m / run / saslauthd -a pam ├─1682 / usr / sbin / saslauthd -m / run / saslauthd -a pam └─1683 / usr / sbin / saslauthd -m / run / saslauthd -a pam

Prosody ma lua-cyrussasl

[root @ linuxbox ~] # yum faapipii le prosody
---- Faʻaleleia faalagolago =________________________________________ Afifiina Faʻataʻitaʻiga Luga Teuina = = == =________________________________________ === ================== Faʻapipiʻi: prosody x86_64 0.9.12-1.el7 Epel-Repo 249 k Faʻapipiʻi mo faʻalagolago: lua-expat x86_64 1.3.0- 4.el7 Epel -Repo 32 k lua-filesystem x86_64 1.6.2-2.el7 Epel-Repo 28 k lua-sec x86_64 0.5-4.el7 Epel-Repo 31 k lua-socket x86_64 3.0-0.10.rc1.el7 Epel -Repo 176k Transaction Aotelega ==== ==== =________________________________________ # Faʻapipiʻi le 1 afifi (+4 Faʻamoemoega afifi) --- -

[root @ linuxbox ~] # getebool -a | grep prosody
prosody_bind_http_port -> tapē
[root @ linuxbox ~] # setebool prosody_bind_http_port i luga
[root @ linuxbox ~] # getebool -a | grep prosody
prosody_bind_http_port -> luga

[root @ linuxbox ~] # systemctl faʻatagaina le prosody
Fausia symlink mai /etc/systemd/system/multi-user.target.wants/prosody.service i le /usr/lib/systemd/system/prosody.service. [root @ linuxbox ~] # systemctl status prosody ● prosody.service - Prosody XMPP (Jabber) server Avega: utaina (/usr/lib/systemd/system/prosody.service; mafai; tagata faʻatulagaina preset: le atoatoa) Toaga: le toaga (oti )

[root @ linuxbox ~] # systemctl amata le faʻataʻitaʻiga
[root @ linuxbox ~] # systemctl tulaga faʻaletonu
● prosody.service - Prosody XMPP (Jabber) server Avega: utaina (/usr/lib/systemd/system/prosody.service; mafai; tagata faʻatau preset: le atoatoa) Toaga: toaga (tamoʻe) talu mai Sat 2017-04-29 10:35:07 EDT; 2s talu ai Faʻagasologa: 1753 ExecStart = / usr / bin / prosodyctl amata (code = exited, status = 0 / SUCCESS) Autu PID: 1756 (lua) CGroup: /system.slice/prosody.service └─1756 lua / usr / lib64 /prosody/../../bin/prosody

[root @ linuxbox ~] # tail /var/log/prosody/prosody.log
Apr 29 10:35:06 lautele info Talofa ma faʻafeiloaʻiga i le Prosody version 0.9.12 Apr 29 10:35:06 lautele info O loʻo faʻaaogaina e le Prosody le backend filifilia mo soʻotaga faʻafoeina Apr 29 10:35:06 portmanager info Faʻagaoioia auaunaga 's2s' luga [::]: 5269, [*]: 5269 Apr 29 10:35:06 portmanager info Faʻagaoioia auaunaga 'c2s' i le [::]: 5222, [*]: 5222 Ape 29 10:35:06 portmanager info Faʻaolaina auaunaga 'legacy_ssl' i luga o leai taulaga Apr 29 10:35:06 mod_posix info O le prosody o le a alu ese mai le console, faʻaleaogaina isi console output Apr 29 10:35:06 mod_posix info Na manuia le faʻamamaina i le PID 1756

[root @ linuxbox ~] # yum install lua-cyrussasl

Matou te fausiaina le talimalo talimalo "chat.desdelinux.fan" mai le "example.com" e faʻapipiʻi le Prosody

[root @ linuxbox ~] # cp /etc/prosody/conf.d/example.com.cfg.lua \
/etc/prosody/conf.d/chat.fromlinux.fan.cfg.lua

[root @ linuxbox ~] # nano /etc/prosody/conf.d/chat.mai linux.fan.cfg.lua
- Vaega mo talanoaga VirtualHost

VirtualHost "chat.desdelinux.fan"

- Tofi lenei talimalo tusi pasi mo TLS, a leai o le a faʻaaogaina le tasi - seti i le vaega o le lalolagi (pe a fai e iai). - Manatua o le tuai-sitaili SSL i luga o le port 5223 naʻo le lagolagoina le tasi tusi pasi, - ma o le a faʻaaoga i taimi uma le lalolagi atoa.
        ssl = {
                 ki = "/etc/pki/prosody/chat.key";
                tusi faamaonia = "/etc/pki/prosody/chat.crt";
        }

------ Vaega ------ - E mafai ona e faʻamaoti mai vaega e faʻaopopo ai 'auʻaunaga e tuʻuina mai ni tautua faʻapitoa, - pei o fonotaga a tagata e toʻatele, ma felauaiga. - Mo nisi faʻamatalaga i vaega, vaʻai http://prosody.im/doc/components --- Seti se MUC (multi-user chat) potu tautua i le conference.chat.desdelinux.fan:
Vaega "conference.chat.desdelinux.fan" "muc"
igoa = "Tagata Faʻafiafia" - O LE Igoa O LE KONFERENOA ROOM E FAʻAALIINA - O afea e te auai ai i le potu
restict_room_creation = moni

- Faʻatu se SOCKS5 bytestream sui mo faʻaliliuʻesega a le server-sui: --Component "proxy.chat" "proxy65" --- Seti se vaega i fafo atu (o le vaega o vaega ua le aoga o le 5347) - - O vaega i fafo e faʻatagaina le faʻaopoopoina o tautua eseese, pei e pei o faitotoʻa / - felauaʻi i isi fesoʻotaʻiga pei ICQ, MSN ma Yahoo. Mo nisi faʻamatalaga - vaʻai: http://prosody.im/doc/components#adding_an_external_component - --Component "gateway.chat" - component_secret = "password"

faamaoniga = "cyrus"
cyrus_service_name = "xmpp"
cyrus_require_provisioning = sese
cyrus_application_name = "prosody"
cyrus_server_fqdn = "chat.fromlinux.fan"

Matou te fetuunai le kulupu e ana le faila /etc/prosody/conf.d/chat.desdelinux.fan.cfg.lua

[root @ linuxbox ~] # ls -l /etc/prosody/conf.d/chat.mai linux.fan.cfg.lua 
-rw-r -----. 1 aʻa aʻa 1361 Ape 29 10:45 /etc/prosody/conf.d/chat.desdelinux.fan.cfg.lua

[root @ linuxbox ~] # chown root: prosody /etc/prosody/conf.d/chat.mai linux.fan.cfg.lua 
[root @ linuxbox ~] # ls -l /etc/prosody/conf.d/chat.mai linux.fan.cfg.lua 
-rw-r -----. 1 root prosody 1361 Apr 29 10:45 /etc/prosody/conf.d/chat.desdelinux.fan.cfg.lua

Matou te siaki le faʻavasega

[root @ linuxbox ~] # luac -p /etc/prosody/conf.d/chat.mai linux.fan.cfg.lua
[Root @ linuxbox ~] #

Tusi faʻamaonia SSL mo fesoʻotaʻiga saogalemu

Ina ia fesoʻotaʻi i le server a le Prosody -e lua mai le upega tafailagi ma mai luga o le Initaneti- ma mautinoa o femalagaaʻiga femalagaaʻi saogalemu faʻailogaina, e tatau ona tatou fausia tusi faʻamaonia SSL - Vaega o Laupapa Saogalēmū faasilasilaina i le virtual host config file /etc/prosody/conf.d/chat.fromlinux.fan.cfg.lua:

[root @ linuxbox ~] # cd / etc / prosody / certs /

[root @ linuxbox certs] # ​​openssl req -new -x509 -days 365 -nodes \
-e "chat.crt" -newkey rsa: 2048 -keyout "chat.key"
Fausia se 2048 bit RSA tumaʻoti ki ..... +++ .......... +++ tusia fou tumaʻoti ki i le 'chat.key' ----- O le a fesiligia oe e ulufale i faʻamatalaga o le a tuʻufaʻatasia i lau tusi pasi talosaga. Ole mea o le a e ulufale atu o le mea e taʻu o le Distinguished Name poʻo le DN. E i ai ni nai fanua ae e mafai ona e tuua ni avanoa Mo nisi fanua o le ai ai se faʻaletonu aoga, Afai e te ulufale '.', O le fanua o le a tuʻufua avanoa. ----- Country Country (2 letter code) [XX]: CU State or Province Name (igoa atoa) []: Cuba Locality Name (eg, city) [Default City]: Habana Organisation Igoa (eg, kamupani) [ Default Company Ltd]: FromLinux.Fan Organizational Unit Igoa (eg, vaega) []: Tagata Faʻafiafia Igoa Masani (faʻapea, lou igoa poʻo le igoa ole igoa o lau 'auvaʻa) []: chat.desdelinux.fan Imeli tuatusi []: buzz@desdelinux.fan

Matou te fesuiaʻia filifiliga faʻavaomalo filifiliga

Naʻo matou te faʻasaʻo filifiliga nei i le faila /etc/prosody/prosody.cfg.lua:

[root @ linuxbox certs] # ​​cp /etc/prosody/prosody.cfg.lua \ /etc/prosody/prosody.cfg.lua.original [root @ linuxbox ~] # nano /etc/prosody/prosody.cfg.lua
- Faila faʻataʻitaʻiga faʻataʻitaʻi o le Prosody - - Faʻamatalaga i luga o le faʻatulagaina o le Prosody e mafai ona maua i la matou - upega tafailagi i le http://prosody.im/doc/configure - - Fautuaga: E mafai ona e siakiina o le faʻamatalaga o lenei faila o saʻo - a maeʻa ona e tamoʻe: luac -p prosody.cfg.lua - A i ai ni mea sese, e faʻailoa atu ia te oe poʻo le a ma le mea - latou te i ai, a leai o le a filemu. - - Pau le mea o totoe e fai o le toe faʻaigoaina o lenei faila e aveʻese ai le .dist faʻaiʻuina, ma faʻatumu ia - avanoa. Manuia tele, ma fiafia Iabbering! ---------- Server-lautele tulaga ---------- - O tulaga i lenei vaega faʻatatau i le 'auʻauna atoa ma o seti masani - mo soʻo se' au talimalo - Lenei a (e ala i le le faʻaogaina, leai se mea) lisi o teuga tupe o loʻo taua - mo le 'auʻauna. Manatua e tatau ona e tuʻu eseʻese tala - (tagaʻi i le http://prosody.im/doc/creating_accounts mo faʻamatalaga) - Faʻataʻitaʻiga: admin = {"user1@example.com", "user2@example.net"}
admin = {"buzz@chat.desdelinux.fan", "trancos@chat.desdelinux.fan"}

- Faʻaaoga le faʻaogaina o le libevent mo se faʻatinoga sili atu i lalo ole mamafa - Mo nisi faʻamatalaga vaai: http://prosody.im/doc/libevent --use_libevent = moni; - Lenei o le lisi o modules Prosody o le a uta i le amataga. - E vaʻai mo mod_modulename.lua i totonu o plugins folder, ia e mautinoa o loʻo iai foʻi. - Faʻamaumauga i luga o modules mafai ona maua i le: http://prosody.im/doc/modules modules_enabled = {- E masani ona manaʻomia "lisi"; - Faʻatagaina tagata faʻaoga ia i ai se lisi. Fautuaina;) "saslauth"; - Faʻamaoniga mo tagata ma tautua. Fautuaina pe a fai e te manao e ulufale i totonu. "tls"; - Faʻaopopo le lagolago mo le saogalemu TLS luga c2s / s2s fesoʻotaʻiga "dialback"; - s2s dialback support "disk"; - Mauaina tautua - E le manaʻomia, ae fautuaina "tumaoti"; - Faleoloa XML teuina (mo potu tusi, ma isi) "pepa"; - Faʻatagaina tagata faʻaaoga e seti vCards - O nei e fai mai manatu e ala i le le mafai ona o latou aʻafiaga aʻafiaga - "faʻalilolilo"; - Lisi o faʻamatalaga e puipuia ai oe - "taofiofia"; - Faʻatonutonu vaitafe (Manatua: Manaʻomia faʻapipiʻi lua-zlib RPM afifi) - Manaia le i ai o "version"; - Tali atu i le auvaʻa faʻamatalaga talosaga "uptime"; - Lipoti le umi na fai ai le tautua "taimi"; - Faʻailoa i isi le taimi iinei i luga o lenei sapalai "ping"; - Tali i XMPP pings ma pongs "pep"; - Faʻamalosia tagata faʻaoga e lolomi o latou lagona, gaioiga, taina o musika ma sili atu "resitara"; - Faʻatagaina tagata faʻaaoga e lesitala i luga o lenei 'auʻaunaga faʻaaoga se tagata ma suia password - Faʻafesoʻotaʻi admin "admin_adhoc"; - Faʻatagaina pulega faʻatonutonu e ala ile tagata faigaluega XMPP o loʻo lagolagoina tulafono faʻatonutonu - "admin_telnet"; - Tatala le fesoʻotaʻiga o le telnet console ile localhost port 5582 - HTTP modules
        "bosh"; - Faʻaola BOSH tagata faʻatau, aka "Jabber over HTTP"
        - "http_files"; - Aua neʻi faʻamau ni faila mai se tusi faʻasino i luga o le HTTP - Isi faʻaupuga aoga "posix" - POSIX gaioiga, lafoina le auvaa i tua, mafai ai syslog, ma isi. - "kulupu"; - Lagolago faʻatasi lagolago - "faʻasalalau"; - Lafo faʻasalalauga i tagata uma e faʻaaoga le initaneti - "faʻafeiloaʻi"; - Faʻafeiloaʻi tagata faʻaoga e lesitala tala - "vaʻaiga vaʻaia"; - Faʻalauiloa admin o lesitala - "motd"; - Lafo se tala i tagata faʻaaoga pe a latou ulufale i totonu - "legacyauth"; - Faʻamaoniga tuʻufaʻasolopito. Naʻo le pau le mea na faʻaaogaina e nisi o tagata tuai ma faʻatau. };

bosh_ports = {{port = 5280; ala = "http-fusia"; Ofisa = "127.0.0.1"; }}

bosh_max_inactivity = 60
- Faʻaaoga pe a fai o le sui HTTPS-> HTTP i le itu a le 'auʻaunaga
consider_bosh_secure = moni
- Faʻatagaina avanoa mai tusitusiga i luga o soʻo se 'upega tafaʻilagi e aunoa ma se sui (manaʻomia se faʻaonapo nei browser)
cross_domain_bosh = moni

- O nei modules e otometi lava ona utaina, ae a tatau ona e manaʻo - ia faʻamuta ae le faʻamalosia i latou iinei: modules_disabled = {- "offline"; - Faleʻoloa faʻasalalau offline - "c2s"; - Faʻatautaia fesoʻotaʻiga a tagata maʻi - "s2s"; - Faʻafesoʻotaʻi le 'auʻauna-i-le tautua fesoʻotaʻiga}; - Faʻaleaogaina le fausiaina o teugatupe e ala i le le masani ai, mo le puipuiga - Mo nisi faʻamatalaga vaʻai i le http://prosody.im/doc/creating_accounts allow_regibution = sese; - Nei o faʻatulagaina fesoʻotaʻi SSL / TLS. Afai e te le manaʻo - ia faʻaaoga SSL / TLS, oe mafai ona fai se tala pe aveʻese lenei ssl = {key = "/etc/pki/prosody/localhost.key"; tusi faamaonia = "/etc/pki/prosody/localhost.crt"; } - Faʻamalosi tagata e faʻaoga faʻailoga fesoʻotaʻiga? Lenei filifiliga o le a - puipuia tagata mai le faʻamaonia seʻi vagana ua latou faʻaaogaina faʻailoga.

c2s_require_encryption = moni

- Faʻamalosi tusi faʻamaonia mo tautua a le server-to-server? - E maua ai se puipuiga lelei, ae manaʻomia 'auʻauna e te faʻafesoʻotaʻia - ma e lagolagoina le faʻailoga MA o loʻo aoga, maufaatuatuaina tusi pasi. - FAʻAALIGA: Lau lomiga o LuaSec tatau ona lagolagoina tusi faʻamaonia faʻamaonia! - Mo nisi faʻamatalaga vaʻai http://prosody.im/doc/s2s#security s2s_secure_auth = sese - Tele server e le lagolagoina le faʻaupuga pe leai se aoga pe sainia e ia lava - tusi faamaonia. E mafai ona e lisiina tuatusi iinei e le manaʻomia - faʻamaonia faʻaaogaina tusi pasi. Latou o le a faʻamaoniaina faʻaaogaina DNS. --s2s_insecure_domains = {"gmail.com"} - Tusa lava pe e te tuua le s2s_secure_auth ua le aoga, oe mafai lava ona manaʻomia lelei - tusi faʻamaonia mo nisi vaega i le faʻamaotiina o se lisi iinei. --s2s_secure_domains = {"jabber.org"} - Filifili le faʻamaoniga i tua e faʻaaoga. O 'auʻaunaga i totonu' - faʻaaoga le Prosody's configured data storage e teu ai le faʻamaoniga faʻamaumauga. - Ia faʻatagaina le Prosody e tuʻuina atu ni faʻamaoniga mautinoa i tagata, o le - auʻaunaga tuʻufaʻatasi faleoloa passwords i le plaintext. Afai e te le faʻatuatuaina lou - server faʻamolemole vaʻai i le http://prosody.im/doc/modules/mod_auth_internal_hashing - mo faʻamatalaga e uiga i le faʻaaogaina o le backhed backend.

- faʻamaoniga = "totonu_plain"
faamaoniga = "cyrus"
cyrus_service_name = "xmpp"
cyrus_require_provisioning = sese

- Filifili le backend teuina e faʻaaoga. O le mea masani e faʻaaoga e le Prosody faila faʻamaʻa - i lana faʻamaumauga o faʻamaumauga, ae o loʻo lagolagoina foʻi isi pito i tua - e ala atu i masini. O le "sql" backend e aofia ai i le le masani ai, ae manaʻomia - faʻaopoopoga faʻalagolago. Vaʻai http://prosody.im/doc/storage mo nisi faʻamatalaga. --storage = "sql" - O le faaletonu o le "totonu" (Manatua: "sql" manaʻomia faʻapipiʻi - lua-dbi RPM afifi) - Mo le "sql" backend, oe mafai ona faʻaletonu * tasi * o mea i lalo e faʻatulaga: - sql = {driver = "SQLite3", database = "prosody.sqlite"} - Lefaʻamau. 'database' o le igoa faila. --sql = {driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost"} --sql = {driver = "PostgreSQL", database = "prosody ", username =" prosody ", password =" secret ", host =" localhost "} - Lologa faʻatulagaina - Mo logging alualu i luma vaai http://prosody.im/doc/logging log = {- Log everything of level" info " ma maualuga atu (o lona uiga, uma vagana ai "debug" feʻau) - i le /var/log/prosody/prosody.log ma mea sese foi ia /var/log/prosody/prosody.err
    debug = "/var/log/prosody/prosody.log"; - Suia le 'info' i le 'debug' mo le logose logose
    error = "/var/log/prosody/prosody.err"; - E faʻapea foi ona faila faila - error = "* syslog"; - Faʻailoga sese foi i syslog - log = "* faamafanafana"; - Log i le console, aoga mo debugging ma daemonize = sese} - POSIX faʻatulagaina, vaʻai foi http://prosody.im/doc/modules/mod_posix pidfile = "/run/prosody/prosody.pid"; --daemonize = sese - O le faaletonu o le "moni" ------ Faʻamau config config ------ - Mo faʻalapotopotoga faʻamoemoe e te ono manaʻo e faʻaopopo VirtualHost ma - Component faʻauiga ia latou lava config faila. Lenei laina aofia - uma config faila i /etc/prosody/conf.d/ Faʻaofia "conf.d / *. Cfg.lua"

Suiga i le faʻatulagaina o Dnsmasq i le linuxbox

/Etc/dnsmasq.conf faila

Na ona faʻaopopo le tau cname = chat.fromlinux.fan, linuxbox.fromlinux.fan:

[root @ linuxbox ~] # nano /etc/dnsmasq.conf
----- # ----------------- ---------------- * # REGISTROSCNAMEMXTXT # ---------------- ----------------- # Lenei ituaiga o lesitala manaʻomia o le ulufale # i le / etc / host faila # ex: 192.168.10.5 linuxbox.fromlinux.fan linuxbox # cname = ALIAS, REAL_NAME cname = mail.fromlinux.fan, linuxbox.fromlinux.fan
cname = chat.fromlinux.fan, linuxbox.fromlinux.fan
----

[root @ linuxbox ~] # tautua dnsmasq toe amata
[root @ linuxbox ~] # tautua dnsmasq tulaga [root @ linuxbox ~] # talatalanoaga talimalo
O le chat.desdelinux.fan o se igoa faʻaigoa mo linuxbox.desdelinux.fan. linuxbox.desdelinux.fan ei ai le tuatusi 192.168.10.5 linuxbox.desdelinux.fan meli o loʻo tagofia e le 1 mail.desdelinux.fan.

/Etc/resolv.conf faila

[root @ linuxbox ~] # nano /etc/resolv.conf 
suʻe le desdelinux.fan nameserver 127.0.0.1 # Mo fesili i fafo pe le o le domain DNS fesili # desdelinux.fan # local = / desdelinux.fan / nameserver 172.16.10.30

Suiga i le DNS fafo i le ISP

Matou te faʻapaʻia le tusitusiga atoa «NSD Faʻamalosia DNS Server + Shorewall - SME Networks»I le mataupu pe faʻafefea ona faʻalauiloa faamaumauga a le SRV e fesoʻotaʻi ma le XMPP ina ia mafai ai ona alu i fafo le 'auʻaunaga a le Instant Messaging i luga o le Initaneti, ma ia mafai ai ona tuʻufaʻatasia le server a le Prosody ma le vaega o totoe o le XMPP o loʻo iai i luga o le upega tafailagi

Matou toe amataina le Prosody

[root @ linuxbox ~] # tautua prosody toe amata
Toe faʻafoʻi i le / bin / systemctl toe amataina le prosody.service
[Root @ linuxbox ~] # tautua prosody tulaga
Faʻatonutonuina i le / bin / systemctl tulaga prosody.service ● prosody.service - Prosody XMPP (Jabber) server Avega: utaina (/usr/lib/systemd/system/prosody.service; mafai; tagata faʻatau preset: le atoatoa) Toaga: toaga (tamoʻe) talu mai le Sun 2017-05-07 12:07:54 EDT; 8s talu ai Faʻagasologa: 1388 ExecStop = / usr / bin / prosodyctl taofi (code = exited, tulaga = 0 / SUCCESS) Faʻagasologa: 1390 ExecStart = / usr / bin / prosodyctl amata (code = exited, status = 0 / SUCCESS) Main PID : 1393 (lua) CGroup: /system.slice/prosody.service └─1393 lua /usr/lib64/prosody/../../bin/prosody

[root @ linuxbox ~] # tail -f /var/log/prosody/prosody.log
  • E sili ona maloloina le tatalaina o se faʻamafanafanaga fou ma le muamua faʻatonuga tamoʻe, ma matamata i le galuega faatino o le Prosody debug ao toe amataina le tautua.

Matou te configure Cyrus SASL

[root @ linuxbox ~] # nano /etc/sasl2/prosody.conf
pwcheck_method: saslauthd mech_list: PLAIN

[root @ linuxbox ~] # tautua saslauthd toe amata
Toe faʻafoʻi i le / bin / systemctl toe amata le saslauthd.service
[root @ linuxbox ~] # tautua saslauthd tulaga

- Afai ...
[root @ linuxbox ~] # tautua prosody toe amata

PAM faʻatulagaina

[root @ linuxbox ~] # nano /etc/pam.d/xmpp
Auth aofia ai password-auth account aofia ai password-auth

Siaki faʻamaoniga a le PAM

  • I le siakiina, e tatau ona tatou faʻatinoina le faʻatonuga nei SAUNIGA e pei ona taʻua i lalo, talu ai e uiga i le faʻatinoina o se faʻatonuga pei o le "prosody" tagata faʻaoga ae le o le "aa" tagata faʻaaoga:
[root @ linuxbox ~] # sudo -u liʻo faʻataʻitaʻiga testaslauthd -s xmpp -u strides -p strides
0: OK "Manuia."

[root @ linuxbox ~] # sudo -u prosody tofotofogaaslauthd -s xmpp -u legolas -p legolas
0: OK "Manuia."

[root @ linuxbox ~] # sudo -u prosody tofotofogaaslauthd -s xmpp -u legolas -p Lengolas
0: LEAI "faʻamaonia le aoga"

O le faʻamaoniga faʻasaga i tagata faʻaoga e galulue saʻo.

Matou te fesuiaʻia le FirewallD

Faʻaaogaina o le kalafi aoga «Palola«, Mo le eria«lautele»Matou te faʻagaoioia auaunaga:

  • xmpp-pusa
  • xmpp-tagata faʻatau
  • xmpp-auauna
  • xmpp-lotoifale

Faapena foi mo le eria «ese»Matou te faʻagaoioia auaunaga:

  • xmpp-tagata faʻatau
  • xmpp-auauna

Ma matou tatalaina taulaga tcp 5222 ma le 5269.

Mulimuli ane, tatou faia suiga i Taimi faʻatinoina a Tumau y toe uta le FirewallD.

XMPP Psi Tagata Faʻatau

Ina ia fesoʻotaʻi i le faʻatoa faʻapipiʻiina le Prosody Instant Messaging server, e mafai ona tatou filifili i le va o tagata eseese o loʻo iai:

  • Agaga Malamalama
  • Gajim
  • Kadu
  • Psi
  • psi fa'aopoopo
  • Pidgin
  • Telefathy
  • Weechat

O loʻo alu pea le lisi. Sa matou filifilia le Psi +. Ina ia faʻapipiʻi matou faʻaaogaina le manaʻomia faʻatonuga mo ia pe matou te faia e ala i meafaʻata kalafi avanoa mo lena galuega. A maeʻa ona faʻapipiʻi, ona matou faʻatinoina lea, ma i le faaiuga o le tusitusiga matou te tuʻuina atu ai ni faʻasologa o ata matou te faamoemoe o le a aoga ia te oe.

Aotelega

  • E mafai ona matou faʻatulagaina se Instant Messaging service e faʻavae i luga o le Prosody mo le au faʻaoga i le lotoifale o le system, ma faʻamavae ma le fausiaina o totonu o le Prosody tagata faʻaoga poʻo isi ituaiga o faʻamaoniga faʻamaonia teuina.
  • O le faʻamaoniga faʻamaonia agavaʻa o le a malaga faʻailogaina mai le tagata o tausia i le 'auʻauna, ma tali mulimuli i le tagata o tausia faʻapea foi.
  • E mafai ona matou faʻapipiʻiina le sili atu ma le tasi le tautua faʻavae i luga o le lotoifale faʻamaonia e ala i le PAM i luga o le tasi tautua.
  • I le taimi nei, o le sapalai linuxbox.fromlinux.fan saunia auaunaga nei i le SME Network:
    • Iugafono o Igoa Igoa poʻo DNS.
    • Faʻavasegaina maoaʻe o IP poʻo DCHP tuatusi
    • Auaunaga Taimi Network poʻo le NTP
    • Faʻamaumauga e ala i le SSH mai le UNIX / Linux tagata faʻatau, pe auala atu i le WinSCP mo le Microsoft Windows client.
    • Auaunaga Feau Vave - Talanoa. Maua foi mai le Initaneti.
    • Faila tufatufaina tautua e ala i le Talanoaga lava ia. Maua foi mai le Initaneti
    • Teleconferencing auaunaga e mafai ona e configure i le Prosody.

Ma auaunaga uma na muamua atu ma ni nai mea faigaluega ata mo le faʻavasegaina o le Firewall - FirewallD, ma mo le Tagata e faʻaaogaina ma le Vaega o pulega o le polokalama e faigofie moni ona faʻaaogaina pe a fai o ia i matou le malamalama masani e uiga i mea matou te manaʻo e fai.

Taua

Ia mautinoa e asiasi ole URL lea e mulimuli mai e iai au faʻamatalaga atoa e uiga i le Prosody: http: //prosody.im.

Seia oʻo i leisi sosoʻo!


O mataupu o le tusitusiga e tausisi ia tatou mataupu silisili o amio lelei faʻatonu. E lipotia se mea sese kiliki iinei.

10 manatu, tuʻu lau

Tuʻu lau faamatalaga

o le a le lomia lou tuatusi imeli.

*

*

  1. E tali atu mo faʻamatalaga: Miguel Ángel Gatón
  2. Faamoemoega o faʻamatalaga: Pulea le SPAM, faʻamatalaga pulega.
  3. Tulaga faʻatulafonoina: Lau maliega
  4. Fesoʻotaʻiga o faʻamatalaga: O faʻamatalaga o le a le fesoʻotaʻi atu i isi vaega vagana i tulafono faʻatulafonoina.
  5. Teuina o faʻamatalaga: Faʻamaumauga tuʻufaʻatasia e Occentus Networks (EU)
  6. Aia Tatau: I soo se taimi e mafai ai ona e faʻatapulaʻaina, toe maua ma aveʻese au faʻamatalaga.

  1.   Guillermo malo

    Manaia tele au saofaga uma, faafetai tele lava mo i latou uma.

  2.   IWO malo

    Le afe faʻamalo Federico mo le isi tusitusiga sili.
    O iinei na aumai ai e le tusitala ("aumai") ​​le "howto iloa" o auala e faʻatino ai le auaunaga Chat e ala i le Prosody o loʻo faʻaaogaina le XMPP protocol i totonu o se upega tafailagi e fefaasoaai ai feau vave, fesiitaʻi faila, faia fonotaga ma leo ma vitio, faʻamaonia faʻasaga i le tagata faʻaoga i le lotoifale i luga o faʻamaumauga malupuipuia.
    I se faʻaopopoga, e pei ona masani ai i le atoa PYMES series, e faʻafaigofie e le tusitala le tuʻufaʻatasia o le tautua e teuteuina ma le toega o tautua ma / poʻo tapulaʻa ua maeʻa faʻagaioia i totonu o se upega:
    1- O faʻatonuga e tatau ona tatou faia i le auaunaga DNS e aofia ai le auaunaga Talatalanoaga ma mea uma galue saʻo.
    2- Le faʻatulagaina (ma siaki) o le PAM e faʻamaonia i le lotoifale le auaunaga Chat.
    3- O a mea e tatau ona tatou faia ile Firewall mo le local network ma le "Network of Networks" e faʻatagaina ai le auaunaga a le Chat, ma le mea lea ma le maualuga o le puipuiga.
    4- Ma mulimuli ane o le faʻamaonia o le Talanoaga mai se tagata faatau XMPP.
    Leai se mea e sefe ai le pou i totonu ole tusi faʻatonutonu TIPS mo le taimi e tatau ona faʻatino ai lenei tautua.

  3.   Feterika malo

    Ou te faamoemoe o latou aoga ia te oe i nisi auala. Faʻafetai mo le manatu

  4.   Feterika malo

    Uo IWO, na e mauaina le autu moni o le tusitusiga. Naʻo le faʻaopopo atu o loʻo matou faʻatinoina auaunaga mo se UNIX / Linux network, tusa lava pe o ana tagata uma o Microsoft Windows. Tele tagata faitau atonu e leʻi maitauina lena laʻititi auiliiliga. 😉

  5.   Zodiac Carburus malo

    Lelei tele saofaga uo Fico. E te iloa na ou mulimulitaʻi i au tusitusiga uma ma i mea mulimuli e 4 na ou aʻoaʻoina ai le tele o fesili ou te leʻi iloa ona o le pupuni o le Active Directory ma le Domain Controller tuu i oʻu lava foliga. Na ou fanau masani ma le NT 4 ma ona PDCs ma BDCs. Ou te leʻi iloa e mafai ona ou faʻafaigofieina faʻamaoniga luga o se fesoʻotaʻiga i le tasi masini faʻaaogaina Centos poʻo isi Linux. O lenei ua ou aʻoaʻoina se filosofia fou ua ou vaʻaia ua leva ona pei o le amataga o le talaʻaga o fesoʻotaʻiga. E ui lava e te tau mai ia te aʻu sina mea o le ae lolomiina 😉 Ou te manatu o le a e faʻaauau pea i le LDAP ma le Active Directory faʻavae i le Samba 4?. Faʻafetai mo lou faʻamaoni i le mafuaʻaga o maua fua polokalama. O le a ou faʻatali mo lauisi tusitusiga, Fico.

  6.   Eteuati Claus malo

    Tiger, tala sili !!!!!

    Le paʻaga, e i ai se tamaʻi auiliiliga, i le DNS vaega, oe faʻasino le atoa laupepa mai desdelinux.fan i le IP 172.16.10.10, ua e faʻatinoina lenei sapalai i Debian (le DNS tasi), nei, o lenei talatalanoaga, o i CentOS , o lea mea moni e i ai se eseʻese IP tuatusi, o le a le mea na e le mauaina o le toe tuʻuina atu o auala uma i luga o le firewall i lenei IP lea o le taimi nei feau tautua o le ai ai, talu ai i le taimi nei e tusi i le DNS server tutusa ma e leai le tautua avefeʻau.

    A leai mea matagofie uma, o se opo lapoa.

  7.   Feterika malo

    Faʻafetai Eduardo mo le faʻamatalaga. Oe faitau lelei le palakalafa:

    Faʻapena foi mo le "fafo" eria matou faʻagaoioia auaunaga:

    xmpp-client
    xmpp-server

    Ma matou tatalaina le tcp ports 5222 ma 5269.

    Ou te faʻatagaina le gaosiga o le XMPP protocol e ala i le ens34 interface. Manatua le pou o loʻo i lalo, mai le tusiga a le Squid. 😉

  8.   Feterika malo

    Zodiac uo: oe faia aʻu faʻailoa atu aʻu mea e ofo ai muamua. Leai, e leʻo alu nei le LDAP. E alu ile autu ole server meli faʻavae ile Postfix, Dovecot, Squirrelmail, ma le faʻamaoniga ole PAM, ole vaega mulimuli lea o le mini series. Sili atu na. ;-). Afai e oʻo mai le mea o totoe seʻia tatou oʻo atu i Samba 4 AD-DC. Fa!.

  9.   Eteuati Claus malo

    Ioe laʻu uo, afai ou te faitauina, ae ou te le o vaʻai i le PREROUTING i le isi server i se mea, tagaʻi ane.

  10.   Feterika malo

    Eduardo: Fai le faʻapipiʻiina. Faʻafesoʻotaʻi se komepiuta ma se subnet IP 172.16.10.0/24. Faʻapipiʻi iai le tagata faʻatalanoa talanoaga ma fesoʻotaʻi i le Prosody. Ma sa ou faia ma sa galue faapena. 😉
    O le FirewallD o se tasi o CentOS o le a PREROUTING i lana ia lava ala.