Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Shane Hoey shanehoey

💭
I may be slow to respond.
View GitHub Profile
@shanehoey
shanehoey / readme.md
Last active April 29, 2022 11:38
Direct Routing Firewall Requirements
View readme.md

Direct Routing Firewall

SBC

Traffic From To Source port Destination port
SIP/TLS 52.112.0.0/14,52.120.0.0/14 SBC 1024 – 65535 Defined on the SBC
SIP/TLS SBC 52.112.0.0/14,52.120.0.0/14 Defined on the SBC 5061
UDP/SRTP 52.112.0.0/14,52.120.0.0/14 SBC 3478-3481 and 49152 – 53247 Defined on the SBC
@shanehoey
shanehoey / brandX.md
Last active May 14, 2022 03:34
Snooey Theme syntax files
View brandX.md

brand[x].Yaml Syntax

layout: &layout
  body:
    class:   # class
    style:   # style
  header:
 class: # class
@shanehoey
shanehoey / directrouting.ps1
Last active May 23, 2022 10:59
Direct Routing Audit
View directrouting.ps1
# Display
Get-CsOnlinePSTNGateway | Select-Object * | Format-list
Get-CsOnlinePstnUsage | Select-Object * | Format-list
Get-CsOnlineVoiceRoute | Select-Object * | Format-list
Get-CsOnlineVoiceRoutingPolicy| Select-Object * | Format-list
Get-CsVoiceRoutingPolicy | Select-Object * | Format-list
Get-CsTenantDialPlan | Select-Object * | Format-list
@shanehoey
shanehoey / github.http
Last active August 22, 2022 07:25
github api
View github.http
@owner = shanehoey
@repository = shanehoey
@token = {{ $processEnv GITHUBtoken }}
### Check rate limit
get https://api.github.com/rate_limit
Accept: application/vnd.github+json
Authorization: token {{token}}
### get user
@shanehoey
shanehoey / readme.md
Last active December 6, 2022 07:27
Simulated Internet outage with a Teams Survivable Branch Appliance
View readme.md

Simulated Internet outage with a teams Survivable Branc Appliance.

The following Information is the minimum information you will need to test a single Windows Teams Client for survivability. You will need to update these values to reflect your environment.

SBA Value
SBA Fqdn sba.audiocodes.cloud
SBA IP Address 10.1.0.22
SBA Subnet 255.255.255.0
SBA Gateway 10.1.0.1
@shanehoey
shanehoey / readme.md
Last active December 7, 2022 13:23
Troubleshooting a Teams Survivable Branch Appliance
View readme.md

Troubleshooting Teams SBA

Supported Clients

  • Microsoft Teams Windows desktop
  • Microsoft Teams macOS desktop
  • Microsoft Teams for Mobile
  • Microsoft Teams Phones
@shanehoey
shanehoey / readme.md
Created December 8, 2022 01:36
Enabling Users for Teams Survivable Branch Appliance
@shanehoey
shanehoey / new-adforest.md
Last active January 21, 2023 04:56
New AD Forest
View new-adforest.md

New AdForest

$servername =       "dc01"
$domainname =       "example.com"
$netbios    =       "example"
$ipaddress =        "192.168.10.248"
$prefixlenght =     "24"
$defaultgateway =   "192.168.10.254"
@shanehoey
shanehoey / readme.md
Created January 21, 2023 04:57
Create a manual Certificate
View readme.md

Issue a manual certificate on Windows PKI and use it on an Audiocodes Gateway

Issue a manual certificate on Windows PKI and use it on an Audiocodes Gateway

certreq.exe -attrib "CertificateTemplate:webserver" -submit ssl.req