Centrally manage VPC network ACL rules to block unwanted traffic using AWS Firewall Manager

Post Syndicated from Bryan Van Hook original https://aws.amazon.com/blogs/security/centrally-manage-vpc-network-acl-rules-to-block-unwanted-traffic-using-aws-firewall-manager/

Amazon Virtual Private Cloud (Amazon VPC) provides two options for controlling network traffic: network access control lists (ACLs) and security groups. A network ACL defines inbound and outbound rules that allow or deny traffic based on protocol, IP address range, and port range. Security groups determine which inbound and outbound traffic is allowed on a network interface, but they cannot explicitly deny traffic like a network ACL can. Every VPC subnet is associated with a network ACL that ultimately determines which traffic can enter or leave the subnet, even if a security group allows it. Network ACLs provide a layer of network controls that augment your security groups.

There are situations when you might want to deny specific sources or destinations within the range of network traffic allowed by security groups. For example, you want to deny inbound traffic from malicious sources on the internet, or you want to deny outbound traffic to ports or protocols used by exploits or malware. Security group rules can only control what traffic is allowed. If you want to deny specific traffic within the range of allowed traffic from security groups, you need to use network ACL rules. If you want to deny specific types of traffic in many VPCs, you need to update each network ACL associated with subnets in each of those VPCs. We heard from customers that implementing a baseline of common network ACL rules can be challenging to manage across many Amazon Web Services (AWS) accounts, so we expanded AWS Firewall Manager capabilities to make this easier.

AWS Firewall Manager network ACL security policies allow you to centrally manage network ACL rules for VPC subnets across AWS accounts in your organization. The following sections demonstrate how you can use network ACL policies to manage common network ACL rules that deny inbound and outbound traffic.

Deny inbound traffic using a network ACL security policy

If you have not already set up a Firewall Manager administrator account, see Firewall Manager prerequisites. Note that network ACL policies require your AWS Config configuration recorder to include the AWS::EC2::NetworkAcl and AWS::EC2::Subnet resource types.

Let’s review an example of how you can now use Firewall Manager to centrally manage a network ACL rule that denies inbound traffic from a public source IP range.

To deny inbound traffic:

  1. Sign in to your Firewall Manager delegated administrator account, open the AWS Management Console, and go to Firewall Manager.
  2. In the navigation pane, under AWS Firewall Manager, select Security policies.
  3. On the Filter menu, select the AWS Region where your VPC subnets are defined, and choose Create policy. In this example, we select US East (N. Virginia).
  4. Under Policy details, select Network ACL, and then choose Next.

    Figure 1: Network ACL policy type and Region

    Figure 1: Network ACL policy type and Region

  5. On Policy name, enter a Policy name and Policy description.

    Figure 2: Network ACL policy name and description

    Figure 2: Network ACL policy name and description

  6. In the Network ACL policy rules section, select the Inbound rules tab.
  7. In the First rules section, choose Add rules.

    Figure 3: Add rules in the First rules section

    Figure 3: Add rules in the First rules section

  8. In the Inbound rules window, choose Add inbound rules.

    Figure 4: Add inbound rules

    Figure 4: Add inbound rules

  9. For Inbound rules, choose the following:
    1. For Type, select All traffic.
    2. For Protocol, select All.
    3. For Port range, select All.
    4. For Source, enter an IP address range that you want to deny. In this example, we use 192.0.2.0/24.
    5. For Action, select Deny.
    6. Choose Add Rules.

    Figure 5: Configure a network ACL inbound rule

    Figure 5: Configure a network ACL inbound rule

  10. In Network ACL policy rules, under First rules, review the deny rule.

    Figure 6: Review the inbound deny rule

    Figure 6: Review the inbound deny rule

  11. Under Policy action, select the following:
    1. Select Auto remediate any noncompliant resources.
    2. Under Force Remediation, select Force remediate first rules. Firewall Manager compares your existing network ACL rules with rules defined in the policy. A conflict exists if a policy rule has the opposite action of an existing rule and overlaps with the existing rule’s protocol, address range, or port range. In these cases, Firewall Manager will not remediate the network ACL unless you enable force remediation.

    Figure 7: Configure the policy action

    Figure 7: Configure the policy action

  12. Choose Next.
  13. Policy scope, select the following:
    1. Under AWS accounts this policy applies to, select the scope of accounts that apply. In this example, we include all accounts.
    2. Under Resource type, select Subnet.
    3. Under Resources, select the scope of resources that apply. In this example, we only include subnets that have a particular tag.

    Figure 8: Configure the policy scope

    Figure 8: Configure the policy scope

  14. Enable resource cleanup if you want Firewall Manager to remove the rules it added to network ACLs associated with subnets that are no longer in scope. To enable cleanup, select Automatically remove protections from resources that leave the policy scope, and choose Next.

    Figure 9: Enable resource cleanup

    Figure 9: Enable resource cleanup

  15. Under Configure policy tags, define the tags you want to associate with your policy, and then choose Next.
  16. Under Review and create policy, choose Next.

