Configuring Load Sharing Network Address Translation (LSNAT) ip slb allowaccess_all
19-28 LSNAT Configuration
Example
Thisexampleshowshowtoallowclientsat10.24.16.12through10.24.16.42non‐LSNATaccessto
thevirtualservernamed“virtual‐http”:
Matrix>Router(config)#ip slb vserver virtual-http
Matrix>Router(config-slb-vserver)#allow accessservers 10.24.16.12 10.24.16.42
ip slb allowaccess_all
Usethiscommandtoallowallclientstodirectlyaccessallservicesprovidedbyrealservers,
exceptforthoseservicesconfiguredforserverloadbalancing.
Syntax
ip slb allowaccess_all
no ip slb allowaccess_all
Parameters
None
Defaults
None.
Mode
Routercommand,Globalconfigurationmode:Matrix>Router(config)#
Usage
Therealserversarestillprotectedfromdirectclientaccessforconfiguredservicesonly.See
“ConfiguringDirectAccesstoRealServers”onpage 19‐3for moreinformationaboutusingthis
commandinconjunctionwiththevirtualserverconfigurationmodecommandallow
accessservers.
The“no”formofthiscommandremoves
directaccessforallclients.
Examples
Thisexampleshowshowtoallowallclientstohavedirectaccesstorealserversforallservices
exceptthoseconfiguredforserverloadbalancing:
Matrix>Router(config)#ip slb allowaccess_all
Thisexampleshowshowtoconfigurebothmethodsofdirectaccesstorealservers.Theclients
identifiedwiththeallowaccessserverscommandwillhavedirectaccesstotherealserversforall
services(includingthoseconfiguredforload‐balancing)andbeblockedfromusingthevirtual
server.Allotherclientswill
havedirectaccesstorealserversforallservicesexceptthose
configuredforserverloadbalancing.
Matrix>Router(config)#ip slb allowaccess_all
Matrix>Router(config)#ip slb serverfarm httpserver
Matrix>Router(config-slb-sfarm)#real 10.1.2.1 port 80
Matrix>Router(config-slb-real)#inservice
Matrix>Router(config-slb-real)#exit
Matrix>Router(config-slb-sfarm)#real 10.1.2.3 port 80