Oct 29, 2008 7:33 AM
Openfire can support many Server to Server?
-
Like (0)
Hi to all.
I want ask if Openfire can support many Server to Server connection between pc1 and pc2.
I have 2 pc, each one has 1 link ethernet:
pc1 -> eth0: 10.11.9.1
pc2 -> eth0: 10.11.7.1
and I already have established 1 connection S2S between pc1 and pc2 using port 5269.
I would like to know if is it possible esablish other S2S connection between pc1 and pc2 using different ports.
Thank you in advance.
Crystal
Thank you for your answer.
But I must do a lot of connection on same pc (pc1 and pc2) using different port because I must send different tipology of traffic on each port from pc1 to pc2.
ex.
port 5269 -> messenger traffic
port 5285 -> voice traffic
........
do you understand my problem?
thanks!
do you understand my problem?
probably not.
Everything that is XMPP can be done over port 5269. You may wrap arbitrary data in an XMPP packet. Things that are not XMPP have nothing to do with Openfire. Of course you could open another port between the servers using other software running on the same machines. But that would be independent from Openfire. However, that 'other software' could also be an plugin for Openfire.
P.S.: "voice traffic" and other large amounts of data are normally transferred using an peer-to-peer connection directly between the clients.
Message was edited by: Coolcat
Ok, I wrong example, I'm sorry.
I remake the question: what I want is to send different type of XMPP packets on different port. Is it possible?
ex.
type 1 of XMPP packets -> on 5962
type 2 of XMPP packets -> on 5285
.....
Forget voice traffic....
Thank you.
what I want is to send different type of XMPP packets on different port.
What a different type of XMPP packets would be? For different types of data you normally use different XML namespaces.
Example:
<iq from='romeo@montague.net/home' to='joogle@botster.shakespeare.lit' type='get' id='25asd82d'>
<data xmlns='http://example.com/protocol/foobar'>
....your data here...
</data>
</iq>
Is it possible?
I don't think so.
My objective is this:
suppose this situation:
<alert xmlns='http://example.com/protocol/foobar'><MsgType> Alert</MsgType>....data here...</alert>
and this:
<alert xmlns='http://example.com/protocol/foobar'><MsgType> Alarm</MsgType>....data here...</alert>
what I want is this:
if XMPP packet is "Alert", message must be sent on first S2S (on 5269 port for example).
if XMPP packet is "Alarm", message must be sent on second S2S (on 5285 port for example).
Do you understand what I would like to do?
thanks!
Do you understand what I would like to do?
No. Why you can't send that on the same port?
Because I must create indipendent channels. I must do different channels for different messages type (alarm or alert).
Alarm message has major priority of Alert message.
What is your idea for do this?
thanks
Alarm message has major priority of Alert message.
Ah, okay....now I understood your problem ![]()
I would try the following:
For other packets throw an PacketRejectedException
Are you saying that I must write my plugin JAVA?
mmm....I don't know java language....I think that I will lose very long time for do this....
I think that another idea is launch a lot of server Openfire on same machine. Each server manage a type of message....
Is possible launch many server Openfire (and so, many control panel) on same machine? For now I have active 1 server openfire on my machine.
Thank you very much.....
Crystal
Are you saying that I must write my plugin JAVA?
yes.
mmm....I don't know java language....I think that I will lose very long time for do this...
If you know C++, it's not that hard to learn. Basically the same syntax. If you know some other object orientated languages, I would say it's a thing of a few hours.
I think that another idea is launch a lot of server Openfire on same machine.
In that case you will need two Jabber accounts on each end (one for each server => 4 accounts) and you will need to modiy the client, so it does choose the right account for each message. I cannot say if this makes sense, it does deppend on what exactly you want to do. However, you could choose a client which is written in an language you already know.
Is possible launch many server Openfire (and so, many control panel) on same machine?
I think that should be possible, but it can be that you will have to modify the start scripts. Install the first server, change all ports, then install the second one.
I think that idea of write plugin is to abort ![]()
I know Java and C++ but my level of knowledge is very very low.
For second solution (lauch many server Openfire on same machine), I try to install the second one server but it say me:
"package openfire-3.6.0a-1 is already installed"
How can I to remedy this?
Thanks....
How can I to remedy this?
Use the *.tar.gz version of Openfire
Hi, I have removed rpm version.
I downloaded .tar.gz version of Openfire.
I have do gunzip and tar of this file but now I don't know how I can install Openfire. Now I have an Openfire directory with more directory and files inside.
Can you help me?
thanks.
EDIT 1:
I'm in directory /opt/openifre/bin, on terminal I write:
./openfire start
and I have configured it on http://localhost/9090
server is running now.
Now I try to install more server Openfire on this same machine....
I have done 2 directory:
openfire
opefire2
inside directory opt. I want to start 2 server, one from directory openfire and one from directory openfire2.
1)
I have started first openfire server and I changed this ports on control panel:
S2S -> 5269 to 5290
Client -> 5222 to 5292
Admin console port -> 9090 to 90900
Secure admin console port -> 9091 to 90910
then I have stopped first openfire server.
then I have started second openfire server and I haven't change ports.
2)
Now, I start first openfire server and it say me: the Daemon is running.
then I start second openfire server and it say me: the Daemon is running.
Now, I have launch the control panel of first server: http://localhost:90900 but it don't show me neither (page cannot be found).
What is my error?
Thank you very much....
Crystal
Now, I start first openfire server and it say me: the Daemon is running.
then I start second openfire server and it say me: the Daemon is running.
Are you sure both servers are running? You should your process list.
Are you using the same database for both servers? Thats not a good idea because e.g. the ports are stored in database.
Any error messages in the logs?
I launch both server, but the report of process is:
6215 pts/1 bash
7144 pts/1 java
7262 pts/1 ps.
I'm using embedded database for server1.
For the server2 I can't open the control panel so I can't configure it.
After change the ports for server1, I re-launch server1 on browser (http://localhost:90900) but it's say me: page cannot found.
Do you know what are the steps for launch 2 openfire server (on same machine)?
thank you,
Do you know what are the steps for launch 2 openfire server (on same machine)?
No, sorry.
Maybe you need to modify the start script somehow...
Do you know if is there a configuration file on openfire directory where is possible to change the ports of openfire?
What I want to do is this:
launch server 1, change all ports;
launch server 2 and using the defaults ports.
I think that launching server 2, I won't have conflict with server 1 because before I have changed ports of server 1.
Is it possible idea?
Thank you.
This used to be controled in part by the openfire.xml file, but now this is all done int eh web admin site.
I changed the port in this file openfire.xml (9090 to 90900) but then che control panel don't start now......
If I re-change the port 90900 to 9090 the control panel starts....
I do not believe that is a valid port. Try 10090.
It's started!!
Why port 90900 is not valid and 10090 yes?
What is the range of port valid?
thanks!!
Vaild range is 1 - 65535 (== 2^16 -1 )
Sorry, didn't notice that.
Message was edited by: Coolcat
I have done to start 2 openfire server on same machine!!!!!!
one is on port 10090
one is on port 9090
![]()
![]()
![]()
ps. Do you know if is possible change sender port of openfire? (I know that destination port is 5269)
Thank you to all!!!
Do you know if is possible change sender port of openfire?
Never tried it, but found this:
http://www.igniterealtime.org/community/docs/DOC-1061 => dnsutil.dnsOverride
see also http://www.igniterealtime.org/issues/browse/JM-711
If this does not work, maybe its possible to use some external tool (firewall, router) which does reroute the packets from outgoing port XXXXX.
You could also try xmpp.server.socket.port and xmpp.server.socket.remotePort
For set sender port, do you think that I must add the property in the :
dnsutil.dnsOverride
with this syntax:
eg: {myserver.com,100.23.34.1:5269}
eg: {myserver.com,100.23.34.1:5269}, {yourserver.com,200.45.2.25:4567}
?
so, I will set:
10.11.9.1, 10.11.9.1:5269 <- for set destination port
10.11.7.1, 10.11.7.1:5270 <- for set sender port
(my domain is same my ip address)
Do you think is it correct?
thank you very much.
Only set s2s-port of the remote server there. Because of JM-711 use no spaces in the string.
I have a problem with the 2 server openfire that are running on same machine.
The server openfire are both running.
Then, I changed client port:
on server1: 5222 to 52221
on server2: 5222 to 52222
So I can do login with 2 different client on their respective server:
client called prova1 is logged on server1 openfire
client called prova2 is logged on server2 openfire
Now, I have done a S2S connection with another server where is logged a client called prova3.
What I want is that prova1 must speak with prova3 AND prova2 must speak with prova3 at the same time.
Instead, the problem is that only prova1 can speak with prova3 OR only prova2 can speak with prova3.
I think that the problem is about Server-toServer Port (5269) because both server can't listen other server on same port.
What do you think?
thanks
I just don't think what you are doing is even possible. I really think you should spend $10 on a second ethernet card and be done with it. each install of openfire can have their own DNS entry and IP with no port conflicts. If you want to go to an extreme setup a virtual machine to take care of it.
But I already have 2 ethernet card on this machine.
Their IP are: 10.11.9.1 and 10.11.4.29
server1 is on 10.11.4.29
server2 is on 10.11.9.1
Their client must speak with a client that is logged on another server that has IP 10.11.7.1.
Do you understand my situation?
thank you.
I think that the problem is that both server openfire are on same ethernet card 10.11.9.1;
Do you know how I can do for "install" server1 on ethernet 10.11.4.29 and server2 on ethernet 10.11.9.1?
Now, users prova1 and prova2 are logged because I change the ports of their clients and on their server: 5222 to 52221 and 52222 respectively, but I think that it's wrong because both users must be logged with same port 5222, because the 2 server openfire must be indipendent (each one is on his ethernet card).
Really?
thanks.
Ok to set each instance to a particular interface edit thier openfire.xml files
<!-- Network settings. By default, Openfire will bind to all network interfaces.
Alternatively, you can specify a specific network interfaces that the server
will listen on. For example, 127.0.0.1. This setting is generally only useful
on multi-homed servers. -->
<!--
<network>
<interface></interface>
</network>
-->
I would not mess around with the server listening ports unless you are going to setup SRV records in DNS to resolve to the changed ports as it will be a client support nightmare.
I set it's so:
server1:
<!-- Network settings. By default, Openfire will bind to all network interfaces.
Alternatively, you can specify a specific network interfaces that the server
will listen on. For example, 127.0.0.1. This setting is generally only useful
on multi-homed servers. -->
<!--
<network>
<interface>10.11.9.1</interface>
</network>
-->
server2:
<!-- Network settings. By default, Openfire will bind to all network interfaces.
Alternatively, you can specify a specific network interfaces that the server
will listen on. For example, 127.0.0.1. This setting is generally only useful
on multi-homed servers. -->
<!--
<network>
<interface>10.11.4.29</interface>
</network>
-->
Do you think is it correct?
Thank you very much.
that should be fine depending on your OS environment. The nics must be unlinked and have priority set in windows so the DNS treats them as independent cards with distiquished entries in DNS. You also can manually set card priority so they always are the right NIC order for the system. The default settings do not guarantee this.
My OS is Fedora and CentOS.
Must I set anything?
thanks!
I doubt it. Windows is down right stupid compared to all other OS.
I have set the IP of ethernet card on xml file as so I write in my last post.
But I have a question:
If server1 is listening ethernet 10.11.4.29 and server2 is listening ethernet 10.11.9.1, for login prova1 on server1 and prova2 on server2, must I change client ports??
Because at moment I can connect only one client for time. (Other client say me: there was an error communicating with jabber server. Details: Authentication error: unable connect to login)
I think that I don't need to change client ports because the 2 servers are indipendent, and so the problem is other.
Really?
thanks.
I have solved this problem; the 2 openfire server are started at address:
for server1 -> http://10.11.9.1:9090/
for server2 -> http://10.11.4.29:9090/
Now prova1 is logged on server1 on port 5222, prova2 is logged on server2 on port 5222, prova3 is logged on server3 and I established two S2S connetcion between 10.11.9.1 & 10.11.7.1 and 10.11.4.29 & 10.11.7.1
I have last problem....I want that a message sent from prova1 to prova3 pass through:
10.11.9.1 -> 10.11.9.12 -> 10.11.7.1 (up link in the plan)
and a message sent from prova2 to prova3 pass through:
10.11.4.29 -> 10.11.4.12 -> 10.11.7.1 (down link in the plan)
The plan is this:
server1
10.11.9.1 <---> 10.11.9.12
_____________10.11.7.12 <---> (10.11.7.1)
10.11.4.29 <--->10.11.4.12
server2_________router________server3
Now happen that all message pass through in up link.
Do you know how I can do this?
Must I insert policy routing for packets? (I remember you that it's all on Linux OS)