mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Add firewalling port range definition
SVN Revision: 1264
This commit is contained in:
parent
dcc00bca6d
commit
273c076ef6
@ -1,3 +1,8 @@
|
|||||||
|
2008-04-01 Christophe Romain <christophe.romain@process-one.net>
|
||||||
|
|
||||||
|
* src/ejabberdctl.template: Add firewalling port range definition
|
||||||
|
* src/ejabberdctl.cfg.example: Likewise
|
||||||
|
|
||||||
2008-03-31 Badlop <badlop@process-one.net>
|
2008-03-31 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
* src/ejabberd_listener.erl: Remove code of the unused listening
|
* src/ejabberd_listener.erl: Remove code of the unused listening
|
||||||
|
@ -36,6 +36,17 @@
|
|||||||
#
|
#
|
||||||
#ERL_MAX_PORTS=32000
|
#ERL_MAX_PORTS=32000
|
||||||
|
|
||||||
|
# FIREWALL_WINDOW: Range of allowed ports to pass through a firewall
|
||||||
|
#
|
||||||
|
# If Ejabberd is configured to run in cluster, and a firewall is blocking ports,
|
||||||
|
# it's possible to make Erlang use a defined range of port (instead of dynamic ports)
|
||||||
|
# for node communication.
|
||||||
|
#
|
||||||
|
# Default: not defined
|
||||||
|
# Example: 4200-4210
|
||||||
|
#
|
||||||
|
#FIREWALL_WINDOW=
|
||||||
|
|
||||||
# PROCESSES: Maximum number of Erlang processes
|
# PROCESSES: Maximum number of Erlang processes
|
||||||
#
|
#
|
||||||
# Erlang consumes a lot of lightweight processes. If there is a lot of activity
|
# Erlang consumes a lot of lightweight processes. If there is a lot of activity
|
||||||
|
@ -39,7 +39,13 @@ done
|
|||||||
NAME=-name
|
NAME=-name
|
||||||
[ "$ERLANG_NODE" = "${ERLANG_NODE%.*}" ] && NAME=-sname
|
[ "$ERLANG_NODE" = "${ERLANG_NODE%.*}" ] && NAME=-sname
|
||||||
|
|
||||||
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES"
|
if [ "$FIREWALL_WINDOW" = "" ] ; then
|
||||||
|
KERNEL_OPTS=""
|
||||||
|
else
|
||||||
|
KERNEL_OPTS="-kernel inet_dist_listen_min ${FIREWALL_WINDOW%-*} net_dist_listen_max ${FIREWALL_WINDOW#*-}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $KERNEL_OPTS"
|
||||||
|
|
||||||
# define additional environment variables
|
# define additional environment variables
|
||||||
EJABBERD_EBIN=$ROOTDIR/var/lib/ejabberd/ebin
|
EJABBERD_EBIN=$ROOTDIR/var/lib/ejabberd/ebin
|
||||||
|
Loading…
Reference in New Issue
Block a user