parent
1eb04237f0
commit
edad0d6183
File diff suppressed because one or more lines are too long
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"id": "code-block-copy",
|
||||||
|
"name": "Copy button for code blocks",
|
||||||
|
"author": "Daniel Brandenburg",
|
||||||
|
"description": "Copy button for code blocks",
|
||||||
|
"isDesktopOnly": false,
|
||||||
|
"version": "0.1.0"
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
.copy-code-button {
|
||||||
|
color: var(--background-primary);
|
||||||
|
background-color: var(--text-faint);
|
||||||
|
border-radius: 1px 1px 0px 0px;
|
||||||
|
/* right-align */
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-bottom: -2px;
|
||||||
|
padding: 3px 8px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-code-button:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: var(--text-normal);
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-code-button:focus {
|
||||||
|
/* Avoid an ugly focus outline on click in Chrome,
|
||||||
|
but darken the button for accessibility.
|
||||||
|
See https://stackoverflow.com/a/25298082/1481479 */
|
||||||
|
background-color: var(--text-normal);
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-code-button:active {
|
||||||
|
background-color: var(--text-normal);
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight pre {
|
||||||
|
/* Avoid pushing up the copy buttons. */
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-copy-button {
|
||||||
|
position: relative;
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"id": "meld-encrypt",
|
||||||
|
"name": "Meld Encrypt",
|
||||||
|
"version": "1.4.1",
|
||||||
|
"minAppVersion": "0.12.15",
|
||||||
|
"description": "Hide secrets in your notes",
|
||||||
|
"author": "meld-cp",
|
||||||
|
"authorUrl": "https://github.com/meld-cp/obsidian-encrypt",
|
||||||
|
"isDesktopOnly": false
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
Not Found
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"id": "note-refactor-obsidian",
|
||||||
|
"name": "Note Refactor",
|
||||||
|
"version": "1.7.1",
|
||||||
|
"description": "Extract note content into new notes and split notes",
|
||||||
|
"isDesktopOnly": false,
|
||||||
|
"js": "main.js",
|
||||||
|
"css": "style.css"
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
.note-refactor-filename .setting-item-info {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.note-refactor-filename .setting-item-name {
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"id": "obsidian-qrcode-plugin",
|
||||||
|
"name": "QR Code Generator Plugin",
|
||||||
|
"version": "1.0.2",
|
||||||
|
"minAppVersion": "0.9.12",
|
||||||
|
"description": "This is a QR Code Generator plugin for Obsidian.",
|
||||||
|
"author": "Rudi Häusler",
|
||||||
|
"authorUrl": "https://github.com/rudimuc",
|
||||||
|
"isDesktopOnly": false
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
Not Found
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,134 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
Alias: ["UFW"]
|
||||||
|
Tag: ["Server", "Firewall"]
|
||||||
|
Date: 2021-10-04
|
||||||
|
DocType: "Personal"
|
||||||
|
Hierarchy: "NonRoot"
|
||||||
|
TimeStamp:
|
||||||
|
location: [51.514678599999996, -0.18378583926867909]
|
||||||
|
CollapseMetaTable: Yes
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Parent:: [[Selfhosting]], [[Server Alias]], [[Server Cloud]], [[Server Tools]]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```button
|
||||||
|
name Save
|
||||||
|
type command
|
||||||
|
action Save current file
|
||||||
|
id Save
|
||||||
|
```
|
||||||
|
^button-UFWSave
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
# Configuration of UFW
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```ad-abstract
|
||||||
|
title: Summary
|
||||||
|
collapse: open
|
||||||
|
Description of basic commands for UFW
|
||||||
|
```
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
```toc
|
||||||
|
style: number
|
||||||
|
```
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
### Installation and activation
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
UFW should be installed by default in Ubuntu servers. If not, see below.
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
#### Installation of UFW
|
||||||
|
|
||||||
|
`sudo apt install ufw`
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
#### Activation of UFW
|
||||||
|
|
||||||
|
`sudo ufw status`
|
||||||
|
|
||||||
|
If disabled:
|
||||||
|
|
||||||
|
`sudo ufw enable`
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
### Basic commands
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
#### UFW rules status
|
||||||
|
|
||||||
|
'sudo ufw status'
|
||||||
|
|
||||||
|
Commands can be appended:
|
||||||
|
- `verbose`: details incoming/outgoing rules
|
||||||
|
- `numbered`: display rule numbers
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
#### UFW rule management
|
||||||
|
|
||||||
|
##### Allow / Deny
|
||||||
|
|
||||||
|
`sudo ufw allow/deny`
|
||||||
|
|
||||||
|
Then:
|
||||||
|
|
||||||
|
| Type to allow | Syntax
|
||||||
|
|--------------|--------
|
||||||
|
**IP** | from (ip address/range)
|
||||||
|
**Port** | (portnumber)/(protocol)
|
||||||
|
**Service** | (service name)
|
||||||
|
**Protocol** | proto (protocol name)
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
##### Rule priority
|
||||||
|
|
||||||
|
Certain rules like IP denial need to be put on top of the rule stack as UFW reads rules in order one after another. Insert the following in the command to force insertion:
|
||||||
|
|
||||||
|
`insert 1 (or any place in the pecking order)`
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
##### Complex rule syntax
|
||||||
|
|
||||||
|
Finer rules can be defined with the following syntax.
|
||||||
|
|
||||||
|
| rule condition | syntax
|
||||||
|
|--------------|--------
|
||||||
|
**connecting IP** | from (ip or any)
|
||||||
|
**internal IP** | to (ip or any)
|
||||||
|
**protocol** | proto (protocol or any)
|
||||||
|
**port** | port (port or any)
|
||||||
|
**outgoing traffic** | out
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
 
|
||||||
|
 
|
Loading…
Reference in new issue