Skip to content

Prevent DNS reflection attacks - #1653

Closed
NuxRo wants to merge 1 commit into
apache:4.9from
NuxRo:patch-4
Closed

Prevent DNS reflection attacks#1653
NuxRo wants to merge 1 commit into
apache:4.9from
NuxRo:patch-4

Conversation

@NuxRo

@NuxRo NuxRo commented Aug 22, 2016

Copy link
Copy Markdown
Contributor

At least in SG zones DNS on the VR is publicly accessible and as such susceptible to DNS amplification/reflection attacks. This fixes it as per https://issues.apache.org/jira/browse/CLOUDSTACK-6432

@ustcweizhou

Copy link
Copy Markdown
Contributor

LGTM

@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

LGTM, we need to also test for users who connect to VPN on that network (will DNS work for them as well?). @NuxRo can you edit the PR and change the branch to 4.9, we should have this in 4.9 branch as well.

@NuxRo

NuxRo commented Aug 22, 2016

Copy link
Copy Markdown
Contributor Author

I've tested this in Adv zone with Security Groups and it works. Can't vouch for "pure" Adv zones. Perhaps @ustcweizhou can say more.

@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

@NuxRo if you can change the base-branch of the PR to 4.9, I can initiate some tests on VR/trillian.

@NuxRo
NuxRo changed the base branch from master to 4.9 August 22, 2016 11:16
@NuxRo

NuxRo commented Aug 22, 2016

Copy link
Copy Markdown
Contributor Author

Rohit, done, go right ahead.

@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

Thanks @NuxRo can you rebase against latest 4.9, looks like some more commits came in.

@NuxRo
NuxRo changed the base branch from 4.9 to master August 22, 2016 11:29
@NuxRo
NuxRo changed the base branch from master to 4.9 August 22, 2016 11:29
@NuxRo

NuxRo commented Aug 22, 2016

Copy link
Copy Markdown
Contributor Author

Done?

@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

@NuxRo there are still several commits which have come from master; can you export the commit (git format-patch -1) and reset --hard origin/4.9 and re-apply the commit (git am ) and then git push -f.

@NuxRo

NuxRo commented Aug 22, 2016

Copy link
Copy Markdown
Contributor Author

Rohit unfortunately I do not have git setup properly, I am limited to what the github interface offers me.

@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

@NuxRo okay, can you grant me push access on your fork: https://github.com/NuxRo/cloudstack/tree/patch-4 and I can help fix it for you?

At least in SG zones DNS on the VR is publicly accessible and as such susceptible to DNS amplification/reflection attacks. This fixes it as per https://issues.apache.org/jira/browse/CLOUDSTACK-6432

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

@NuxRo thanks, fixed the branch, you may remove my access now :)

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian repo: http://packages.shapeblue.com/cloudstack/pr/1653
Job ID-94

@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins matrix job (centos6 mgmt + xs56sp1, centos7 mgmt + vmware55u3, ubuntu mgmt + kvmcentos7) has been kicked to run smoke tests against packages at http://packages.shapeblue.com/cloudstack/pr/1653

["filter", "", "-A INPUT -i %s -p udp -m udp --dport 53 -s %s -j ACCEPT" % (self.dev, self.address['network'])])
self.fw.append(
["filter", "", "-A INPUT -i %s -p tcp -m tcp --dport 53 -j ACCEPT" % self.dev])
["filter", "", "-A INPUT -i %s -p tcp -m tcp --dport 53 -s %s -j ACCEPT" % (self.dev, self.address['network'])])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit: extract the value of self.address['network'] to a local variable? Not only will change ensure consistency of the value across the four rules, but it will make the code more literate.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jburwell there were several places where such minor refactoring could be done, I've kept the scope limited to the change in the PR. @NuxRo I've refactored it as per John's comment. I'll see if we've an existing marvin test for this, otherwise I'll add one tomorrow/later-this-week.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhtyd I agree that keeping it limited to the scope of the PR is the most pragmatic approach. The intention of my comment was to encourage test case improvement in small increments.

@jburwell

jburwell commented Aug 22, 2016

Copy link
Copy Markdown
Contributor

@NuxRo is it possible to create/update a Marvin test case to verify this change?

Also, reading through CS-6432, it appears that this issue was fixed in 4.4.0 and 4.5.0. Did the VR refactoring introduce a regression? If so, it seems appropriate to open a new JIRA ticket for this issue since CS-6432 is marked as resolved.

@NuxRo

NuxRo commented Aug 22, 2016

Copy link
Copy Markdown
Contributor Author

@jburwell I am afraid I do not have the coding skills to do what you want re that variable, I am just submitting @ustcweizhou's code from that Jira issue.

Right now basic/sg zones are vulnerable to this and need manual patching, so it must be a regression I guess.

I've opened a new issue:

https://issues.apache.org/jira/browse/CLOUDSTACK-9464

@jburwell

Copy link
Copy Markdown
Contributor

@NuxRo understood. I am working to get you some assistance. That work for you?

@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

@NuxRo np, I'll help with the refactoring fixes etc.

@yadvr

yadvr commented Aug 22, 2016

Copy link
Copy Markdown
Member

@NuxRo can you give me push permission on your repository once again to push the refactoring change, thanks.

@blueorangutan

Copy link
Copy Markdown

Trillian test result (trillian-pr1653-34-xenserver-65sp1-cs49):
Test completed. 41 look ok, 11 have errors

Test Result Time
test_DeployVmAntiAffinityGroup_in_project Success 191.851
test_create_pvlan_network Success 5.210
test_DeployVmAntiAffinityGroup Success 201.681
test_dedicatePublicIpRange Error 0.293
test_deploy_vgpu_enabled_vm Skipped 0.004
test_deploy_vm_from_iso Error 458.479
test_01_scale_vm Success 5.190
test_00_deploy_vm_root_resize Success 6.396
test_01_deploy_vm_root_resize Success 6.252
test_02_deploy_vm_root_resize Success 6.303
test_01_router_internal_basic Success 0.593
test_02_router_internal_adv Success 0.767
test_03_restart_network_cleanup Success 116.260
test_04_restart_network_wo_cleanup Success 5.496
test_05_router_basic Success 0.029
test_06_router_advanced Success 0.048
test_07_stop_router Success 15.167
test_08_start_router Success 50.404
test_09_reboot_router Success 75.506
test_deployvm_firstfit Success 271.988
test_deployvm_userconcentrated Success 101.006
test_deployvm_userdispersing Success 45.671
test_deployvm_userdata Success 116.193
test_deployvm_userdata_post Success 20.380
test_01_sys_vm_start Success 0.136
test_02_sys_template_ready Success 0.099
test_01_create_disk_offering Success 0.119
test_02_create_sparse_type_disk_offering Success 0.088
test_04_create_fat_type_disk_offering Success 0.090
test_02_edit_disk_offering Success 0.053
test_03_delete_disk_offering Success 0.038
test_default_role_deletion Success 6.423
test_role_account_acls Success 8.189
test_role_account_acls_multiple_mgmt_servers Success 7.805
test_role_inuse_deletion Success 6.256
test_role_lifecycle_create Success 6.293
test_role_lifecycle_delete Success 6.291
test_role_lifecycle_list Success 6.276
test_role_lifecycle_update Success 11.448
test_role_lifecycle_update_role_inuse Success 6.332
test_rolepermission_lifecycle_concurrent_updates Success 7.395
test_rolepermission_lifecycle_create Success 6.434
test_rolepermission_lifecycle_delete Success 6.380
test_rolepermission_lifecycle_list Success 6.486
test_rolepermission_lifecycle_update Success 6.584
test_01_create_service_offering Success 0.074
test_02_edit_service_offering Success 0.084
test_03_delete_service_offering Success 0.048
test_04_change_offering_small Success 126.082
test_UpdateConfigParamWithScope Success 0.140
ContextSuite context=TestDedicateGuestVlanRange>:setup Error 0.000
test_01_snapshot_root_disk Success 61.380
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80 Error 157.244
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80 Error 167.471
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 Error 287.671
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 Error 297.856
test_03_vpc_internallb_haproxy_stats_on_all_interfaces Error 141.649
test_03_vpc_internallb_haproxy_stats_on_all_interfaces Error 146.758
test_04_rvpc_internallb_haproxy_stats_on_all_interfaces Error 282.539
test_04_rvpc_internallb_haproxy_stats_on_all_interfaces Error 287.635
test_01_list_sec_storage_vm Success 0.106
test_02_list_cpvm_vm Success 0.095
test_03_ssvm_internals Success 3.406
test_04_cpvm_internals Success 1.012
test_05_stop_ssvm Success 168.918
test_06_stop_cpvm Success 166.673
test_07_reboot_ssvm Success 154.144
test_08_reboot_cpvm Success 141.467
test_09_destroy_ssvm Success 199.000
test_10_destroy_cpvm Success 196.600
test_01_create_iso Success 66.395
test_02_edit_iso Success 0.073
test_03_delete_iso Success 95.172
test_04_extract_Iso Success 5.161
test_05_iso_permissions Success 0.068
test_06_copy_iso Skipped 0.000
test_07_list_default_iso Success 0.074
test_01_list_volumes Success 0.032
test_02_list_templates Success 0.034
test_03_list_snapshots Success 0.074
test_static_role_account_acls Skipped 0.017
test_01_create_lb_rule_src_nat Success 208.204
test_02_create_lb_rule_non_nat Success 207.507
test_assign_and_removal_lb Success 148.821
login_test_saml_user Success 21.745
test_01_create_template Success 65.513
test_CreateTemplateWithDuplicateName Success 100.747
test_02_edit_template Success 90.143
test_03_delete_template Success 5.092
test_04_extract_template Success 5.180
test_05_template_permissions Success 0.050
test_06_copy_template Skipped 0.000
test_07_list_public_templates Success 0.033
test_08_list_system_templates Success 0.026
test_nic_secondaryip_add_remove Success 213.996
test_network_acl Success 111.236
test_delete_account Success 313.579
test_01_port_fwd_on_src_nat Success 83.812
test_02_port_fwd_on_non_src_nat Success 70.762
test_public_ip_admin_account Success 40.292
test_public_ip_user_account Success 10.297
test_reboot_router Success 534.585
test_releaseIP Success 278.459
test_network_rules_acquired_public_ip_1_static_nat_rule Success 100.361
test_network_rules_acquired_public_ip_2_nat_rule Success 76.522
test_network_rules_acquired_public_ip_3_Load_Balancer_Rule Success 86.645
test_vm_nic_adapter_vmxnet3 Skipped 0.001
test_advZoneVirtualRouter Success 0.017
test_deploy_vm Success 0.021
test_deploy_vm_multiple Success 197.646
test_01_stop_vm Success 25.218
test_02_start_vm Success 20.214
test_03_reboot_vm Success 10.178
test_06_destroy_vm Success 10.140
test_07_restore_vm Success 0.102
test_08_migrate_vm Success 66.068
test_09_expunge_vm Success 125.233
test_10_attachAndDetach_iso Success 111.871
test_01_nic Success 761.414
test_extendPhysicalNetworkVlan Error 0.028
test_01_test_vm_volume_snapshot Error 141.145
test_01_create_vm_snapshots Success 100.810
test_02_revert_vm_snapshots Success 211.483
test_03_delete_vm_snapshots Success 280.215
test_oobm_background_powerstate_sync Success 13.575
test_oobm_configure_default_driver Success 0.094
test_oobm_configure_invalid_driver Success 0.080
test_oobm_disable_feature_invalid Success 5.140
test_oobm_disable_feature_valid Success 5.205
test_oobm_enable_feature_invalid Success 0.116
test_oobm_enable_feature_valid Success 5.228
test_oobm_enabledisable_across_clusterzones Success 53.424
test_oobm_issue_power_cycle Success 15.579
test_oobm_issue_power_off Success 15.611
test_oobm_issue_power_on Success 15.583
test_oobm_issue_power_reset Success 15.592
test_oobm_issue_power_soft Success 15.597
test_oobm_issue_power_status Success 10.557
test_oobm_multiple_mgmt_server_ownership Success 18.588
test_oobm_zchange_password Success 20.612
test_UpdateStorageOverProvisioningFactor Success 0.144
test_01_create_volume Success 392.614
test_02_attach_volume Success 10.746
test_03_download_attached_volume Success 20.318
test_04_delete_attached_volume Success 10.217
test_05_detach_volume Success 100.336
test_06_download_detached_volume Success 25.332
test_07_resize_fail Success 110.951
test_08_resize_volume Success 95.870
test_09_delete_detached_volume Success 20.725
test_isolate_network_password_server Success 35.820
test_createPortablePublicIPAcquire Success 15.562
test_createPortablePublicIPRange Success 15.391
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Failure 550.954
test_02_redundant_VPC_default_routes Success 809.122
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Success 767.711
test_04_rvpc_network_garbage_collector_nics Failure 711.389
test_05_rvpc_multi_tiers Failure 564.430
test_01_primary_storage_iscsi Error 0.073
test_01_primary_storage_nfs Success 38.833
test_01_vpc_privategw_acl Failure 102.059
test_02_vpc_privategw_static_routes Failure 182.434
test_03_vpc_privategw_restart_vpc_cleanup Failure 162.459
test_04_rvpc_privategw_static_routes Failure 343.561
test_01_VPC_nics_after_destroy Success 643.825
test_02_VPC_default_routes Success 395.578
test_createRegion Success 0.044
test_01_reset_vm_on_reboot Success 95.690
test_01_updatevolumedetail Success 5.105
test_router_dhcphosts Success 112.321
test_02_routervm_iptables_policies Success 181.866
test_01_single_VPC_iptables_policies Success 336.329
test_01_isolate_network_FW_PF_default_routes_egress_true Success 225.703
test_02_isolate_network_FW_PF_default_routes_egress_false Success 305.904
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true Failure 474.365
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false Failure 481.103
test_03_RVR_Network_check_router_state Success 273.850
test_01_redundant_vpc_site2site_vpn Failure 483.602
test_01_vpc_remote_access_vpn Error 0.069
test_01_vpc_site2site_vpn Failure 227.132
Trillian env - trillian-pr1653-34-xenserver-65sp1-cs49, Job ID 34
Marvin logs at: http://packages.shapeblue.com/cloudstack/pr/1653/trillian/trillian-pr1653-34-xenserver-65sp1-cs49

