Refactored syntax highlighting shortcodes into markdown
This commit is contained in:
parent
9e6bb1a3e5
commit
ea435049b3
71 changed files with 297 additions and 297 deletions
|
@ -12,12 +12,12 @@ This article explains a simple method to install OpenBSD when all you have is a
|
|||
## How to
|
||||
|
||||
First login as root on the linux you want to reinstall as Openbsd then fetch the installer :
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
curl https://cdn.openbsd.org/pub/OpenBSD/6.8/amd64/bsd.rd -o /bsd.rd
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
Then edit the loader configuration, in this example grub2 :
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
echo '
|
||||
menuentry "OpenBSD" {
|
||||
set root=(hd0,msdos1)
|
||||
|
@ -25,6 +25,6 @@ menuentry "OpenBSD" {
|
|||
}' >> /etc/grub.d/40_custom
|
||||
echo 'GRUB_TIMEOUT=60' >> /etc/default/grub
|
||||
grub2-mkconfig > /boot/grub2/grub.cfg
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
If you reboot now and connect your remote console you should be able to boot the OpenBSD installer.
|
||||
|
|
|
@ -10,7 +10,7 @@ tags:
|
|||
|
||||
The open ports list is refined depending on the usage obviously, and not all servers listen for wireguard... It is just a template :
|
||||
|
||||
{{< highlight conf >}}
|
||||
```cfg
|
||||
vpns="{ wg0 }"
|
||||
|
||||
table <myself> const { self }
|
||||
|
@ -39,4 +39,4 @@ pass in on $vpns from <private> to <myself>
|
|||
block return in on ! lo0 proto tcp to port 6000:6010
|
||||
# Port build user does not need network
|
||||
block return out log proto {tcp udp} user _pbuild
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
|
|
@ -9,7 +9,7 @@ tags:
|
|||
|
||||
Here is my template for a simple smtp relay. The host names in the outbound action are to be customized obviously, and in my setups `yen` the relay destination is only reachable via wireguard. If not in such setup, smtps with authentication is to be configured :
|
||||
|
||||
{{< highlight conf >}}
|
||||
```cfg
|
||||
table aliases file:/etc/mail/aliases
|
||||
|
||||
listen on socket
|
||||
|
@ -20,13 +20,13 @@ action "outbound" relay host "smtp://yen" mail-from "root+phoenix@adyxax.org"
|
|||
|
||||
match from local for local action "local_mail"
|
||||
match from local for any action "outbound"
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
## Primary mx
|
||||
|
||||
Here is my primary mx configuration as a sample :
|
||||
|
||||
{{< highlight conf >}}
|
||||
```cfg
|
||||
pki adyxax.org cert "/etc/ssl/yen.adyxax.org.crt"
|
||||
pki adyxax.org key "/etc/ssl/private/yen.adyxax.org.key"
|
||||
|
||||
|
@ -59,7 +59,7 @@ match from local for local action "local_mail"
|
|||
|
||||
match from any auth for any action "outbound"
|
||||
match from mail-from "root+phoenix@adyxax.org" for any action "outbound" # if you need to relay emails from another machine to the internet like I do
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
## Secondary mx
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue