This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
672 Views 3 Replies Last post: Nov 25, 2008 3:10 AM by Coolcat RSS
crystal13282 Bronze 37 posts since
Oct 13, 2008
Currently Being Moderated

Nov 21, 2008 4:06 AM

Set port sender static for Openfire

Hi to all.

I know that the port where openfire listen Server-To-Server communications is 5269. This port is established in System Properties by property:

 

Property Name                         Property Value

xmpp.server.socket.port                   5269

 

I want know that if exist a property for set port sender static for Openfire, because for default this port is random.

 

Do you understand my problem?

 

Thank you very much.

Crystal

Coolcat KeyContributor 784 posts since
Mar 19, 2007
Currently Being Moderated
Nov 21, 2008 5:36 AM in response to: crystal13282
Re: Set port sender static for Openfire
set port sender static

You want an fixed port for outgoing packets? I don't think thats possible with Openfire itself. Openfire does probably use different ports for different remote servers. However, it is possible that you could rewrite all outgoing packets that go to an remote port 5269 using iptables.

Coolcat KeyContributor 784 posts since
Mar 19, 2007
Currently Being Moderated
Nov 25, 2008 3:10 AM in response to: crystal13282
Re: Set port sender static for Openfire
Do you think that is possible to use iptables?

Something like that:

iptables -t nat -A OUTPUT -p tcp -dport 5269 -d 1.2.3.4 -j REDIRECT --to-port 1234

 

1.2.3.4 is the remote servers IP, 1234 is the desired remote server port. I'm not very familar with IP tables, you will have to figure out this yourself.

 

I think the best solution for your problem would be that plugin I suggested in that other thread. Also you should think about you if really need this priority thing.

More Like This

  • Retrieving data ...

Bookmarked By (0)