Skip to content

Instantly share code, notes, and snippets.

View joe-at-cp's full-sized avatar

Joe Dillig joe-at-cp

View GitHub Profile
@joe-at-cp
joe-at-cp / perfprep.sh
Last active January 14, 2022 17:50
Virtual Performance Testing Config
#!/bin/bash
# ---------------------------------------------------------------
# PerfPrep.sh - Joe Dillig
# Prepares Ubuntu Servers for Virtual Performance Testing
# Uses Nginx to host a web server on port 80 and 443 with ssl
# ---------------------------------------------------------------
#Download Tools
sudo apt-get update
@joe-at-cp
joe-at-cp / main.tf
Created August 25, 2020 15:14
Terraform - VMware Deploy VM From Template With Generated Config Drive ISO
provider "vsphere" {
user = var.vsphere_user
password = var.vsphere_password
vsphere_server = var.vsphere_server
# If you have a self-signed cert
allow_unverified_ssl = true
}
data "vsphere_datacenter" "dc" {
@joe-at-cp
joe-at-cp / gist:6f1099d0be2cfc41a222b77b24517d03
Created November 4, 2019 21:30
Ansible - CloudGuard Connect - Create Site
---
- hosts: localhost
gather_facts: no
vars:
#Authentication
CLIENT_ID:
ACCESS_KEY:
#Tunnel Info
TUNNEL_NAME: AnsibleDemo
@joe-at-cp
joe-at-cp / api_parser.sh
Last active January 14, 2022 17:51
Check Point Management API Log Parser v1
#!/bin/bash
#api.elg log parser v1
#Joe Dillig - Check Point Software 2019
API_HEADER_IDs=$(cat api.elg | grep ID | awk '{print $2}' | sort -n | uniq)
for ID in $API_HEADER_IDs
do
@joe-at-cp
joe-at-cp / distribute.sh
Created September 20, 2019 22:49
File Distribute Script For Check Point Management Servers
#!/bin/bash
#distribute.sh
#Joe Dillig - Check Point Software 2019 - [email protected]
#Script used to distrubute custom dynamic object tracking scripts to managed gateways from the Check Point management server
#Location to transfer files to on each gateway
REMOTE_SCRIPT_DIR="/home/admin/scripts/dynobjs"
#List of files to distribute
@joe-at-cp
joe-at-cp / gist:e833127a9545db29a5b488b06d263947
Last active January 14, 2022 17:51
Azure Custom-Data - Check Point Gateway - Basic Autoreg Setup
#!/bin/bash
CP_MGMT="10.200.1.3"
API_USER="api_user"
API_PASS="vpn123"
SIC_KEY="vpn123"
MGMT_IF="eth0"
MGMT_IP=$(ifconfig $MGMT_IF | grep inet | awk '{print $2}' | cut -d ':' -f 2)
blink_config -s "gateway_cluster_member=false&ftw_sic_key=$SIC_KEY&upload_info=true&download_info=true"
@joe-at-cp
joe-at-cp / gist:ec810eedc7e059605575ce9e03ee8881
Created July 30, 2019 17:46
Azure Custom-Data - Check Point Management - Basic Autoreg Setup
#!/bin/bash
GUI_USER="admin"
GUI_PASS="vpn123"
API_USER="api_user"
API_PASS="vpn123"
config_system -s "install_security_gw=false&install_ppak=false&gateway_cluster_member=false&install_security_managment=true&install_mgmt_primary=true&install mgmt_secondary=false&mgmt_admin_name=$GUI_USER&mgmt_admin_passwd=$GUI_PASS&mgmt_gui_clients_radio=any"
while true;
do
@joe-at-cp
joe-at-cp / gist:98971e9b73817c66fb758cc4d31eebd2
Created July 25, 2019 17:29
Terraform - Openstack - Deploy Check Point QCOW Image
provider "openstack" {
user_name = "admin"
tenant_name = "admin"
password = ""
auth_url = "http://10.200.0.40:35357/v3"
region = "default"
}
resource "openstack_compute_instance_v2" "basic" {
name = "CloudGuard"
@joe-at-cp
joe-at-cp / gist:143de99ecc19abb9cc89b30fa9f7556b
Created July 25, 2019 14:25
Ansible - Check Point Gateway - VMware vApp Options
---
- hosts: localhost
vars:
vcenter_hostname: 192.168.30.244
vcenter_username: [email protected]
vcenter_password: ""
vm_name: CheckPointvAppImage
vapp_Hostname: "{{ vm_name }}"
vapp_Management_Interface: eth0
vapp_Management_IP: "{{ mgmtif_ip }}"
@joe-at-cp
joe-at-cp / gist:4af6369c61c47d576eec846e6998ec18
Created July 25, 2019 14:21
Openstack Heat - Standalone - NNICS-5-8-19
heat_template_version: 2018-08-31
description: Check Point CloudGuard Standalone Heat Template
parameters:
cp_name:
type: string
description: Gateway/Cluster/MGMT Image Name as it will be created in Openstack
default: CPOpenStack