Skip to content

gbe0.com

Networking, system administration and more

  • Home
  • Categories
    • Linux
      • Desktop
      • Server
      • Virtual
    • Networking
      • Dell
      • Juniper
      • Ubiquiti
    • Scripting
      • Powershell
      • Puppet/Ruby
      • Python
    • Security
    • Hardware
    • Windows
      • Server
  • Pages
    • Networking Pages
    • Linux Pages
      • Useful Linux Tools
      • nftables Configuration Templates
    • Security Pages
      • Hardening Guides
      • Privilege Management
      • Useful Tools
  • Wiki
  • GitHub
  • Password Dump
  • Contact

gbe0.com

Networking, system administration and more

  • Home
  • Categories
    • Linux
      • Desktop
      • Server
      • Virtual
    • Networking
      • Dell
      • Juniper
      • Ubiquiti
    • Scripting
      • Powershell
      • Puppet/Ruby
      • Python
    • Security
    • Hardware
    • Windows
      • Server
  • Pages
    • Networking Pages
    • Linux Pages
      • Useful Linux Tools
      • nftables Configuration Templates
    • Security Pages
      • Hardening Guides
      • Privilege Management
      • Useful Tools
  • Wiki
  • GitHub
  • Password Dump
  • Contact
Posted May 22, 2018April 17, 2021Leave a commentPosted in Powershell, WindowsPowershell, Windows

Grep files with Powershell

Powershell can be used to search for content (with regex support) for files in a path by using Select-String: The output of the command looks like this for any results:

Read more
Posted May 18, 2018April 17, 2021Leave a commentPosted in Linux, ServerLinux, Server

Common PostgreSQL Commands

These are some common PostgreSQL commands for things that I need to remember. Opening session This assumes linux authentication (default for Debian Linux). Run the psql command as the postgres user: Open a database with \c DBNAME: Showing Table Info Use \dt to show table information (same as show tables; […]

Read more
Posted May 16, 2018April 17, 20212 CommentsPosted in SRX/vSRXSRX/vSRX

Juniper SRX DHCP Server for Windows Deployment Services

In my network, a Juniper SRX cluster handles all DHCP leases (via an IP helper configured on the switches with DHCP snooping). These are the steps I used to get the DHCP server for SRX devices to work for Windows Deployment Services. Main DHCP Configuration The following configuration is set […]

Read more
Posted May 16, 2018April 17, 2021Leave a commentPosted in Powershell, Server, WindowsPowershell, Server, Windows

Get Active Directory Computer with Powershell

The PowerShell cmdlet Get-ADComputer can be used to retrieve the details for a computer account. You can use a filter if required. The usage of this cmdlet is like this: If no filter property is provided you will be prompted for the filter when running this cmdlet. Examples Some examples […]

Read more
Posted May 11, 2018April 17, 2021Leave a commentPosted in Powershell, WindowsPowershell, Windows

Testing user credentials with Powershell

To test a users credentials you can start a process using Start-Process with the -Credential flag. As an example, to start cmd.exe and prompt for the username and password:

Read more
Posted May 9, 2018April 17, 2021Leave a commentPosted in MX/vMXMX/vMX

Juniper vMX – IPv6 Support for Host Bridge Interface

After I have deployed the vMX on a CentOS 7.4 host that has an IPv6 address for management, I noticed that IPv6 stopped working when the vMX was started. In my case, the IPv6 address was originally on the interface bond0. When the vMX starts a bridge interface is created […]

Read more
Posted April 24, 2018April 17, 20211 CommentPosted in UbiquitiUbiquiti

Ubiquiti Unifi Controller MongoDB Issues

After upgrading Unifi on a Debian server running a Ubiquiti Unifi controller, I ran into an issue where the web interface would not load. After poking through the logs I found that the issue appeared to be with MongoDB. In the server log file located at /var/log/unifi/server.log for my install […]

Read more
Posted April 1, 2018April 17, 2021Leave a commentPosted in JuniperJuniper

Juniper SRX Custom IDP Rule – WordPress XML RPC

Quite often people scan for WordPress installs by checking to see if a HTTP request can be made to /xmlrpc.php. Since I do not run WordPress at all it is low hanging fruit to block the source IP that makes a HTTP request for that to my web servers. The […]

Read more
Posted April 1, 2018April 12, 2021Leave a commentPosted in Linux, ServerLinux, Server

SNMPD Configuration Template

Part of a standard server setup for me includes installing SNMPD for remote monitoring of hosts. A simple SNMPD configuration template can be found below. You will need to change these variables: COM_NAME: This should be the community name that your SNMP poller users when connecting to the host. PREFIX: […]

Read more
Posted April 1, 2018April 17, 2021Leave a commentPosted in UbiquitiUbiquiti

Ubiquiti Unifi Controller NGINX Reverse Proxy

By default, the Ubiquiti Unifi controller runs on port 8443 for inbound HTTPS requests to the web interface. I instead wanted to change this to listen on the standard HTTPS port (443) and I wanted my own valid SSL to be used to access the web interface. The easiest way […]

Read more

Posts pagination

< 1 … 4 5 6 … 9 >

Navigation

  • Home
  • Categories
  • Pages
  • Wiki
  • GitHub
  • Password Dump
  • Server Status
  • Contact

Recent Posts

  • LibreNMS Docker with Authentik SSO
  • Cracking IPMI Passwords
  • Cloudflare SSL with Traefik and Let’s Encrypt
  • Linux Backup – duplicity + Dropbox
  • Juniper vRR on Proxmox

Archives

  • January 2024
  • April 2023
  • June 2022
  • March 2022
  • January 2022
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • January 2019
  • December 2018
  • October 2018
  • September 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • October 2013
  • August 2013

Categories

  • Hardware
  • Hosting/Domains
  • Linux
    • Desktop
    • Server
    • Virtual
  • Networking
    • Dell
    • Juniper
      • EX/QFX
      • MX/vMX
      • SRX/vSRX
    • Ubiquiti
  • Scripting
    • PHP
    • Powershell
    • Puppet/Ruby
    • Python
  • Security
  • Uncategorized
  • Windows
    • Server