I have to think about the symbol/shape for “loopback (lo)”, instinctively It should be different as It Is “pass-through”.
Strictly speaking the wavy rectangle Is not standard flowchart the symbols for “begin” and “end” Is the rectangle with rounded ends, same as currently used for 9 and 15. Or I could use the parallelogram for those, which Is symbol for input/output.
For the text, what do you think of:
“to self? (loopback)”
and
“from self? (loopback)”
I’ll see if It fits, better would be (IMHO):
“dst addr=self? (loopback)”
and
“src addr=self? (loopback)”.
but they seem too long.
Tomorrow I’ll see. @Ammo
You are right, since those are out of the flowchart they can (and should) be different, I’ll see if I can make them into “fat” arrows pointing downwards for chains and right for sections.
EDIT:Attachment removed see below for newer version
It would be nice to give some colour to:
a. the “chain=” fat arrows (to differentiate them)
b. Incoming and Outgoing packet (to highlight them)
but I am afraid to make it more confusing.
What about fat arrows white and packets green?
Same goes for the background, the current one (#f4e3d7ff) is a bit too dark, maybe, anyone has a 4 byte code that is pleasant to the eye in both “normal” and “a-b-normal” (dark) mode?
Ideas?
@jaclaz: This is coming out well. (Showing yourself in the trenches in the illustration is spot on).
What points I have left are only minor and consider them nitpicking. (In no particular order):
On the background color. I think that at least for the default png version legibility should be primary (come on, we all know that will be the one that’s going to be viewed the most - people are lazy) For me the current color works in this regard, but I’m sure someone with more experience can come up with something better. For web publishing white with 50% alpha is a common choice - it ensures legibility on all backgrounds. (I know this is not the time for this coming-out, but a looong time ago I used to do publishing quality technical illustrations, so I might have to polish off my toolbox… but whether I do it depends very much on how much free time and beer I have on my hands.)
With respect to the src-addr/dst-addr thing, especially with the “(loopback)” added, I would be inclined to just put “from self (loopback)” and “to self (loopback)” respecively. I think this is not inaccurate anymore, and with “loopback” added (in both wording and the actual path) there is no confusion anymore, even to the most casual reader.
I understand not wanting to cross path lines, but I think “loopback” might fit tidily in the middle. Of course this is a matter of aesthetics.
I would make it clear(er) in the top-left “Mikrotik” that it’s the “Mikrotik naming”. There’s no shortage of space there. (I know this is paranoia, but it occurs to me that someone might think this is actually Mikrotik documentation, when it’s documentation about Mikrotik.)
It would be nice to put some sort of date (as a version number) in the title caption of the thing. For now, I would also add something like “beta”. Having the date could make the usage of these diagrams mush nicer, should they ever be updated.
It would also be nice if someone could offer a space in the corner of some webserver for perma-hosting this. This is of course jaclaz’s diagram, but if my opinion were to count (hint: it really doesn’t), I’d insist on something that is not some arm of a cloud service / non-ad supported / not tracking its users. I might offer such a space but that would actually require installing and configuring a web server…
As a last potential step - if jaclaz really has the time - I would suggest creating a low-res (web viewing) and high-res version. Also in some situations b&w is strongly preferred. When it’s completed, I’d be inclined to use this in printed documentations and there b&w and high-res still dominate.
I sense that this is not in agreement with the majority opinion here - which is find, thats why it’s called the majority opinion. But I’d use the same style box for the loopback as for the incoming/ougoing packet. However not-labeled these things are, they all represent interfaces, and in my time doing illustrations (and also teching) I observed that the “impression” that illustrations convey sometimes sick with people for a surprisingly long time, even when what exactly it is they convey is unclear to them initially. If it were totally up to me, I’s actually separate the loopback into two, “to loopback” and “from loopback” places right next to each other, to convey that the packet actually exits netfiler, and then is reinjected. You wouldn’t guess from the amount of text I devote to this, but this is a really minor point.
Open to comments and flames. Also, a big thank you to jaclaz for volunteering their effort to put uo with all this.
EDIT: Also, wherever this ends up being hosted, it really should be accompanied by a copyright notice. I usually just say it’s fine to reproduce anywhere, but it’s jaclaz’s product, so obviously the decision rests there. There’s also the GNU Free Documentation License (GFDL) and various CC ones.
Also, would you guys think that some sort of walk-through would be useful for the more common cases? (Of course separate from the diagram itself.) I’m thinking of some common scenarios, such as: routing between internal subnets, routing to the internet (srcnat), port forwarding (dstnat), traffic to router services… Some more obscure scenarios might be included like VPN (basically Wireguard), mult-WAN with multiple tables and marking.
Very minor, but eventually, if you use GIF with Alpha channel that might allow better support for dark-mode, to avoid the hideous sand color background.
If “pure white” is OK (even with 50% alpha blend) and people using dark mode won’t get a fit by looking at it, I would prefer it, it is how traditionally (after papyrus and parchment) we are used to read things.
But then we need to find a colour for the “fat” arrows at the top that doesn’t distract too much from the “important” coloured process steps.
I thought that src addr and dst addr were vital to make it adapted to Mikrotik jargon, let’s wait what other people think, in any case I “need” a question mark as it is a question (to which you can answer Y or N) .
No, you don’t , the whole point is to not cross path lines or use (stupid) on-page connectors. People should be able to use it to play a sort of goose game on it without jumping over this or that.
Yep that is not a problem. I wonder if “Mikrotik naming” or “Mikrotik configuration naming” or something else.
Yep, also visually (with my art director hat on) I am not at all satisfied of the central (now pale yellow) box, or of the text in it. I could remove the forum address (and thus make the titles more proportionally evident and the box more adequate to two lines of text) and use the bottom left corner for the forum address, date, version, whatever in smaller characters.
Oww, come off it, it is not such a precious resoource that will become viral, the people actually interested in this (all 42 of them) can get it from this thread just fine.
Right now what I am doing is:
the actual thingy in Excel
print it in A3 with Cutepdf writer (colour, resolution max 1200 dpi, with 2400 artifacts start showing on the right) ->.pdf
import the PDF in Inkscape, add on a lower layer a rectangle the same size of the imported .pdf, fill it with a given colour-> export ->.png
Now if I set the virtual printer as B/W, in Print preview the file looks nice and the rendering as shades of gray is actually readable, but the “fat” arrows on the left are coloured (go figure).
Anyway, printing to pdf from the colour Inkscape as B/W it comes out a (readable) B/W pdf. (Attached a copy, same version as in post #25)
EDIT: file removed
The .png (coloured) is around 160 Kb and I believe any borowser will resize it automatically to the available window, so the “low-res” version should be avoidable.
And I wouldn’t probably be capable of making a hi-res version (or it won’t add anything noticeable).
The png should come out around 1600x1100 pixel at 96dpi, so unless one has a 1 megazillion x 4 megazillion pixels graphic card and display it should be suitable 1:1 full screen on many monitors.
I don’t care about the majority, it is not democracy, but you’ll have to defend your opinion in front of the Court (myself) . https://www.quotes.net/mquote/65590
If an interface has not a RJ45, a SFP socket or an antenna, it is a “different” interface.
In any case NO interface (exception made for the “different” loopback) has been cited (nor harmed) in the making of the diagram, we have Incoming and Outgoing Packets (and that a packet has a different symbol from an interface is a self evident truth).
Now (since it is anyway “different”) the idea of dividing the loopback interface in two seems to me a nice one .
Also I would like somehow add that this interface is exposed as (lo) in newish RoS.
I tend to use my Careware license for this kind of stuff: http://jaclaz.altervista.org/Projects/careware.html
(please appreciate the amount of time I spent in creating the above page and my outstanding talent as web designer )
I think that png is better in resizing/adapting to various resolutions, and it supports Alpha channel just fine.
The question is what colour (and later which level of Alpha - 50% was suggested but it may be too little or too much, I don’t know) will be a suitable compromise for users of both normal and dark modes.
I saw PDF here… Not the expert here and don’t know tool, but I meant the setting the transparency color, and leave alpha along. 50% look bad in both light and dark mode . Still really minor, just commentary from peanut gallery.
In this I recant, for it was me that led you astray. No, seriously, this was a simplification gone too far. As I have explained, for the src addr part actually the input interface is inspected, for the dst address part, the appropriate (“local”) flag for the route selected is consulted. I think “from self (localhost)” is a statement that can have a question mark appended and be rightly considered to have a Y/N answer. (Or in its statement form has a property of “is this true? (in this case)”)
That’s exactly what I mean by preferences - we all have our own. With regard to your work you have no one to report to
Yep. Thanks!
Okay. Let’s hope no one’s interested . This is going to be a rant - so please excuse me. I hope that at least some usage of the internet will return to what it once was - people sharing sometimes peculiar interests sharing stuff without an eye to monetization. I hope some of it is preserved or some it will return.
F*ing awesome.
In natural language usage, yes, interface has a meaning of something I can plug something into. In terms of the netfilter framework, interface has a specific meaning of what’s in the kernel called a netdev. Loopback is such. In that it’s somewhat simplistic in that it returns whatever it receives makes it no less so.
For #5 I agree with @lurker888 that “from self (loopback)” is more accurate than "src addr=self", because the source address field of the packet can be spoofed by a sender from outside, while the check here applies to the real origin of the packet.
I did some tests, by adding a log rule to mangle prerouting (#4 right above) and doing:
/tool/ping from router to router’s addresses, with or without specifying different source IP addresses and “out” interfaces
/tool/traceroute with UDP from router to router’s addresses, with or without specifying different source IP addresses and “out” interfaces
:resolve specifying server=router IP addresses
/tool/fetch to URL with router’s IP address
/tool/netwatch tcp-conn to router
I all case the incoming packets all have in-interface=lo, even when different outgoing interfaces were chosen for ping/traceroute. So maybe “in-interface=lo?” can be an alternative here? Or if “lo” looks confusing (like uppercase I) then maybe “in intf loopback?” (two lines). This would be compatible with “MikroTik jargon”.
For #12 and #24, because the check is really performed on the destination address as @lurker888 has confirmed above, the current wording “dst addr=self?” is totally fine IMHO, and doesn’t need to be change to “to self”.
To be honest, I got a bit embarrassed at my error with regard to the “src addr” thing, so before writing my reply, I injected packets into
a Mikrotik (running 7.191.)
an Ubuntu machine modified to run iptables
an Ubuntu, as stock, running in iptables-nftables compatibility (as has been the default for many years now)
in all instances the route the packet took was according to the ingress interface.
Then I went and looked at the source code: lo and behold, you can guess what I found.
So it’s clear that “from self” is the correct one.
The “dst addr=own addr” thing is a bit simplified but largely accurate. (I still think “to self” would be better, but the “dst addr” one is at least accurate enough.)
OK.
Let’s see how it goes with this version (directly as svg).
Background set to 2.5% Grey (in practice a non-brilliant white) with Opacity 50% 70% (in a .zip file as the board does not allow .svg extension).
Added inline the png version.
The fun thing is that I didn’t use (AFAIK) a gradient, anyway it is far more dark everywhere than I would have expected.
Maybe the 50% opacity is too transparent for your darkmode
I’ll check the gradient (if any) and try with 70% opacity
EDIT: files in post #37 changed. See if it is now better in dark mode.
P.S. It must be something connected to the way dark mode works, the 70% (Gray 2.5%=white) Opacity should be more light than 50%, (but it is not in a browser I have).
But if I open the image in a new tab, the colour becomes lighter (still darker than the original, but a gray light enough to be readable)
There will always be something cosmetic left to do, but that’s what I would call basically (almost) done. Thanks for the not insignificant effort!
For me at least the latest 100% opaque is shown as 100% transparent Is there this much difference between browsers? Can the page’s css interact with it somehow?