Actions

Gateway Address

Revision as of 14:12, 19 October 2011 by Abrassard (talk | contribs) (Updated with newer information about TBX_GW_SUBNETS and 1+1 mode)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Gateway Address is the term used to force the Toolpack application to use specific network interfaces, also referred to TBX_GW_ADDRESS_0 and TBX_GW_ADDRESS_1 or TbxGwAddr0 and TbxGwAddr1.

It is mandatory to set those value when the host server has 2 or more network interfaces. Otherwise, the applications may not be able to see each other, or communication with adapters may use incorrect network interfaces, causing either failure to detect/connect to remote adapters or applications, or failure take advantage of network redundancy through two separate networks.

The TbxGwAddr0 and TbxGwAddr1 can be set when running the Toolpack installer (Custom Panel). TBX_GW_ADDRESS_0 and TBX_GW_ADDRESS_1 can also be edited directly in the [InstallDir]/toolpack/setup/[MajorVersion]/toolpack.ini file. If toolpack.ini is modified manually, the Toolpack system needs to be restarted.

For the TMG family in standalone mode, TBX_GW_ADDRESS_0 and TBX_GW_ADDRESS_1 both need to be set to 172.31.1.2.

Example of a TMG3200 installation.
 TBToolPack-2.3.1-Linux-tbrel-1-ppc-Install --tbxgwaddr0 172.31.1.2 --tbxgwaddr1 172.31.1.2

For the TMG family in 1+1 mode, TBX_GW_ADDRESS_0 and TBX_GW_ADDRESS_1 will automatically be configured by Toolpack. (they should be set to 172.16.0.0 and 172.18.0.0 respectively)


For non-network redundant applications, these values can be set to:

TBX_GW_ADDRESS_0=ANY
TBX_GW_ADDRESS_1=ANY

In that case, the application will be allowed to connect to adapters or other applications through any of the local networks of the host.

Environment variable TBX_GW_SUBNETS can be used to restrict the networks that are used when TBX_GW_ADDRESS_0 is set to ANY: To restrict to 3 specific subnets, for example:

export TBX_GW_SUBNETS='(10.3.2.0,10.3.6.0,192.168.1.0)'

To use any subnet except 2 specific, for example:

export TBX_GW_SUBNETS='!(10.3.2.0,10.3.6.0)'