Code Monkey home page Code Monkey logo

aws-gwlb-vmseries's Introduction

aws-gwlb-vmseries's People

Contributors

jasonmeurer avatar jasonmeurerpalo avatar prnair355 avatar rajp3126 avatar rt696b75 avatar salsop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-gwlb-vmseries's Issues

AWS Lambda Python 3.6 Deprication

Is your feature request related to a problem?

Update CFT templates and panw-aws.zip to support Python 3.9 due to AWS removing support for Python 3.6

Describe the solution you'd like

Update CFT templates and panw-aws.zip to support Python 3.9 due to AWS removing support for Python 3.6

Describe alternatives you've considered

None

Additional context

Update CFT templates and panw-aws.zip to support Python 3.9 due to AWS removing support for Python 3.6

Question on cft with autoscale for auth code

As per document "before launching the templates"

obtain the auth code for a bundle that supports the number of firewalls that might be required for your deployment.

Does this means this works only for BYOL or am I misunderstanding, want to test for usage based.

Question on "Specify the keys for enabling API access to the firewall and Panorama"

STEP 8 |Specify the keys for enabling API access to the firewall and Panorama.

  1. Enter the key that the firewall must use to authenticate API calls. The default key is based on the
    sample file and you should only use it for testing and evaluation. For a production deployment, you
    must create a separate PAN-OS login just for the API call and generate an associated key.
  2. Enter the API Key to allow AWS Lambda to make API calls to Panorama. For a production
    deployment, you should create a separate login just for the API call and generate an associated key.

May please some help.

For 1.
This is which key ,the key we create inside panorama for user pandemo/demopassword ?

for2.
The same key which we create inside panorama for user pandemo/demopassword ?

key i am creating is like below once user is defined inside panorama

curl -k -X GET 'https://x.x.x.x.x/api/?type=keygen&user=pandemo&password=demopassword'
LUFRPT1OWkpUYmxNME5hU25teE9KbkhUMzk2NnBRVUE9N0d4RGpTN2VZaVZYMVVoS253U0p6dWd3K1FSTW5rSUtuVXFsNWt1exxxxxxxxx==/ #

for step1 if I use the default key in template I get error like (cloudwatch logs /aws/lambda/xxxxxx-Init_lambda-lambda-sched-event)
[ERROR] 2021-05-11T16:08:45.672Z 1595434d-6be9-4ef6-952f-b5f933d96404 [RunCommand Response Fail]: HTTP Error 403: Invalid Credential

Failed to run command: https://x.x.x.x./api/?type=op&cmd=1&key=LUFRPT1Zd2pYUGpkMUNrVEZlb3hROEQyUm95dXNGRkU9N0d4RGpTN2VZaVZYMVVoS253U0p6dlk3MkM0SDFySEh2UUR4Y3hzK2g3ST0=

Terraform with ASG

Is your feature request related to a problem?

The terraform templates are great but it would be nice to have TF with autoscale. Currently the template just deploys a static set of firewalls across the listed az's

Describe the solution you'd like

I would like to see a terraform script that would support an auto-scale group in AWS

Describe alternatives you've considered

none

Additional context

Being able to scale while using GWLB would be a great solution using terraform

[Community Health Assessment] Changes needed

This issue was opened by a bot called Community Health (PANW) because this repo has failed too many community health checks.

Repo maintainers: Please take the time to fix the issues in the table to reach the target score. These improvements will help others find your work and contribute to it. This issue will update as your score improves until it hits the target score.

Click More info for instructions to fix each item.

Health Check Pass Score More Info
Contains a meaningful README.md file 20 / 20 More info
SUPPORT.md file exists 0 / 20 More info
Repo has a description 15 / 15 More info
Has a recognized open source license 15 / 15 More info
Has a descriptive repo name 15 / 15 More info
Required topics attached to repo 0 / 15 More info
CONTRIBUTING.md file with contribution guidelines 0 / 5 More info
Has custom issue and pull request templates 0 / 5 More info

Current score: 65
Target threshold: 100
Total possible: 110

use of Interface Endpoint for parameter vmseries-bootstrap-aws-s3bucket

Is your feature request related to a problem?

Hello,
I would like to use an S3 Interface Endpoint while serving the bootstrap files.
As S3 interface endpoints require special use I'm wondering if PA bootstrap method could or already does support such a requirement.

Describe the solution you'd like

Use a map when using vmseries-bootstrap-aws-s3bucket which allows adding the endpoint URL.

Describe alternatives you've considered

Additional context

Question of panaroma 10.0.2 + on AWS

I am trying to get panorama 10.0.2 or like that in AWS

AWS market place max supported is 9.1.9 .Checking if I am doing something wrong.

if I try community AMI say
Panorama-AWS-10.0.2-f264c750-1102-41c9-a14d-b54ea51780e4-ami-043b1436d961638fa.4 - ami-01f439875be1959cc
Panorama-AWS-10.0.2

fails saying not supported.

init-cfg.txt config breaks bootstrapping

Describe the bug

The requirement for GWLB to swap the mgmt interface doesn't work with this userdata template / init-cfg file

Expected behavior

Bootstrap / userdata config should swap mgmt interface with eth1 in order to register with the load balancer target group

Current behavior

Firewall will deploy but without mgmt swap, so will never register until run manually

Possible solution

As per the PA documentation, either a space OR comma should be used, not both.
https://docs.paloaltonetworks.com/vm-series/10-0/vm-series-deployment/set-up-the-vm-series-firewall-on-aws/vm-series-integration-with-gateway-load-balancer/integrate-the-vm-series-with-an-aws-gateway-load-balancer/manually-integrate-the-vm-series-with-a-gateway-load-balancer.html

