Home » Other Tools and Utilities

How to bind specific interface of the machine to Firewall Analyzer application?


How to bind specific interface of the machine to Firewall Analyzer application? 

 

 

 

For customers of version 7.5 or higher

 

  • In Windows, to comment a line in the batch (.bat) file prefix 'rem' to the line and to uncomment remove the 'rem' in the beginning of the line.
  • In Linux, to comment a line in the script (.sh) file prefix '#' to the line and to uncomment remove the '#' in the beginning of the line.

 

For Windows Machine: (running as application and not as service)

  • Shutdown Firewall Analyzer.
  • Open the run.bat file which is under <Firewall Analyzer Home>\bin directory and go to "RESTART Command block", uncomment the below RESTART command line and replace <ip-address> with the IP address to which you want to bind the application, comment the existing RESTART command line and save the file.

    rem %JAVA% %JAVA_OPTS% -cp "%CLASS_PATH%" com.adventnet.mfw.Starter %SAFE_START% -c default -b <ip-address>

    to

    %JAVA% %JAVA_OPTS% -cp "%CLASS_PATH%" com.adventnet.mfw.Starter %SAFE_START% -c default -b <ip-address>

     

    %JAVA% %JAVA_OPTS% -cp "%CLASS_PATH%" com.adventnet.mfw.Starter %SAFE_START%

    to

    rem %JAVA% %JAVA_OPTS% -cp "%CLASS_PATH%" com.adventnet.mfw.Starter %SAFE_START%

  • Open setcommonenv.bat file which is under <Firewall Analyzer Home>\bin directory and go to "JAVA_OPTS Setting command Block", uncomment the below JAVA_OPTS setting command line and replace <ip-address> with the IP address to which you want to bind the application and comment the existing JAVA_OPTS setting command.

    rem set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>

    to

    set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>

     

    set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms256m -Xmx1024m

    to

    rem set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms256m -Xmx1024m

  • Save the file
  • Open the database_param.conf file which is under <Firewall Analyzer Home>\conf directory and replace localhost in url tag with the <binding IP address> to which you want to bind the application and save the file.

    url=jdbc:postgresql://localhost:33336/firewall?stringtype=unspecified

    to

    url=jdbc:postgresql://<binding IP address>:33336/firewall?stringtype=unspecified

  • Open the postgresql.conf file which is under <Firewall Analyzer Home>\pgsql\data directory and uncomment the line '#listen_addresses = 'localhost'' in the CONNECTIONS AND AUTHENTICATION section and replace the 'localhost' with the '<binding IP address>' to which you want to bind the application and save the file.

    #------------------------------------------------------------------------------
    # CONNECTIONS AND AUTHENTICATION
    #------------------------------------------------------------------------------

    # - Connection Settings -

    #listen_addresses = 'localhost' # what IP address(es) to listen on;
    # comma-separated list of addresses;
    # defaults to 'localhost'; use '*' for all
    # (change requires restart)

     

    to

     

    #------------------------------------------------------------------------------
    # CONNECTIONS AND AUTHENTICATION
    #------------------------------------------------------------------------------

    # - Connection Settings -

    listen_addresses = <binding IP address> # what IP address(es) to listen on;
    # comma-separated list of addresses;
    # defaults to 'localhost'; use '*' for all
    # (change requires restart)

  • Open the pg_hba.conf file which is under <Firewall Analyzer Home>\pgsql\data directory and add the line

host all all <binding IP address in IPv4 format>/32 trust

 

after the line

 

host all all 127.0.0.1/32 trust

 

and save the file.

    # TYPE DATABASE USER ADDRESS METHOD

     

    # IPv4 local connections:

    host all all 127.0.0.1/32 trust

    # IPv6 local connections:

    host all all ::1/128 trust

     

    to

     

    # TYPE DATABASE USER ADDRESS METHOD

     

    # IPv4 local connections:

    host all all 127.0.0.1/32 trust

    host all all <binding IP address in IPv4 format>/32 trust

    # IPv6 local connections:

    host all all ::1/128 trust


  • Restart Firewall Analyzer.

 

 

