Skip to content

Instantly share code, notes, and snippets.

View KenwoodFox's full-sized avatar
💽
wstool update -t src

KenwoodFox KenwoodFox

💽
wstool update -t src
View GitHub Profile
# Device tracker with nmap
device_tracker:
- platform: nmap_tracker
hosts:
- 10.85.5.0/24
- 10.85.3.0/24
- 10.85.1.0/24
new_device_defaults:
track_new_devices: true
scan_options: "-F --host-timeout 5s -sS"
20:44:12.514055 IP 10.85.5.2.64539 > 10.85.1.104.80: tcp 0
20:44:12.516238 IP 10.85.5.2.64539 > 10.85.3.105.443: tcp 0
20:44:12.516299 IP 10.85.5.2.64539 > 10.85.1.106.80: tcp 0
20:44:12.516343 IP 10.85.5.2.64539 > 10.85.3.106.80: tcp 0
20:44:12.516387 IP 10.85.5.2.64539 > 10.85.1.107.80: tcp 0
20:44:12.516418 IP 10.85.5.2.64539 > 10.85.3.107.80: tcp 0
20:44:12.516447 IP 10.85.5.2.64539 > 10.85.1.108.80: tcp 0
20:44:12.518584 IP 10.85.5.2.64539 > 10.85.3.109.443: tcp 0
20:44:12.518645 IP 10.85.5.2.64539 > 10.85.1.110.80: tcp 0
20:44:12.518691 IP 10.85.5.2.64539 > 10.85.1.111.80: tcp 0
device_tracker:
- platform: nmap_tracker
hosts:
- 10.85.3.0/24
- 10.85.1.0/24
new_device_defaults:
track_new_devices: true
scan_options: -F –host-timeout 5s -sS
[usbrules=100]
add path 'usbctl' mode 660 group uucp
add path 'usb/*' mode 660 group uucp
add path 'ttyU*' mode 660 group uucp
[devfsrules_jail_unhide_tapes=5]
add path sa0 unhide
add path pass0 unhide
add path ch0 unhide
add path pass1 unhide
~# bridge vlan show
port vlan ids
eno1 1 PVID Egress Untagged
eno2 1 PVID Egress Untagged
vmbr0 1 PVID Egress Untagged
vmbr1 1 PVID Egress Untagged
-rwxrwx---+ 1 joe Media 0 May 31 19:58 File i made that nextcloud cant see.txt
-rwxrwx---+ 1 www Media 1 May 31 19:58 File That Nextcloud made.md
]# getfacl File\ i\ made\ that\ nextcloud\ cant\ see.txt
# file: File i made that nextcloud cant see.txt
# owner: joe
# group: Media
owner@:rwxpDdaARWcCos:------I:allow
group@:rwxpDdaARWc--s:------I:allow
everyone@:--------------:------I:allow
/]# getfacl MyTestFile.md
# file: MyTestFile.md
# owner: www
# group: Media
owner@:rwxpDdaARWcCos:------I:allow
user:www:rwxpDdaARWcCos:------I:allow
everyone@:--------------:------I:allow
/]# getfacl README.md
# file: README.md
# owner: joe
# ls -l
total 53037
-rwx------+ 1 www Media 9 May 31 02:08 Another doc.md
drwx------+ 234 joe Media 281 May 22 02:40 Documents
-rwx------+ 1 www Media 73 May 31 01:59 MyTestTextDoc.md
# su joe
% ls -l
ls: Another doc.md: Permission denied
ls: MyTestTextDoc.md: Permission denied
# zpool status freenas-boot
pool: freenas-boot
state: ONLINE
status: One or more devices are configured to use a non-native block size.
Expect reduced performance.
action: Replace affected devices with devices that support the
configured block size, or migrate data to a properly configured
pool.
scan: scrub repaired 0 in 0 days 00:01:03 with 0 errors on Thu May 21 03:46:03 2020
config:
# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating iocage-plugins repository catalogue...
iocage-plugins repository is up to date.
All repositories are up to date.
Checking for upgrades (27 candidates): 100%
Processing candidates (27 candidates): 100%
Checking integrity... done (3 conflicting)
- openldap-client-2.4.50 [FreeBSD] conflicts with openldap-sasl-client-2.4.48 [installed] on /usr/local/bin/ldapadd