This class encapsulates a general subnet-to-subnet NAT. It
requires a list of from, to, translated to
parameters:
from: the source address of the connection.
to: the destination address of the connection.
translated to: the translated address.
If the NAT policy is used as SNAT, the translated address is used to translate the source address of the connection; if the NAT policy is used as DNAT, the translated address is used to translate the destination address of the connection. The translation occurs according to the first matching rule.
Example 5.27. GeneralNat example |
---|
The following example defines a simple GeneralNAT policy that maps
connections coming from the NATPolicy(name="Demo_GeneralNAT", nat=GeneralNAT(mapping=((InetSubnet("192.168.1.0/24"), InetSubnet("192.168.10.0/24"), InetSubnet("10.70.0.0/24")),))) If the policy is used as SNAT, the |
Published on June 04, 2020
© 2007-2019 BalaSys
Send your comments to support@balasys.hu