For Windows machine (running as service)

  • Stop the Firewall Analyzer service.
  • Open setcommonenv.bat file which is under <Firewall Analyzer Home>\bin directory and go to "JAVA_OPTS Setting command Block", uncomment the below JAVA_OPTS setting command line and replace <ip-address> with the IP address to which you want to bind the application and comment the existing JAVA_OPTS setting command.

    rem set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>

    to

    set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>

     

    set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms256m -Xmx1024m

    to

    rem set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms256m -Xmx1024m

  • Save the file
  • Open the wrapper.conf file which is under <Firewall Analyzer Home>\server\conf and go to "Adding Application Parameters Block", uncomment the below Application Parameters from 2 to 5 and replace <ip-address> in 4th and 5th Application Parameter with the IP address to which you want to bind the application and save the file.

    wrapper.app.parameter.1=com.adventnet.mfw.Starter
    #wrapper.app.parameter.2=-L../lib/AdventNetDeploymentSystem.jar
    #wrapper.app.parameter.3=-c default
    #wrapper.app.parameter.4=-b <ip-address>
    #wrapper.app.parameter.5=-Dspecific.bind.address=<ip-address>

  • Open the database_param.conf file which is under <Firewall Analyzer Home>\conf directory and replace localhost in url tag with the <binding IP address> to which you want to bind the application and save the file.

    url=jdbc:postgresql://localhost:33336/firewall?stringtype=unspecified

    to

    url=jdbc:postgresql://<binding IP address>:33336/firewall?stringtype=unspecified

  • Open the postgresql.conf file which is under <Firewall Analyzer Home>\pgsql\data directory and uncomment the line '#listen_addresses = 'localhost'' in the CONNECTIONS AND AUTHENTICATION section and replace the 'localhost' with the '<binding IP address>' to which you want to bind the application and save the file.

    #------------------------------------------------------------------------------
    # CONNECTIONS AND AUTHENTICATION
    #------------------------------------------------------------------------------

    # - Connection Settings -

    #listen_addresses = 'localhost' # what IP address(es) to listen on;
    # comma-separated list of addresses;
    # defaults to 'localhost'; use '*' for all
    # (change requires restart)

     

    to

     

    #------------------------------------------------------------------------------
    # CONNECTIONS AND AUTHENTICATION
    #------------------------------------------------------------------------------

    # - Connection Settings -

    listen_addresses = <binding IP address> # what IP address(es) to listen on;
    # comma-separated list of addresses;
    # defaults to 'localhost'; use '*' for all
    # (change requires restart)

  • Open the pg_hba.conf file which is under <Firewall Analyzer Home>\pgsql\data directory and add the line

host all all <binding IP address in IPv4 format>/32 trust

 

after the line

 

host all all 127.0.0.1/32 trust

 

and save the file.

    # TYPE DATABASE USER ADDRESS METHOD

     

    # IPv4 local connections:

    host all all 127.0.0.1/32 trust

    # IPv6 local connections:

    host all all ::1/128 trust

     

    to

     

    # TYPE DATABASE USER ADDRESS METHOD

     

    # IPv4 local connections:

    host all all 127.0.0.1/32 trust

    host all all <binding IP address in IPv4 format>/32 trust

    # IPv6 local connections:

    host all all ::1/128 trust


  • Restart Firewall Analyzer


For Linux Machine: (running as application and not as service)

  • Shutdown Firewall Analyzer.
  • Open the run.sh file which is under <Firewall Analyzer Home>/bin directory and replace the existing jboss main arguments "-LAdventNetDeploymentSystem.jar" with these arguments "-LAdventNetDeploymentSystem.jar" "-c default" "-b <ip-address>" and replace <ip-address> with the ip-address to which you want to bind your application and save the file.

    Before changing, the jboss main arguments will be

     

    org.jboss.Main "-LAdventNetDeploymentSystem.jar"

     

    After changing the arguments, it will be

     

    org.jboss.Main "-LAdventNetDeploymentSystem.jar" "-c default" "-b <ip-address>"

  • Open setcommonenv.sh file which is under <Firewall Analyzer Home>/bin directory and go to "JAVA_OPTS Setting command Block", uncomment the below JAVA_OPTS setting command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing JAVA_OPTS setting command and save the file.

    #JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>"

    to

    JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>"


    JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms256m -Xmx1024m"

    to

    #JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms256m -Xmx1024m"


  • Open the database_param.conf file which is under <Firewall Analyzer Home>\conf directory and replace localhost in url tag with the <binding IP address> to which you want to bind the application and save the file.

    url=jdbc:postgresql://localhost:33336/firewall?stringtype=unspecified

    to

    url=jdbc:postgresql://<binding IP address>:33336/firewall?stringtype=unspecified

  • Open the postgresql.conf file which is under <Firewall Analyzer Home>\pgsql\data directory and uncomment the line '#listen_addresses = 'localhost'' in the CONNECTIONS AND AUTHENTICATION section and replace the 'localhost' with the '<binding IP address>' to which you want to bind the application and save the file.

    #------------------------------------------------------------------------------
    # CONNECTIONS AND AUTHENTICATION
    #------------------------------------------------------------------------------

    # - Connection Settings -

    #listen_addresses = 'localhost' # what IP address(es) to listen on;
    # comma-separated list of addresses;
    # defaults to 'localhost'; use '*' for all
    # (change requires restart)

     

    to

     

    #------------------------------------------------------------------------------
    # CONNECTIONS AND AUTHENTICATION
    #------------------------------------------------------------------------------

    # - Connection Settings -

    listen_addresses = <binding IP address> # what IP address(es) to listen on;
    # comma-separated list of addresses;
    # defaults to 'localhost'; use '*' for all
    # (change requires restart)

  • Open the pg_hba.conf file which is under <Firewall Analyzer Home>\pgsql\data directory and add the line

host all all <binding IP address in IPv4 format>/32 trust

 

after the line

 

host all all 127.0.0.1/32 trust

 

and save the file.

    # TYPE DATABASE USER ADDRESS METHOD

     

    # IPv4 local connections:

    host all all 127.0.0.1/32 trust

    # IPv6 local connections:

    host all all ::1/128 trust

     

    to

     

    # TYPE DATABASE USER ADDRESS METHOD

     

    # IPv4 local connections:

    host all all 127.0.0.1/32 trust

    host all all <binding IP address in IPv4 format>/32 trust

    # IPv6 local connections:

    host all all ::1/128 trust


  • Restart Firewall Analyzer

 

To shutdown Firewall Analyzer use the below command
    ./shutdown.sh -S -s <ip-address>:<jndi-port>

where <jndi-port> in the above command is the one which you have set in sample-bindings.xml

 

Ensure that the following two conditions are met:

  1. In .etc/nsswitch.conf file you need to ensure the below line:

hosts:          files dns

i.e. it should be in the order 'files' and 'dns' not the reverse as 'dns' and 'files'.
i.e. it should not be     hosts:     dns files

  1. In .etc/hosts file add the below one as the first line

<binded-ip-address>  localhost

 

Replace <binded-ip-address> with the ip-address to which you want to bind your application.


 

 

For Linux Machine: (running as service)

  • Stop the Firewall Analyzer service.
  • Open the wrapper.conf file which is under <Firewall Analyzer Home>/server/conf and go to "Adding Application Parameters Block", uncomment the below Application Parameters from 2 to 5 and replace <ip-address> in 4th and 5th Application Parameter with the IP address to which you want to bind the application and save the file.

    wrapper.app.parameter.1=org.jboss.Main

    #wrapper.app.parameter.2=-L../lib/AdventNetDeploymentSystem.jar
    #wrapper.app.parameter.3=-c default
    #wrapper.app.parameter.4=-b <ip-address>
    #wrapper.app.parameter.5=-Dspecific.bind.address=<ip-address>


  • Open setcommonenv.sh file which is under <Firewall Analyzer Home>/bin directory and go to "JAVA_OPTS Setting command Block", uncomment the below JAVA_OPTS setting command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing JAVA_OPTS setting command and save the file.

    #JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>"

    to

    JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>"


    JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms256m -Xmx1024m"

    to

    #JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms256m -Xmx1024m"


  • Open the database_param.conf file which is under <Firewall Analyzer Home>\conf directory and replace localhost in url tag with the <binding IP address> to which you want to bind the application and save the file.

    url=jdbc:postgresql://localhost:33336/firewall?stringtype=unspecified

    to

    url=jdbc:postgresql://<binding IP address>:33336/firewall?stringtype=unspecified

  • Open the postgresql.conf file which is under <Firewall Analyzer Home>\pgsql\data directory and uncomment the line '#listen_addresses = 'localhost'' in the CONNECTIONS AND AUTHENTICATION section and replace the 'localhost' with the '<binding IP address>' to which you want to bind the application and save the file.

    #------------------------------------------------------------------------------
    # CONNECTIONS AND AUTHENTICATION
    #------------------------------------------------------------------------------

    # - Connection Settings -

    #listen_addresses = 'localhost' # what IP address(es) to listen on;
    # comma-separated list of addresses;
    # defaults to 'localhost'; use '*' for all
    # (change requires restart)

     

    to

     

    #------------------------------------------------------------------------------
    # CONNECTIONS AND AUTHENTICATION
    #------------------------------------------------------------------------------

    # - Connection Settings -

    listen_addresses = <binding IP address> # what IP address(es) to listen on;
    # comma-separated list of addresses;
    # defaults to 'localhost'; use '*' for all
    # (change requires restart)

  • Open the pg_hba.conf file which is under <Firewall Analyzer Home>\pgsql\data directory and add the line