Before creating the Firewall Manager policy, the subnet is associated with a default network ACL, as shown in Figure 10.

Figure 10: Default network ACL rules before the subnet is in scope

Figure 10: Default network ACL rules before the subnet is in scope

As shown in Figure 11, the subnet is now associated with a network ACL managed by Firewall Manager. The original Allow rule has been preserved and moved to priority 5,000. The Deny rule has been added with priority 1.

Figure 11: Inbound rules in network ACL managed by Firewall Manager

Figure 11: Inbound rules in network ACL managed by Firewall Manager

Deny outbound traffic using a network ACL security policy

You can also use Firewall Manager to implement outbound network ACL rules to deny the use of ports used by malware or software vulnerabilities. In this example, we’re blocking the use of LDAP port 389.

  1. Sign in to your Firewall Manager delegated administrator account and open the Firewall Manager console.
  2. In the navigation pane, under AWS Firewall Manager, select Security policies.
  3. On the Filter menu, select the AWS Region where your VPC subnets are defined, and choose Create policy. In this example, we select US East (N. Virginia).
  4. Under Policy details, select Network ACL, and then choose Next.
  5. Enter a Policy name and Policy description.
  6. In the Network ACL policy rules section, select the Outbound rules tab.
  7. In the First rules section, choose Add rules.

    Figure 12: Add rules in the First rules section

    Figure 12: Add rules in the First rules section

  8. Under Outbound rules, choose Add outbound rules.
  9. In Outbound rules, select the following:
    1. For Type, select LDAP (389).
    2. For Destination, enter 0.0.0.0/0.
    3. For Action, select Deny.
    4. Choose Add Rules.

    Figure 13: Configure a network ACL outbound rule

    Figure 13: Configure a network ACL outbound rule

  10. On the Network ACL policy rules page, under First rules, review the deny rule.

    Figure 14: Review the outbound deny rule

    Figure 14: Review the outbound deny rule

  11. In Policy action, under Policy action, select the following:
    1. Select Auto remediate any noncompliant resources.
    2. Under Force Remediation, select Force remediate first rules, and then choose Next.

    Figure 15: Configure the policy action

    Figure 15: Configure the policy action

  12. Under Policy scope, choose the following:
    1. Under AWS accounts this policy applies to, select the scope of accounts that apply. In this example, we include all accounts by selecting Include all accounts under my organization.
    2. Under Resource type, select Subnet.
    3. Under Resources, select the scope of resources that apply. In this example, we select Include only subnets that all the specified resource tags.

    Figure 16: Configure the policy scope

    Figure 16: Configure the policy scope

  13. On Resource cleanup, enable resource cleanup if you want Firewall Manager to remove rules it added to network ACLs associated with subnets that are no longer in scope. To enable resource cleanup, select Automatically remove protections from resources that leave the policy scope, and then choose Next.

    Figure 17: Enable resource cleanup

    Figure 17: Enable resource cleanup

  14. Under Configure policy tags, define the tags you want to associate with your policy, and then choose Next.
  15. Under Review and create policy, choose Next.

Before creating the Firewall Manager policy, the subnet is associated with a network ACL that already contains rules with priority 100 and 101, as shown in Figure 18.

Figure 18: Rules in original network ACL

Figure 18: Rules in original network ACL

As shown in Figure 19, the subnet is now associated with a network ACL managed by Firewall Manager. The original rules have been preserved and moved to priority 5,000 and 5,100. The Deny rule for LDAP has been added with priority 1.

Figure 19: Outbound rules in network ACL managed by Firewall Manager

Figure 19: Outbound rules in network ACL managed by Firewall Manager

Working with network ACLs managed by Firewall Manager

Firewall Manager network ACL policies allow you to manage up to 5 inbound and 5 outbound rules. Network ACLs can support a total of 20 inbound rules and 20 outbound rules by default. This limit can be increased up to 40 inbound rules and 40 outbound rules, but network performance might be impacted. Consider AWS Network Firewall if you need support for more rules and a broader set of features.

To diagnose overly restrictive network ACL rules, see Querying Amazon VPC flow logs to learn more about using Amazon Athena to analyze your VPC flow logs.

AWS accounts that are in scope of your Firewall Manager policy might have identities with permission to modify network ACLs created by Firewall Manager. You can use a service control policy (SCP) to deny AWS Identity and Access Management (IAM) actions that modify network ACLs if you want to make sure that they are exclusively managed by Firewall Manager. Firewall Manager uses service-linked roles, which are not restricted by SCPs. The following example SCP denies network ACL updates without restricting Firewall Manager:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyNaclUpdateExceptFMS",
      "Effect": "Deny",
      "Action": [
        "ec2:CreateNetworkAclEntry",
        "ec2:DeleteNetworkAclEntry",
        "ec2:ReplaceNetworkAclAssociation",
        "ec2:ReplaceNetworkAclEntry"
      ],
      "Resource": "*"
    }
  ]
}

Summary

Prior to AWS Firewall Manager network ACL security policies, you had to implement your own process to orchestrate updates to network ACLs across VPC subnets in your organization in AWS Organizations. AWS Firewall Manager network ACL security policies allow you to centrally define common network ACL rules that are automatically applied to VPC subnets across your organization, even as you add new accounts and resources. In this post, we demonstrated how you can use network ACL policies in a variety of scenarios, such as blocking ingress from malicious sources and blocking egress to destinations used by malware and exploits. You can also use network ACL policies to implement an allow list. For example, you might only want to allow egress to your on-premises network.

To get started, explore network ACL security policies in the Firewall Manager console. For more information, see the AWS Firewall Manager Developer Guide and send feedback to AWS re:Post for AWS Firewall Manager or through your AWS support team.

Bryan Van Hook

Bryan Van Hook
Bryan is a Senior Security Solutions Architect at AWS. He has over 25 years of experience in software engineering, cloud operations, and internet security. He spends most of his time helping customers gain the most value from native AWS security services. Outside of his day job, Bryan can be found playing tabletop games and acoustic guitar.

Author

Jesse Lepich
Jesse is a Senior Security Solutions Architect at AWS based in Lake St. Louis, Missouri, focused on helping customers implement native AWS security services. Outside of cloud security, his interests include relaxing with family, barefoot waterskiing, snowboarding and snow skiing, surfing, boating and sailing, and mountain climbing.

Имат думата читателите

Post Syndicated from Тоест original https://www.toest.bg/imat-dumata-chitatelite-2024/

Имат думата читателите

Скъпи читатели,

„Тоест“ е медия, която винаги активно търси диалог, и мнението на читателите ни е от решаващо значение за нас. Ще сме искрено благодарни, ако ни отделите 10 минути, за да отговорите на няколко въпроса в анкетата по-долу. С нея бихме искали да научим повече за читателските ви възприятия, какво е мнението ви за „Тоест“ и за присъствието на медията в социалните мрежи, а също така какви са нагласите ви към финансовата подкрепа на независими медии. Анкетата е анонимна и много лесна за попълване.

Благодарим ви предварително за времето, което ще отделите, за да споделите с нас своите мисли. Всеки отговор е ценен и ще ни помогнете да продължим да развиваме и подобряваме „Тоест“.

Kernel prepatch 6.10-rc7

Post Syndicated from corbet original https://lwn.net/Articles/981020/

The 6.10-rc7 kernel prepatch is out for
testing.

Things remain calm, although I do suspect that part of it is that
it’s been the July 4th week in the US, and a lot of Europe is
starting to go away on summer vacation.

But hey, let’s not look a gift horse too closely in the
mouth. Maybe it’s really just that 6.10 is shaping up well. Right?
RIGHT?

NICGIGA S100-0800T Review The Cheap Unmanaged 8-port 10Gbase-T Switch

Post Syndicated from Rohit Kumar original https://www.servethehome.com/nicgiga-s100-0800t-review-the-cheap-unmanaged-8-port-10gbase-t-switch-realtek/

In our NICGIGA S100-0800T review, we see how this $222 unmanaged 8-port 10Gbase-T switch delivers 10GbE speeds so cheaply

The post NICGIGA S100-0800T Review The Cheap Unmanaged 8-port 10Gbase-T Switch appeared first on ServeTheHome.

Седмицата (1–6 юли)

Post Syndicated from Боряна Телбис original https://www.toest.bg/sedmitsata-1-6-yuli/

Седмицата (1–6 юли)

По всяка вероятност вървим към нови парламентарни избори наесен, както коментира в текста си за „Тоест“ и Емилия Милчева. В тази връзка 50-тото Народно събрание съвсем спокойно можеше да е имейл. Да разпратят до всички заинтересовани (и бездруго не са много предвид избирателната активност) и да се приключва. 

Може и да е рийл. Или стори. Най-добре рийл на стори и да изчезне за 24 часа. 

Освен ако, разбира се, не говорим за сериала „Величие“. Там по-интересно не може да стане. Жалко, че първи сезон приключва, но съспенсът остава.

Предлагам синопсис на първи епизод от сезон 2:

Ивелин Михайлов е в тронната зала на „Исторически парк“, който се е превърнал в цитаделата на Обединено кралство Ветрино. След обявяването на автономността първоначалният замисъл за република е набързо изместен от далеч по-внушителната концепция за кралство, като за целта са присъединени Албена, Златни пясъци и Св. св. Константин и Елена, защото е изключително важно да имаме излаз на море (когато нямаме три морета, и три излаза на едно и също море вършат работа). 

Зрителят усеща мотивацията, която ще движи героя през целия сезон – вътрешният импулс идва от самотата, родена от предателството. Доскорошният верен съратник на Ивелин Михайлов – Николай Марков, известен като Полковника, вече е предател. Стореното в студиото на bTV в миналия сезон е непростимо. 

И тъкмо когато Ивелин посяга унило към насъщните фъстъци, през вратата на тронната зала влетява вестител, облечен с ризница и препасъл меч (ние ларпаджии ли сме, или какво!). Задъханият придворен успява да каже ТОЙ Е ТУК и се строполява в несвяст в нозете на владетеля. 

Ивелин хвърля поглед през тройния стъклопакет и вижда пред портите на кралството си Делян Пеевски начело на добре въоръжена преторианска гвардия. С трепереща десница отваря прозореца, за да чуе призива на Повелителя на седемте парламента. 

„Ивелине, слез да поговорим, нищо няма да ти направя!“

Тук епизодът свършва и започва тийзър за следващия със заявка за много динамика, трилър, екшън сцени, неочаквани обрати, но и забавни моменти с някой и друг романтичен елемент.

Във връзка с горното, но и някак напълно сериозно призовавам последните четири години от обществения живот в страната да НЕ се преподават по история, когато някога в неопределеното бъдеще се стигне до евентуалното им изучаване. 

Защото ще е сеч. 

Никой няма да може да се оправи с броя на изборите, парламентите и министър-председателите. Нека да ги наречем „Тъмни векове“ и да си стиснем ръцете за по-светло бъдеще.

Него го чакаме на крилете на изкуствения интелект, защото вярата в естествения все повече ни куца. За технологиите от семейството на изкуствения интелект и за „приятелското“ рамо, което могат да предложат на съвременния човек, разказва Веселин Райчев, един от създателите на BgGPT, в разговор с Йовко Ламбрев.

С вярата е обвързан по някакъв начин и тазседмичният текст на Светла Енчева. „Трябва ли неправославните да се интересуват от БПЦ?“, пита тя и даже дава отговори.

С такива аз напоследък тотално не разполагам почти по никакви теми и особено по въпроси като „За какво мисли човек?“. Какво щастие, че тази седмица в рубриката „На второ четене“ Стефан Иванов ни предлага сборника с разкази от украинския писател Васил Габор – „За какво мисли човек“!

Ако приема по-сериозно задачата да дам отговор на горния въпрос, то той е, че в момента мисля как да не забравя да отбележа текстовете от трите специални поредици, които имаме възможността да публикуваме в „Тоест“. И затова директно ги спускам за ваше сведение.

Едната е от Еми Барух, която наскоро се върна от Израел и в рамките на три материала (интервю с Етгар Керет и два репортажа от протестите срещу Нетаняху в Тел Авив и от опустошените кибуци на 7 октомври 2023 г.) споделя реални впечатления от случващото се в страната в момента. Тази седмица излезе вторият ѝ текст – „Раната Израел“

Другата поредица е от Николета Атанасова, която в пет поредни статии ще ни запознае със съдбите на руски граждани, потърсили в България убежище и спасение от режима на Владимир Путин. Първата история е на Александър Стоцки.

А третата поредица вече тече с пълна сила и носи хлад от Севера с текстове от Светла Стоянова. Тази седмица рубриката ѝ продължава с увлекателен разказ и дневникови бележки за Фарьорските острови.

А аз не мисля да продължавам повече с този бюлетин, затова приключвам с любезното напомняне, че „Тоест“ все още съществува благодарение само и единствено на дарения от своите верни читатели поради липса на посолства, които искат да ни „осиновят“. Може би да се надяваме на нещо от Обединено кралство Ветрино, в случай че синопсисът от по-горе се е харесал, но дотогава разчитаме само на вас и ви благодарим сърдечно за подкрепата.

Lanner NCA-1515A Review This is the Home Lab Deal of the Year

Post Syndicated from Patrick Kennedy original https://www.servethehome.com/lanner-nca-1515a-review-is-the-home-lab-deal-of-the-year-intel-transcend-qualcomm/

In our Lanner NCA-1515A review, we see how this box with awesome networking options might be one of the better home lab buys we had this year

The post Lanner NCA-1515A Review This is the Home Lab Deal of the Year appeared first on ServeTheHome.

The collective thoughts of the interwebz