Skip to content

Instantly share code, notes, and snippets.

View Fossil01's full-sized avatar

Fossil Fossil01

  • The Internet
View GitHub Profile
@Fossil01
Fossil01 / PVE-HP-ssacli-smart-storage-admin.md
Created November 8, 2023 23:40 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

Wireguard Client Isolation

The Wireguard VPN doesn’t isolate clients on default. If you want to enable client isolation, you can do so via the following iptables rules:

iptables -I FORWARD -i wg0 -o wg0 -j REJECT --reject-with icmp-adm-prohibited
ip6tables -I FORWARD -i wg0 -o wg0 -j REJECT --reject-with icmp6-admin-prohibited
@Fossil01
Fossil01 / SSHrsync.sh
Last active May 18, 2016 15:14 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)
rsync -aHXx --numeric-ids --delete --info=progress2 -e "ssh -T -c aes128-gcm@openssh.com -o Compression=no -x" /localpath user@dest:/path
@Fossil01
Fossil01 / ovhraid.md
Last active May 18, 2016 13:17
Create RAID array on OVH Server

Creating a RAID array on OVH Servers with Hardware RAID (MegaRAID)

Type this into your terminal:

MegaCli -CfgLDAdd -R1[252:2,252:3] -a0

Where R1 means RAID-1. So R0 means RAID-0 etc.

252:2 and 252:3 are the disk numbers as they appear in MegaCLI. 2,3 were my two SATA disks. The SSD's were already configured as RAID-1 when installing the OS. Not sure what 252 means.

@Fossil01
Fossil01 / gist:b3ae40dfcb4405601489
Created February 9, 2016 15:44
Edgerouter / VyOS / Vyatta iPXE DHCP Options
set service dhcp-server global-parameters "if exists user-class and option user-class = "iPXE" {"
set service dhcp-server global-parameters "filename "http://172.29.0.27/ipxe/boot.php";"
set service dhcp-server global-parameters " } else { "
set service dhcp-server global-parameters "filename "undionly.kpxe";"
set service dhcp-server global-parameters "}"
set service dhcp-server global-paramters "next-server 172.29.0.27;"