host all all <binding IP address in IPv4 format>/32 trust

 

after the line

 

host all all 127.0.0.1/32 trust

 

and save the file.

    # TYPE DATABASE USER ADDRESS METHOD

     

    # IPv4 local connections:

    host all all 127.0.0.1/32 trust

    # IPv6 local connections:

    host all all ::1/128 trust

     

    to

     

    # TYPE DATABASE USER ADDRESS METHOD

     

    # IPv4 local connections:

    host all all 127.0.0.1/32 trust

    host all all <binding IP address in IPv4 format>/32 trust

    # IPv6 local connections:

    host all all ::1/128 trust


  • Restart Firewall Analyzer

 

 

 

 

 

For customers of version 6.0 or higher

 

  • In Windows, for commenting batch files add "rem"  before the command and for uncommenting remove the "rem" before the command.
  • In Linux, for commenting sh files add "#" before the command and for uncommenting remove the "#" before the command.

 

For Windows Machine: (running as application and not as service)

  • Shutdown Firewall Analyzer.
  • Open the startDB.bat file which is under <Firewall Analyzer Home>\bin directory and go to "MYSQL Start Command Block", in that uncomment the below start command and replace <ip-address> with the IP address to which you want to bind the application and comment all other start commands and save the file.

    rem @start /B %DB_HOME%\bin\mysqld-nt --standalone --basedir=%DB_HOME% --port=%DB_PORT% --datadir=%DB_HOME%\data --innodb_buffer_pool_size=180M --key-buffer-size=32M --innodb_file_per_table --max_heap_table_size=32M --tmp_table_size=40M --innodb_flush_log_at_trx_commit=0 --log-error --table-cache=256 --bind-address=<ip-address>

  • Open the stopDB.bat file which is under <Firewall Analyzer Home>\bin directory and go to "command Arguments settings block", uncomment the below command arguments setting command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing command arguments setting command and save the file.

    rem set commandArgs=-P %PORT% -u %USER_NAME% -h <ip-address>

  • Open the run.bat file which is under <Firewall Analyzer Home>\bin directory and go to "RESTART Command block", uncomment the below RESTART command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing RESTART command and save the file.

    rem :RESTART
    rem "%JAVA%" %JAVA_OPTS% -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %ARGS% -c default -b <ip-address> %*

  • Open setcommonenv.bat file which is under <Firewall Analyzer Home>\bin directory and go to "JAVA_OPTS Setting command Block", uncomment the below JAVA_OPTS setting command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing JAVA_OPTS setting command and save the file.

    rem set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>

  • Open the mysql-ds.xml file which is under <Firewall Analyzer Home>\server\default\deploy directory and replace localhost in connection-url tag with the <IP address> to which you want to bind the application and save the file.

    <connection-url>jdbc:mysql://localhost:33336/firewall</connection-url>

  • Open the sample-bindings.xml file which is under <Firewall Analyzer Home>\server\default\conf directory and go to jboss port setting block, in the below service-config tag, set any fixed port to port attribute of binding tag, provided the port should be free and save the file.
    i.e., Before setting port, by default it is <binding host="${jboss.bind.address}" port="0"/>
    After setting the port , it should be <binding host="${jboss.bind.address}" port="<any fixed free port>"/>

    <service-config delegateClass="org.jboss.services.binding.AttributeMappingDelegate" name="jboss:service=Naming">
    <delegate-config hostName="BindAddress" portName="Port">
    <attribute name="RmiPort">0</attribute>
    </delegate-config>
    <binding host="${jboss.bind.address}" port="0"/>
    </service-config>

  • Restart Firewall Analyzer.

 

To shutdown Firewall Analyzer use the below command
    shutdown.bat -S -s <ip-address>:<jndi-port>

where <jndi-port> in the above command is the one which you have set in sample-bindings.xml


 

 

For Windows machine (running as service)

  • Stop the Firewall Analyzer service.
  • Open the startDB.bat file which is under <Firewall Analyzer Home>\bin directory and go to "MYSQL Start Command Block", in that uncomment the below start command and replace <ip-address> with the IP address to which you want to bind the application and comment all other start commands and save the file.

    rem @start /B %DB_HOME%\bin\mysqld-nt --standalone --basedir=%DB_HOME% --port=%DB_PORT% --datadir=%DB_HOME%\data --innodb_buffer_pool_size=180M --key-buffer-size=32M --innodb_file_per_table --max_heap_table_size=32M --tmp_table_size=40M --innodb_flush_log_at_trx_commit=0 --log-error --table-cache=256 --bind-address=<ip-address>

  • Open the stopDB.bat file which is under <Firewall Analyzer Home>\bin directory and go to "command Arguments settings block", uncomment the below command arguments setting command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing command arguments setting command and save the file.

    rem set commandArgs=-P %PORT% -u %USER_NAME% -h <ip-address>

  • Open the wrapper.conf file which is under <Firewall Analyzer Home>\server\default\conf and go to "Adding Application Parameters Block", uncomment the below Application Parameters from 2 to 5 and replace <ip-address> in 4th and 5th Application Parameter with the IP address to which you want to bind the application and save the file.

    wrapper.app.parameter.1=org.jboss.Main
    #wrapper.app.parameter.2=-L../lib/AdventNetDeploymentSystem.jar
    #wrapper.app.parameter.3=-c default
    #wrapper.app.parameter.4=-b <ip-address>
    #wrapper.app.parameter.5=-Dspecific.bind.address=<ip-address>

  • Open the mysql-ds.xml file which is under <Firewall Analyzer Home>\server\default\deploy directory and replace localhost in connection-url tag with the <IP address> to which you want to bind the application and save the file.

    <connection-url>jdbc:mysql://localhost:33336/firewall</connection-url>

  • Start the Firewall Analyzer service.


For Linux Machine: (running as application and not as service)

  • Shutdown Firewall Analyzer.
  • Open the startDB.sh file which is under <Firewall Analyzer Home>/bin directory and go to "MYSQL Start Command Block", uncomment the below start command and replace <ip-address> with the IP address to which you want to bind the application and comment all other start commands and save the file.

    #$DB_HOME/bin/mysqld --no-defaults --basedir=$DB_HOME --port=$DB_PORT --socket=$TMP_HOME/mysql.sock --user=root --innodb_buffer_pool_size=180M --key_buffer_size=32M --innodb_file_per_table --max_heap_table_size=32M --tmp_table_size=40M --innodb_flush_log_at_trx_commit=0 --log-error --table-cache=256 --bind-address=<ip-address> &

  • Open the stopDB.sh file which is under <Firewall Analyzer Home>/bin directory and go to "command Arguments settings block", uncomment the below command arguments setting command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing command arguments setting command and save the file.

    #commandArgs="-S $TMP_HOME -P $DB_PORT -u $USER_NAME -h <ip-address>"

  • Open the run.sh file which is under <Firewall Analyzer Home>/bin directory and replace the existing jboss main arguments "-LAdventNetDeploymentSystem.jar" with these arguments "-LAdventNetDeploymentSystem.jar" "-c default" "-b <ip-address>" and replace <ip-address> with the ip-address to which you want to bind your application and save the file.

    Before changing, the jboss main arguments will be

     

    org.jboss.Main "-LAdventNetDeploymentSystem.jar"

     

    After changing the arguments, it will be

     

    org.jboss.Main "-LAdventNetDeploymentSystem.jar" "-c default" "-b <ip-address>"

  • Open setcommonenv.sh file which is under <Firewall Analyzer Home>/bin directory and go to "JAVA_OPTS Setting command Block", uncomment the below JAVA_OPTS setting command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing JAVA_OPTS setting command and save the file.

    #JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>"

  • Open the mysql-ds.xml file which is under <Firewall Analyzer Home>/server/deploy directory and replace localhost in connection-url tag with the <IP address> to which you want to bind the application and save the file.

    <connection-url>jdbc:mysql://localhost:33336/firewall</connection-url>

  • Open the sample-bindings.xml file which is under <Firewall Analyzer Home>/server/conf directory and go to "jboss port setting block", in the below service-config tag, set any fixed port to port attribute of binding tag, provided the port should be free and save the file.
    i.e., Before setting port, by default it is <binding host="${jboss.bind.address}" port="0"/>
    After setting the port , it should be <binding host="${jboss.bind.address}" port="<any fixed free port>"/>

    <service-config delegateClass="org.jboss.services.binding.AttributeMappingDelegate" name="jboss:service=Naming">
    <delegate-config hostName="BindAddress" portName="Port">
    <attribute name="RmiPort">0</attribute>
    </delegate-config>
    <binding host="${jboss.bind.address}" port="0"/>
    </service-config>

  • Restart Firewall Analyzer.

 

To shutdown Firewall Analyzer use the below command
    ./shutdown.sh -S -s <ip-address>:<jndi-port>

where <jndi-port> in the above command is the one which you have set in sample-bindings.xml

 

Ensure that the following two conditions are met:

  1. In .etc/nsswitch.conf file you need to ensure the below line:

hosts:          files dns

i.e. it should be in the order 'files' and 'dns' not the reverse as 'dns' and 'files'.
i.e. it should not be     hosts:     dns files

  1. In .etc/hosts file add the below one as the first line

<binded-ip-address>  localhost

 

Replace <binded-ip-address> with the ip-address to which you want to bind your application.


 

 

For Linux Machine: (running as service)

  • Stop the Firewall Analyzer service.
  • Open the startDB.sh file which is under <Firewall Analyzer Home>/bin directory and go to "MYSQL Start Command Block", uncomment the below start command and replace <ip-address> with the IP address to which you want to bind the application and comment all other start commands and save the file.

    #$DB_HOME/bin/mysqld --no-defaults --basedir=$DB_HOME --port=$DB_PORT --socket=$TMP_HOME/mysql.sock --user=root --innodb_buffer_pool_size=180M --key_buffer_size=32M --innodb_file_per_table --max_heap_table_size=32M --tmp_table_size=40M --innodb_flush_log_at_trx_commit=0 --log-error --table-cache=256 --bind-address=<ip-address> &

  • Open the stopDB.sh file which is under <Firewall Analyzer Home>/bin directory and go to "command Arguments settings block", uncomment the below command arguments setting command and replace <ip-address> with the IP address to which you want to bind the application and comment the existing command arguments setting command and save the file.

    #commandArgs="-S $TMP_HOME -P $DB_PORT -u $USER_NAME -h <ip-address>"

  • Open the wrapper.conf file which is under <Firewall Analyzer Home>/server/conf and go to "Adding Application Parameters Block", uncomment the below Application Parameters from 2 to 5 and replace <ip-address> in 4th and 5th Application Parameter with the IP address to which you want to bind the application and save the file.

    wrapper.app.parameter.1=org.jboss.Main

    #wrapper.app.parameter.2=-L../lib/AdventNetDeploymentSystem.jar
    #wrapper.app.parameter.3=-c default
    #wrapper.app.parameter.4=-b <ip-address>
    #wrapper.app.parameter.5=-Dspecific.bind.address=<ip-address>


  • Open the mysql-ds.xml file which is under <Firewall Analyzer Home>/server/deploy directory and replace localhost in connection-url tag with the <IP address> to which you want to bind the application and save the file.

    <connection-url>jdbc:mysql://localhost:33336/firewall</connection-url>

  • Start the Firewall Analyzer service.

 

 

For customers of version 5.0 or lesser

Through out the below document, replace <ip-address> with the IP address with which you want to bind the application.

 


For Windows Machine: (running as application and not as service)

  • Shutdown Firewall Analyzer.
  • Open the startDB.bat file which is under <Firewall Analyzer Home>\bin directory and add option --bind-address=<ip-address> in the mysqld start command that starts with @start and save the file.
  • Open the stopDB.bat file which is under <Firewall Analyzer Home>\bin directory and add -h <ip-address> to the command arguments and save the file.

    After the change the line should like the one given below:

    set commandArgs=-P %PORT% -u %USER_NAME% -h <ip-address>

  • Open the run.bat file which is under <Firewall Analyzer Home>\bin directory and add the arguments -c default -b <ip-address> to the jboss.Main as given below:

    :RESTART
    "%JAVA%" %JAVA_OPTS% -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %ARGS% -c default -b <ip-address> %*

and save the file.

  • Open setcommonenv.bat file which is under <Firewall Analyzer Home>\bin directory and add the option -Dspecific.bind.address=<ip-address> while setting  JAVA_OPTS as given below:

    set JAVA_OPTS=-Djava.library.path=..\lib;..\lib\native -DpdfReport=false -Duser.country=US -Duser.language=en -DminDiskSpace=5 -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>

and save the file.

  • Open the mysql-ds.xml file which is under <Firewall Analyzer Home>\server\default\deploy directory and replace localhost in connection-url tag with the <ip-address> to which you want to bind the application and save the file.
  • Open the sample-bindings.xml file which is under <Firewall Analyzer Home>\server\default\conf directory and go to "jboss port setting block", set any fixed RMI port/jndi port (provided the port should be free) and save the file.

Before setting the port it will look like <binding host="${jboss.bind.address}" port="0"/>
After setting the port it will look like <binding host="${jboss.bind.address}" port="<any fixed free port>"/>
<any fixed free port> is the port number which you have configured and not used by any application.

  • Restart Firewall Analyzer.

 

To shutdown Firewall Analyzer use the below command
    shutdown.bat -S -s <ip-address>:<jndi-port>

where <jndi-port> in the above command is the one which you have set in sample-bindings.xml


 

 

 

For Windows machine (running as service)

  • Stop the Firewall Analyzer service.
  • Open the startDB.bat file which is under <Firewall Analyzer Home>\bin directory and add option --bind-address=<ip-address> in the mysqld start command that starts with @start and save the file.
  • Open the stopDB.bat file which is under <Firewall Analyzer Home>\bin directory and add -h <ip-address> to the command arguments and save the file.

    After the change the line should like the one given below:

    set commandArgs=-P %PORT% -u %USER_NAME% -h <ip-address>

  • Open the wrapper.conf file which is under <Firewall Analyzer Home>\server\default\conf and and follow the below steps:
    Uncomment the second application parameter "wrapper.app.parameter.2=-L../lib/AdventNetDeploymentSystem.jar".
    Add the following new application parameters

wrapper.app.parameter.3=-c default
wrapper.app.parameter.4=-b <ip-address>
wrapper.app.parameter.5=-Dspecific.bind.address=<ip-address>

and save the file.

 

Remove "#" symbol for uncommenting in the .conf file.


 

  • Open the mysql-ds.xml file which is under <Firewall Analyzer Home>\server\default\deploy directory and replace localhost in connection-url tag with the <ip-address> to which you want to bind the application and save the file.
  • Start the Firewall Analyzer service.

 

For Linux Machine: (running as application and not as service)

  • Shutdown Firewall Analyzer.
  • Open the startDB.sh file which is under <Firewall Analyzer Home>/bin directory and add option --bind-address=<ip-address> in the mysqld start command that starts with $DB_HOME and save the file.
  • Open the stopDB.sh file which is under <Firewall Analyzer Home>/bin directory and add -h <ip-address> to the command arguments and save the file.

    Before change the line will look like the one given below:

    commandArgs="-S $TMP_HOME -P $DB_PORT -u $USER_NAME"

     

    After the change the line should like the one given below:

    commandArgs="-S $TMP_HOME -P $DB_PORT -u $USER_NAME -h <ip-address>"


  • Open the run.sh file which is under <Firewall Analyzer Home>/bin directory and replace the existing jboss main arguments "-LAdventNetDeploymentSystem.jar" with these arguments "-LAdventNetDeploymentSystem.jar" "-c default" "-b <ip-address>" and replace <ip-address> with the ip-address to which you want to bind your application and save the file.

    Before changing, the jboss main arguments will be

    org.jboss.Main "-LAdventNetDeploymentSystem.jar"

     

    After changing the arguments, it will be

    org.jboss.Main "-LAdventNetDeploymentSystem.jar" "-c default" "-b <ip-address>"

  • Open setcommonenv.sh file which is under <Firewall Analyzer Home>/bin directory and add the option -Dspecific.bind.address=<ip-address> while setting  JAVA_OPTS as given below:

    JAVA_OPTS="-Djava.awt.headless=true -DpdfReport=false -Duser.language=en -Duser.country=US -DminDiskSpace=5 -Djava.library.path=../lib:../lib/native -Xms128m -Xmx512m -Dspecific.bind.address=<ip-address>"

and save the file.

  • Open the mysql-ds.xml file which is under <Firewall Analyzer Home>/server/deploy directory and replace localhost in connection-url tag with the <ip-address> to which you want to bind the application and save the file.
  • Open the sample-bindings.xml file which is under <Firewall Analyzer Home>/server/conf directory and go to "jboss port setting block", set any fixed RMI port/jndi port (provided the port should be free) and save the file.

Before setting the port it will look like <binding host="${jboss.bind.address}" port="0"/>
After setting the port it will look like <binding host="${jboss.bind.address}" port="<any fixed free port>"/>
<any fixed free port> is the port number which you have configured and not used by any application.

  • Restart Firewall Analyzer.

 

To shutdown Firewall Analyzer use the below command
    ./shutdown.sh -S -s <ip-address>:<jndi-port>

where <jndi-port> in the above command is the one which you have set in sample-bindings.xml

 

Ensure that the following two conditions are met:

  1. In .etc/nsswitch.conf file you need to ensure the below line:

hosts:          files dns

i.e. it should be in the order 'files' and 'dns' not the reverse as 'dns' and 'files'.
i.e. it should not be     hosts:     dns files

  1. In .etc/hosts file add the below one as the first line

<binded-ip-address>  localhost

 

Replace <binded-ip-address> with the ip-address to which you want to bind your application.


 

 

 

 

For Linux Machine: (running as service)

  • Stop the Firewall Analyzer service.
  • Open the startDB.sh file which is under <Firewall Analyzer Home>/bin directory and add option --bind-address=<ip-address> in the mysqld start command that starts with $DB_HOME and save the file.
  • Open the stopDB.sh file which is under <Firewall Analyzer Home>/bin directory and add -h <ip-address> to the command arguments and save the file.

    Before change the line will look like the one given below:

    commandArgs="-S $TMP_HOME -P $DB_PORT -u $USER_NAME"

     

    After the change the line should like the one given below:

    commandArgs="-S $TMP_HOME -P $DB_PORT -u $USER_NAME -h <ip-address>"

  • Open the wrapper.conf file which is under <Firewall Analyzer Home>\server\default\conf and and follow the below steps:
    Uncomment the second application parameter "wrapper.app.parameter.2=-L../lib/AdventNetDeploymentSystem.jar".
    Add the following new application parameters

wrapper.app.parameter.3=-c default
wrapper.app.parameter.4=-b <ip-address>
wrapper.app.parameter.5=-Dspecific.bind.address=<ip-address>

and save the file.

 

Remove "#" symbol for uncommenting in the .conf file.


 

  • Open the mysql-ds.xml file which is under <Firewall Analyzer Home>/server/deploy directory and replace localhost in connection-url tag with the <ip-address> to which you want to bind the application and save the file.
  • Start the Firewall Analyzer service.

 

 

     

Copyright © 2014, ZOHO Corp. All Rights Reserved.
ManageEngine