Lines should be changed as follows:
/CFT_2_Firewalls/bootstrap/init-cfg.txt & /CFT_2_Firewalls/bootstrap/config/init-cfg.txt Line 13:
op-command-modes=jumbo-frame,mgmt-interface-swap
/CFT_2_Firewalls/SecurityVPC.yaml Line 995:

  • op-command-modes=jumbo-frame,mgmt-interface-swap

Steps to reproduce

Deploy this template as is, the firewalls will not become healthy on the Target Group and running the manual command to check the interface

Question on using transit GW in account1using RAM to share with say test account2

trying to use your below template as it is to test.

https://github.com/PaloAltoNetworks/AWS-GWLB-VMSeries/tree/main/cft%20with%20autoscale/app_stack

Only thing is I want to test setting up app stack in separate account and use transit GW setup in our security account.TGW is shared from security account using RAM and is visible inside my test account.

Deployment fails saying.
Transit Gateway tgw-0609xxx7 was deleted or does not exist. (Service: AmazonEC2; Status Code: 400; Error Code: InvalidTransitGatewayID.NotFound; Request ID: 80918cdd-5f72-48eb-9200-335a73e6730d; Proxy: null)

shared TGW is visible in this account.

Question: Does the SecurityVPC.yaml works with specifying any s3 ?

Hi,

I used https://github.com/PaloAltoNetworks/AWS-GWLB-VMSeries/blob/main/CFT_2_Firewalls/SecurityVPC.yaml

and executed ,everything gets created without any error. But when I try to ssh to public IP of VM-Series Management not reachable.

Note: I have left blank "AWS S3 Bucket Name containing the VM-Series Bootstrap Information:"

I even added udp to check if i get ping request, but nothing...

niteen-test01-VMSeries-Management

Type Protocol Port range Source Description - optional
SSH TCP 22 0.0.0.0/0
All UDP UDP 0 - 65535 0.0.0.0/0
HTTPS TCP 443 0.0.0.0/0

not getting registered in panorama

My stack completes without any issue but not getting registered inside panorama.

I have debug enabled

my cloudwatch /aws/lambda/xxxxxx-Init_lambda-lambda-sched-event shows below.

[ERROR] 2021-04-28T18:04:06.361Z 4303974a-4650-456e-92ea-b34935ea59f2 [RunCommand Response Fail]: HTTP Error 403: Invalid Credential
Failed to run command: https://10.xxx.xx.5/api/?type=op&cmd=1&key=LUFRPT1Zd2pYUGpkMUNrVEZlb3hROEQyUm95dXNGRkU9N0d4RGpTN2VZaVZYMVVoS253U0p6dlk3MkM0SDFySEh2UUR4Y3hzK2g3ST0=

any idea what wrong I am doing?

CFT with autoscale fails EIP creation with message "Invalid value 'VPC' for domain."

Describe the bug

When executing cft with autoscale, cft fails to create EIPs. Error provided is "Invalid value 'VPC' for domain." CFT rolls back.

Expected behavior

EIPs are successfully created.

Current behavior

See above.

Possible solution

Current firewall-new-vpc-v3.0.template contains code similar to the following:

"EIP1" : {
"Type" : "AWS::EC2::EIP",
"Properties" : {
"Domain" : "VPC"
},
"DependsOn": [ "VPC", "GatewayToInternet", "IGW" ]
},

Modify firewall-new-vpc-v3.0.template as follows:

"EIP1" : {
"Type" : "AWS::EC2::EIP",
"Properties" : {
"Domain" : "vpc"
},
"DependsOn": [ "VPC", "GatewayToInternet", "IGW" ]
},

Repeat these modifications for EIP1, EIP2, EIP3 and EIP4 definitions.

Steps to reproduce

Deploy CFT as per instructions. The following will be the result:

EIP1-error

Question on AWS GWLB Autoscaling with Panorama.

Hi team,
Could we use the CFT AutoScaling template without Panorama?
If not, how could I obtain the evaluation license? Currently, I have 2 VM-100 evaluation licenses but I don't have Panorama
@salsop could you please help me with this?
Thanks in advance!

cft_simplifiedASG_with_warm_pools does not include PA FWs in GWLB Target Group automatically

Describe the bug

PA FWs are not included automatically in GWLB target group when they get up with template cft_simplifiedASG_with_warm_pools

Expected behavior

The FWs should be added to Target Group of GWLB to be able to filter traffic. Without this GENEVE tunnel connection, the traffic can not reach the FW.

Current behavior

The PA FW are not included automatically to Target Group.

Steps to reproduce

Deploy the cft_simplifiedASG_with_warm_pools template with more than 1 FW active in ASG and it's easy to see the new FW is not added to Target Group

Context

The issue doesn't let to make the template works as expected without manual intervention. Without this feature, the deployment can not accomplish dynamic behavior the environment requests

Firewall API Key Issues

Can't generate firewall's API key prior to deployment, but is required for Lambda API calls for Firewall status.

No bootstrap.xml being used due to Panorama supported bootstrapping.

How can you generate an API key for a firewall that is yet to be booted?

Field in question: KeyPANWFirewall

Need to documentation that Paloalto AMI are not supported IMDSv2

Documentation link

https://github.com/PaloAltoNetworks/AWS-GWLB-VMSeries/tree/main/terraform/README.md

Describe the problem

I think add to Prerequisites that paloalto ami are needs IMDSv1.
instance are can't read user-data of the aws instance parameters when first boot if restricted only allowed IMDSv2
(for example, SCP of the AWS organization)

Suggested fix

  1. Make a sure IMDS settings
  • Paloalto AMI are need IMDSv1 for get user-data
  • aws_instance.http_tokens=optional

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.