@blueorangutan

Copy link
Copy Markdown

Trillian test result (trillian-pr1653-36-vmware-55u3-cs49):
Test completed. 32 look ok, 20 have errors

Test Result Time
test_DeployVmAntiAffinityGroup_in_project Success 428.373
test_create_pvlan_network Success 5.160
test_DeployVmAntiAffinityGroup Success 178.132
test_dedicatePublicIpRange Error 0.216
test_deploy_vgpu_enabled_vm Skipped 0.004
test_deploy_vm_from_iso Success 348.045
test_01_scale_vm Skipped 66.545
test_00_deploy_vm_root_resize Success 6.484
test_01_deploy_vm_root_resize Success 6.569
test_02_deploy_vm_root_resize Success 6.240
test_01_router_internal_basic Success 0.413
test_02_router_internal_adv Success 0.939
test_03_restart_network_cleanup Success 191.231
test_04_restart_network_wo_cleanup Success 5.598
test_05_router_basic Success 0.030
test_06_router_advanced Success 0.053
test_07_stop_router Success 30.235
test_08_start_router Success 135.816
test_09_reboot_router Success 160.970
test_deployvm_firstfit Success 161.175
test_deployvm_userconcentrated Success 90.952
test_deployvm_userdispersing Success 50.704
test_deployvm_userdata Success 141.327
test_deployvm_userdata_post Success 25.499
test_01_sys_vm_start Success 0.133
test_02_sys_template_ready Success 0.111
test_01_create_disk_offering Success 0.087
test_02_create_sparse_type_disk_offering Success 0.059
test_04_create_fat_type_disk_offering Success 0.058
test_02_edit_disk_offering Success 0.046
test_03_delete_disk_offering Success 0.036
test_default_role_deletion Success 6.376
test_role_account_acls Success 8.546
test_role_account_acls_multiple_mgmt_servers Error 1.137
test_role_inuse_deletion Success 6.302
test_role_lifecycle_create Success 6.224
test_role_lifecycle_delete Success 11.430
test_role_lifecycle_list Success 6.335
test_role_lifecycle_update Success 6.332
test_role_lifecycle_update_role_inuse Success 6.696
test_rolepermission_lifecycle_concurrent_updates Success 6.730
test_rolepermission_lifecycle_create Success 6.331
test_rolepermission_lifecycle_delete Success 6.234
test_rolepermission_lifecycle_list Success 6.327
test_rolepermission_lifecycle_update Success 6.815
test_01_create_service_offering Success 0.090
test_02_edit_service_offering Success 0.059
test_03_delete_service_offering Success 0.035
test_04_change_offering_small Success 98.049
test_UpdateConfigParamWithScope Success 0.123
ContextSuite context=TestDedicateGuestVlanRange>:setup Error 0.000
test_01_snapshot_root_disk Error 150.951
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80 Error 314.192
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 Failure 546.268
test_03_vpc_internallb_haproxy_stats_on_all_interfaces Failure 151.572
test_04_rvpc_internallb_haproxy_stats_on_all_interfaces Error 561.917
test_01_list_sec_storage_vm Success 0.124
test_02_list_cpvm_vm Success 0.175
test_03_ssvm_internals Success 3.233
test_04_cpvm_internals Success 0.967
test_05_stop_ssvm Error 416.021
test_06_stop_cpvm Success 166.612
test_07_reboot_ssvm Success 158.412
test_08_reboot_cpvm Success 126.325
test_09_destroy_ssvm Success 299.035
test_10_destroy_cpvm Success 196.608
test_01_create_iso Success 66.344
test_02_edit_iso Success 0.061
test_03_delete_iso Success 95.159
test_04_extract_Iso Success 5.201
test_05_iso_permissions Success 0.053
test_06_copy_iso Skipped 0.000
test_07_list_default_iso Success 0.047
test_01_list_volumes Success 0.025
test_02_list_templates Success 0.033
test_03_list_snapshots Success 0.057
test_static_role_account_acls Skipped 0.018
test_01_create_lb_rule_src_nat Success 207.967
test_02_create_lb_rule_non_nat Success 208.359
test_assign_and_removal_lb Success 149.755
login_test_saml_user Error 1.047
test_01_create_template Error 5.107
test_CreateTemplateWithDuplicateName Error 5.119
ContextSuite context=TestTemplates>:setup Error 205.285
test_nic_secondaryip_add_remove Success 238.232
test_network_acl Success 186.616
test_delete_account Success 293.164
test_01_port_fwd_on_src_nat Success 112.030
test_02_port_fwd_on_non_src_nat Success 55.675
test_public_ip_admin_account Success 40.238
test_public_ip_user_account Success 10.224
test_reboot_router Error 444.011
test_releaseIP Success 328.573
test_network_rules_acquired_public_ip_1_static_nat_rule Success 124.645
test_network_rules_acquired_public_ip_2_nat_rule Success 61.661
test_network_rules_acquired_public_ip_3_Load_Balancer_Rule Success 71.792
test_vm_nic_adapter_vmxnet3 Skipped 0.001
test_advZoneVirtualRouter Success 0.017
test_deploy_vm Success 0.022
test_deploy_vm_multiple Success 192.546
test_01_stop_vm Success 10.126
test_02_start_vm Success 20.185
test_03_reboot_vm Success 5.109
test_06_destroy_vm Success 10.118
test_07_restore_vm Success 0.090
test_08_migrate_vm Error 60.794
test_09_expunge_vm Success 125.184
test_10_attachAndDetach_iso Failure 60.158
test_01_nic Success 671.217
test_extendPhysicalNetworkVlan Error 0.028
test_01_test_vm_volume_snapshot Error 121.156
test_01_create_vm_snapshots Success 158.933
test_02_revert_vm_snapshots Success 195.112
test_03_delete_vm_snapshots Success 275.223
test_oobm_background_powerstate_sync Error 17.782
test_oobm_configure_default_driver Error 0.062
test_oobm_configure_invalid_driver Error 0.065
test_oobm_disable_feature_invalid Error 0.095
test_oobm_disable_feature_valid Error 5.148
test_oobm_enable_feature_invalid Error 0.083
test_oobm_enable_feature_valid Error 5.149
test_oobm_enabledisable_across_clusterzones Error 35.681
test_oobm_enabledisable_across_clusterzones Error 35.682
test_oobm_issue_power_cycle Error 10.195
test_oobm_issue_power_cycle Error 10.196
test_oobm_issue_power_off Error 5.233
test_oobm_issue_power_off Error 5.235
test_oobm_issue_power_on Error 10.265
test_oobm_issue_power_on Error 10.266
test_oobm_issue_power_reset Error 10.194
test_oobm_issue_power_reset Error 10.195
test_oobm_issue_power_soft Error 10.192
test_oobm_issue_power_soft Error 10.194
test_oobm_issue_power_status Error 10.286
test_oobm_issue_power_status Error 10.287
test_oobm_multiple_mgmt_server_ownership Error 5.143
test_oobm_multiple_mgmt_server_ownership Error 5.144
test_oobm_zchange_password Error 5.193
test_oobm_zchange_password Error 5.195
test_UpdateStorageOverProvisioningFactor Success 0.109
test_01_create_volume Success 450.508
test_02_attach_volume Success 53.729
test_03_download_attached_volume Success 20.445
test_04_delete_attached_volume Success 10.158
test_05_detach_volume Success 100.249
test_06_download_detached_volume Error 70.524
test_07_resize_fail Skipped 10.221
test_08_resize_volume Skipped 5.093
test_09_delete_detached_volume Success 21.728
test_isolate_network_password_server Failure 133.401
test_createPortablePublicIPAcquire Success 10.650
test_createPortablePublicIPRange Success 15.298
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Failure 649.745
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Error 760.917
test_02_redundant_VPC_default_routes Error 112.078
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Success 456.963
test_04_rvpc_network_garbage_collector_nics Success 847.137
test_05_rvpc_multi_tiers Failure 744.319
test_05_rvpc_multi_tiers Error 835.317
test_01_primary_storage_iscsi Skipped 0.030
test_01_primary_storage_nfs Success 36.600
test_01_vpc_privategw_acl Failure 126.921
test_02_vpc_privategw_static_routes Error 273.092
test_03_vpc_privategw_restart_vpc_cleanup Error 192.368
test_04_rvpc_privategw_static_routes Error 469.095
test_01_VPC_nics_after_destroy Success 631.823
test_02_VPC_default_routes Success 415.057
test_createRegion Success 0.034
test_01_reset_vm_on_reboot Success 60.588
test_01_updatevolumedetail Success 0.073
test_router_dhcphosts Failure 166.513
ContextSuite context=TestRouterDHCPHosts>:teardown Error 186.727
test_02_routervm_iptables_policies Failure 417.506
test_01_single_VPC_iptables_policies Failure 383.882
test_01_isolate_network_FW_PF_default_routes_egress_true Success 288.814
test_02_isolate_network_FW_PF_default_routes_egress_false Success 293.780
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true Failure 381.389
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false Failure 378.408
test_03_RVR_Network_check_router_state Success 382.938
test_01_redundant_vpc_site2site_vpn Error 844.126
test_01_vpc_remote_access_vpn Error 0.070
test_01_vpc_site2site_vpn Failure 424.091
Trillian env - trillian-pr1653-36-vmware-55u3-cs49, Job ID 36
Marvin logs at: http://packages.shapeblue.com/cloudstack/pr/1653/trillian/trillian-pr1653-36-vmware-55u3-cs49

