Skip to content

Instantly share code, notes, and snippets.

@amutu
amutu / harden
Created November 13, 2023 06:07 — forked from jahil/harden
FreeBSD System Hardening Script
#!/bin/sh
##################################################################
##################################################################
#
# The FreeBSD System Hardening Script
# David Childers - 15 February, 2010
#
# This software is released under the Attribution-ShareAlike version 3.0 Licence.
# www.creativecommons.org/licenses/by-sa/3.0/
#
@amutu
amutu / SetFixedIPOmniOS
Created July 28, 2023 01:36 — forked from gialnet/SetFixedIPOmniOS
OmniOS set the fixed IP network
# dladm show-phys
ipadm create-if e1000g0
ipadm create-addr -T static -a 10.56.33.51/24 e1000g0/v4static
route -p add default 10.56.33.1
echo 'nameserver 10.56.33.1' >> /etc/resolv.conf