How to connect tigase to openfire? - xmpp

I have two Xmpp server,one is tigase, another is openfire. Now i want users can communicated with each other between the two servers, how can i do? how can i modify the configuration of the tigase?
Thanks very much.

You do not need to do anything to the configuration. Assuming DNS is setup correctly for domains on both servers, they should use automatically and by default s2s to connect to each other and communicate.

Just make sure to enable s2s service in both Tigase and Openfire .

Related

socketio4net-problems with proxy

I have been asked to take over a project where the previous developer had used socketio4net,
hence I learnt of the socketio4 project only now.
the problem my employer is facing is clients having proxy servers.
we have installed our product(client side) on clinics which uses socketio4net and websocket.
They all connect to our main azure server for sending data. In clinics without proxy,we are not facing any issues. but those with proxy server, our service is not even starting.
if we have to implement the ssl process, it will be a big overhead for us
how do we achieve ssl and proxy settings for sockets in general? does socketio4net provide any other options?
do I have change to http classes like webclient?
In my experience with proxies and school's in particular, the vast majority turned out to be a firewall based issue.
What port are you using, 80, 443 or something else? If that is the issue, the clinics would need to either whitelist your server ip, or allow the ip:port combo you've set.
For a quick test at the clinics that have issues - I would try these two sites (probably others sites you can find too):
http://websocketstest.com/ - tests for ports 80, 8080, 443 with and without ssl - do all or only some work?
(this site is also great for a end-user at the site to run for you, as you can get a results link - double bonus points!)
http://www.websocket.org/echo.html
Are both of the sites above able to connect?
Hope that helps...

Configure ejabberd to use streamhost proxy

I want to configure ejabberd to use an external SOCKS 5 Bytestream server for file transfer according to protocol XEP-0065. My questions are:
How can i configure ejabberd (or any other jabber server) to advertise such a service to clients.
Where do i find an S5B implementation.
Thanks
ejabberd supports XEP-0065 out of the box using a built-in module.
To enable it, you have to uncomment the related clause in the configuration file, tweak its settings according to your setup and restart the server.

can the different hosts (not ip) forwarding to the same port externally?

Im just wondering, can 2 or more different external hostname/DNS redirect to multiple local servers but same port?
Let's see, I have 2 DNS internet domain for an example, myserver1.com and myserver2.com, and both I have same A record to my forwarded server IP (e.g: 102.123.123.123). Under my server which only has 102.123.123.123 IP address has 2 application servers but instead of trying to make they work, I use different port for each server applications for an example, serverApp1 listening to 0.0.0.0:2010, serverApp2 listening to 0.0.0.0:2020
My point is, is there any way or how to forward my myserver1.com:2000 to serverApp1 (port 2010), and myserver2.com:2000 to serverApp2 (port 2020) but both myserver1.com and myserver2.com has a same A record?
Im quite sure either it is in iptables or /etc/hosts or BIND issues, but guide me if I missed something. And by the way, the servers and DNS records are accessible from the internet which is the firewalls are configured properly. Thanks.
I don't have much experience in that, but I think you will need a third server/firewall/proxy listening for the incoming host and route it accordingly.
Again, I don't have much experience in that, so I'm not sure if the firewall is able to do that.
I think you can use redirection servers like apache.
In my application we want to access lot of intranet servers from internet. So what we did, we configured a apache with all the mappings in httpd.
So when ever a request to apache comes, it will be redirected appropriately.
For example - I have two servers or hostname in intranet : 1) abc.com:7300/context1
2) xyz.com:8900/context2
We configured a apache with host name abcxyz.com:9000. When a request like
abcxyz.com:9000/context1 comes it will be redirected to abc.com:7300/context1 and when a request like abcxyz.com:9000/context2 comes it will be redirected to xyz.com:8900/context2.
In your case since the requests are going through the single server (102.123.123.123), you can use redirection.
Hope it helps.

Jboss 5 listen on different ip addresses based on different URL path

We want to harden our Jboss server. We have a web application, and there are two types of resources in this web app
'https://myserver:8443/myapp/local/'
'https://myserver:8443/myapp/intranet/'
We only want the /myapp/local to be able to accessed from localhost 127.0.0.1 and the /myapp/intranet/ can be access from another address from internal network e.g. 192.168.12.12. Is there any way we can configure this? Thanks!
Tony
I found the answer myself. Hope this is helpful for someone who runs into this someday. Here is the solution
https://community.jboss.org/wiki/LimitAccessToCertainClients

Can't connect to APNS

Does anyone know if it's possible to connect to APN via IP-adressed instead of via URL? Or do they use round robin?
In that case, what is the adresses for the push and feedback services (prod. and sandbox).
Thankful for advice.
I'm not sure about round-robin IP addresses, but why do you want to use them? By resolving them with DNS you are independent from changing IP adresses:
Sandbox: gateway.sandbox.push.apple.com
Production gateway.push.apple.com
Yes, you could use ip addresses. but we should avoid the risk that apple change the server address. domain name is fixed. so please use the domain name as possible as you can.