@NuxRo

NuxRo commented Aug 23, 2016

Copy link
Copy Markdown
Contributor Author

So, you guys kind of lost me, all I want is my VRs not to be used in DNS reflection attacks.
Do we have a go or does it break things? :)

@jburwell

Copy link
Copy Markdown
Contributor

@NuxRo this patch does not appear to break things. However, we want to add a Marvin test case to verify that the fix does not regress again. Does that make sense?

@rhtyd is planning to write the Marvin test case this week. Once he is done and we retest, we will merge this PR.

@NuxRo

NuxRo commented Aug 24, 2016

Copy link
Copy Markdown
Contributor Author

Understood, thanks.

@yadvr

yadvr commented Aug 29, 2016

Copy link
Copy Markdown
Member

@NuxRo this PR can be closed as we've moved to a new one with a marvin test #1663
Thanks.

@NuxRo NuxRo closed this Aug 29, 2016
asfgit pushed a commit that referenced this pull request Aug 30, 2016
[LTS/blocker] CLOUDSTACK-6432: Prevent DNS reflection attacksCLOUDSTACK-6432: Prevent DNS reflection attacks

    DNS on VR should not be publically accessible as it may be prone to DNS
    amplification/reflection attacks. This fixes the issue by only allowing VR
    DNS (port 53) to be accessible from guest network cidr, as per the fix in:
    https://issues.apache.org/jira/browse/CLOUDSTACK-6432

    - Only allows guest network cidrs to query VR DNS on port 53.
    - Includes marvin smoke test that checks the VR DNS accessibility checks from
      guest and non-guest network.
    - Fixes Marvin sshClient to avoid using ssh agent when password is provided,
      previous some environments may have seen 'No existing session' exception without
      this fix.
    - Adds a new dnspython dependency that is used to perform dns resolutions in the
      tests.

Due to repository commit issues I've created this PR, based on #1653 .

/cc @jburwell @karuturi @NuxRo @ustcweizhou @wido  and others

* pr/1663:
  CLOUDSTACK-6432: Prevent DNS reflection attacks

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
lucas-a-martins pushed a commit to scclouds/cloudstack that referenced this pull request Jan 29, 2024
Corrigir ordenação de _secondary storages_ com o algoritmo `firstfitleastconsumed`

Closes apache#1653

See merge request scclouds/scclouds!728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants