aboutsummaryrefslogtreecommitdiff
path: root/content/blog
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-19 23:39:19 +0100
committerJulien Dessaux2021-03-19 23:39:19 +0100
commit80c6fffa7149f4ea96f0a5e0e71121d9def70118 (patch)
tree1147c33cd5ec8a4882cf1a2cf627c4a62576ea2c /content/blog
parentRewording (diff)
downloadwww-80c6fffa7149f4ea96f0a5e0e71121d9def70118.tar.gz
www-80c6fffa7149f4ea96f0a5e0e71121d9def70118.tar.bz2
www-80c6fffa7149f4ea96f0a5e0e71121d9def70118.zip
Continued importing some old wiki content
Diffstat (limited to 'content/blog')
-rw-r--r--content/blog/miscellaneous/nmap.md17
-rw-r--r--content/blog/miscellaneous/reusing-ssh-connections.md19
-rw-r--r--content/blog/miscellaneous/tc.md22
3 files changed, 58 insertions, 0 deletions
diff --git a/content/blog/miscellaneous/nmap.md b/content/blog/miscellaneous/nmap.md
new file mode 100644
index 0000000..ee595ea
--- /dev/null
+++ b/content/blog/miscellaneous/nmap.md
@@ -0,0 +1,17 @@
+---
+title: "Some nmap common usages"
+date: 2021-03-19
+description: nmap command examples
+tags:
+ - toolbox
+---
+
+## Introduction
+
+Too often I have to go through the man page to remember the flags I need, so here is a little summary.
+
+## The commands
+
+- Initiate a detailed host scan : ''nmap -v -sV -O serveraddr''
+- Initiate a ping scan without port scan : ''nmap -sn 10.1.0.0/24''
+- The same ping scan with greppable output : ''nmap -sn -oG - 10.0.33.0/24''
diff --git a/content/blog/miscellaneous/reusing-ssh-connections.md b/content/blog/miscellaneous/reusing-ssh-connections.md
new file mode 100644
index 0000000..496f456
--- /dev/null
+++ b/content/blog/miscellaneous/reusing-ssh-connections.md
@@ -0,0 +1,19 @@
+---
+title: Reusing ssh connections
+date: 2020-02-05
+description: How to speed up opening multiple ssh to a single host
+tags:
+ - toolbox
+---
+
+## Introduction
+
+It is possible to share multiple sessions over a single connection. One of the advantages is that for the duration of the connection, all new sessions open very fast.
+
+## How to
+
+You need a directory to store the sockets for the opened sessions, I use the `~/.ssh/tmp` directory for it. Whatever you choose, make sure it exists by running `mkdir` now. Then add these two lines at the start of your `~/.ssh/config` :
+{{< highlight sh >}}
+ControlMaster auto
+ControlPath ~/.ssh/tmp/%h_%p_%r
+{{< /highlight >}}
diff --git a/content/blog/miscellaneous/tc.md b/content/blog/miscellaneous/tc.md
new file mode 100644
index 0000000..58268a6
--- /dev/null
+++ b/content/blog/miscellaneous/tc.md
@@ -0,0 +1,22 @@
+---
+title: Traffic shaping with tc
+date: 2019-09-17
+description: How to use the tc command to shape traffic on linux
+tags:
+ - linux
+---
+
+## How to
+
+{{< highlight sh >}}
+tc qdisc show dev eth0
+tc qdisc add dev eth0 root netem delay 200ms
+tc qdisc show dev eth0
+
+tc qdisc delete dev eth0 root netem delay 200ms
+tc qdisc show dev eth0
+{{< /highlight >}}
+
+## References
+
+ - https://www.badunetworks.com/traffic-shaping-with-tc/