Hi,
Dst/src NAT rule was re-configured as "from zone/to zone" instead "from instance", but result same. ICMP works, but TCP session cannot be established by obvious reasons. Current configuration looks like:
set security nat source pool snat-pool address 1.1.1.1/32
set security nat source rule-set hairpin-nat from zone TRUST
set security nat source rule-set hairpin-nat to zone UNTRUST
set security nat source rule-set hairpin-nat rule hairpin-nat-rule match source-address 0.0.0.0/0
set security nat source rule-set hairpin-nat rule hairpin-nat-rule then source-nat pool snat-pool
set security nat destination pool hairpin-pool address 10.213.0.10/32
set security nat destination rule-set HAIRPIN from zxone TRUST
set security nat destination rule-set HAIRPIN rule rule-hairpin-destination match source-address 10.213.0.0/24
set security nat destination rule-set HAIRPIN rule rule-hairpin-destination match destination-address 2.2.2.2/32
set security nat destination rule-set HAIRPIN rule rule-hairpin-destination then destination-nat pool hairpin-pool
set security nat static rule-set STATIC-NAT from interface (uplink int. ip 3.3.3.3)
set security nat static rule-set STATIC-NAT rule STATIC-rule match destination-address 2.2.2.2/32
set security nat static rule-set STATIC-NAT rule STATIC-rule then static-nat prefix 10.213.0.10/32
set security policies from-zone TRUST to-zone TRUST policy default-permit match source-address any
set security policies from-zone TRUST to-zone TRUST policy default-permit match destination-address any
set security policies from-zone TRUST to-zone TRUST policy default-permit match application any
set security policies from-zone TRUST to-zone TRUST policy default-permit then permit
set security policies from-zone UNTRUST to-zone TRUST policy default-permit match source-address any
set security policies from-zone UNTRUST to-zone TRUST policy default-permit match destination-address 10.213.0.10
set security policies from-zone UNTRUST to-zone TRUST policy default-permit match application any
set security policies from-zone UNTRUST to-zone TRUST policy default-permit then permit
Also looks strange that from server 10.213.0.10 for internet access use source NAT ip 1.1.1.1, instead static NAT ip 2.2.2.2, how I know static NAT should be apply first.
BR,
Jurijs