@@ -105,7 +105,9 @@ func Test_bootstrapConfig(t *testing.T) {
105
105
configs2 := []env.VerifyNitroConfig {
106
106
{"nsacl" , "allowadmserver" , map [string ]interface {}{"aclname" : "allowadmserver" , "aclaction" : "ALLOW" , "srcipval" : "1.1.1.1" , "priority" : 65537 }},
107
107
{"nsacl" , "allowlicenseserver" , map [string ]interface {}{"aclname" : "allowlicenseserver" , "aclaction" : "ALLOW" , "srcipval" : "1.1.1.2" , "priority" : 65538 }},
108
- {"lbvserver" , "drop_all_vserver" , map [string ]interface {}{"name" : "drop_all_vserver" , "servicetype" : "ANY" , "ipv46" : "*" , "port" : 65535 , "listenpolicy" : "CLIENT.TCP.DSTPORT.NE(15010) && CLIENT.IP.DST.NE(1.1.1.1) && CLIENT.IP.DST.NE(1.1.1.2)" }},
108
+ {"nsacl" , "allownitro" , map [string ]interface {}{"aclname" : "allownitro" , "aclaction" : "ALLOW" , "protocol" : "TCP" , "destportval" : "9443" , "priority" : 65540 , "kernelstate" : "APPLIED" }},
109
+ {"nsacl" , "allowicmp" , map [string ]interface {}{"aclname" : "allowicmp" , "aclaction" : "ALLOW" , "protocol" : "ICMP" , "priority" : 65546 , "kernelstate" : "APPLIED" }},
110
+ {"lbvserver" , "drop_all_vserver" , map [string ]interface {}{"name" : "drop_all_vserver" , "servicetype" : "ANY" , "ipv46" : "*" , "port" : 65535 , "listenpolicy" : "CLIENT.TCP.DSTPORT.NE(15010) && CLIENT.IP.DST.NE(1.1.1.1) && CLIENT.TCP.DSTPORT.NE(5557) && CLIENT.TCP.DSTPORT.NE(5558) && CLIENT.TCP.DSTPORT.NE(5563) && CLIENT.IP.DST.NE(1.1.1.2) && CLIENT.TCP.DSTPORT.NE(27000) && CLIENT.TCP.DSTPORT.NE(7279)" }},
109
111
}
110
112
configs3 := []env.VerifyNitroConfig {}
111
113
configs3 = append (configs , configs2 ... )
@@ -123,7 +125,7 @@ func Test_bootstrapConfig(t *testing.T) {
123
125
}
124
126
configs2 = []env.VerifyNitroConfig {
125
127
{"nsacl" , "allowlicenseserver" , map [string ]interface {}{"aclname" : "allowlicenseserver" , "aclaction" : "ALLOW" , "srcipval" : "1.1.1.2" , "priority" : 65538 }},
126
- {"lbvserver" , "drop_all_vserver" , map [string ]interface {}{"name" : "drop_all_vserver" , "servicetype" : "ANY" , "ipv46" : "*" , "port" : 65535 , "listenpolicy" : "CLIENT.TCP.DSTPORT.NE(15010) && CLIENT.TCP.DSTPORT.NE(15012) && CLIENT.IP.DST.NE(1.1.1.2)" }},
128
+ {"lbvserver" , "drop_all_vserver" , map [string ]interface {}{"name" : "drop_all_vserver" , "servicetype" : "ANY" , "ipv46" : "*" , "port" : 65535 , "listenpolicy" : "CLIENT.TCP.DSTPORT.NE(15010) && CLIENT.TCP.DSTPORT.NE(15012) && CLIENT.IP.DST.NE(1.1.1.2) && CLIENT.TCP.DSTPORT.NE(27000) && CLIENT.TCP.DSTPORT.NE(7279) " }},
127
129
}
128
130
configs3 = append (configs , configs2 ... )
129
131
err = env .VerifyConfigBlockPresence (configAd .client , configs3 )
@@ -140,7 +142,7 @@ func Test_bootstrapConfig(t *testing.T) {
140
142
}
141
143
configs2 = []env.VerifyNitroConfig {
142
144
{"nsacl" , "allowadmserver" , map [string ]interface {}{"aclname" : "allowadmserver" , "aclaction" : "ALLOW" , "srcipval" : "1.1.1.1" , "priority" : 65537 }},
143
- {"lbvserver" , "drop_all_vserver" , map [string ]interface {}{"name" : "drop_all_vserver" , "servicetype" : "ANY" , "ipv46" : "*" , "port" : 65535 , "listenpolicy" : "CLIENT.TCP.DSTPORT.NE(15010) && CLIENT.IP.DST.NE(1.1.1.1)" }},
145
+ {"lbvserver" , "drop_all_vserver" , map [string ]interface {}{"name" : "drop_all_vserver" , "servicetype" : "ANY" , "ipv46" : "*" , "port" : 65535 , "listenpolicy" : "CLIENT.TCP.DSTPORT.NE(15010) && CLIENT.IP.DST.NE(1.1.1.1) && CLIENT.TCP.DSTPORT.NE(5557) && CLIENT.TCP.DSTPORT.NE(5558) && CLIENT.TCP.DSTPORT.NE(5563) " }},
144
146
}
145
147
configs3 = append (configs , configs2 ... )
146
148
err = env .VerifyConfigBlockPresence (configAd .client , configs3 )
0 commit comments