This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# | |
# PROVIDE: alertmanager | |
# REQUIRE: DAEMON | |
# KEYWORD: shutdown | |
# | |
if [ -f /etc/rc.subr ]; then | |
$_rc_subr_loaded . /etc/rc.subr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doas pkgin install wireguard-tools | |
doas vi /etc/npf.conf | |
group default { | |
pass in all | |
pass out all | |
} | |
map re0 dynamic 100.100.100.0/24 -> inet4(wg0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List image | |
imgadm avail os=linux type=zvol | |
# membuat vm | |
vmadm create -f ubuntutest | |
# list vm | |
vmadm list | |
# vpn port |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"brand": "kvm", | |
"resolvers": [ | |
"192.168.122.1" | |
], | |
"ram": "1024", | |
"vcpus": "2", | |
"alias": "ubuntu2404", | |
"customer_metadata": { | |
"root_authorized_keys": "<local-ssh-key>" |