1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blog/output/feeds/til.atom.xml

51 lines
5.1 KiB
XML

9 months ago
<?xml version="1.0" encoding="utf-8"?>
6 months ago
<feed xmlns="http://www.w3.org/2005/Atom"><title>LEdoian's Blog - til</title><link href="https://blog.ledoian.cz/" rel="alternate"></link><link href="https://blog.ledoian.cz/feeds/til.atom.xml" rel="self"></link><id>https://blog.ledoian.cz/</id><updated>2024-05-08T13:32:00+02:00</updated><entry><title>Only NAT packets you can deliver responses for</title><link href="https://blog.ledoian.cz/masquerade-with-filter.html" rel="alternate"></link><published>2024-05-08T13:32:00+02:00</published><updated>2024-05-08T13:32:00+02:00</updated><author><name>LEdoian</name></author><id>tag:blog.ledoian.cz,2024-05-08:/masquerade-with-filter.html</id><summary type="html">&lt;p&gt;When setting up a masquerading nat, it is worth considering masquerading only
packets from known networks. That is, instead of rule like &lt;tt class="docutils literal"&gt;iifname &lt;span class="pre"&gt;eth-inside&lt;/span&gt;
masquerade&lt;/tt&gt; use something like &lt;tt class="docutils literal"&gt;iifname &lt;span class="pre"&gt;eth-inside&lt;/span&gt; ip saddr 198.51.100.0/24
masquerade&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;I learned the hard way: my laptop in a masqueraded network picked …&lt;/p&gt;</summary><content type="html">&lt;p&gt;When setting up a masquerading nat, it is worth considering masquerading only
packets from known networks. That is, instead of rule like &lt;tt class="docutils literal"&gt;iifname &lt;span class="pre"&gt;eth-inside&lt;/span&gt;
masquerade&lt;/tt&gt; use something like &lt;tt class="docutils literal"&gt;iifname &lt;span class="pre"&gt;eth-inside&lt;/span&gt; ip saddr 198.51.100.0/24
masquerade&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;I learned the hard way: my laptop in a masqueraded network picked a wrong
source address from a subnet the router had no knowledge about. The outbound
packets passed through right, but the responses came in, undergone translation,
and since the destination was unknown to the router, it used the &lt;em&gt;default&lt;/em&gt;
route, sending the packet back to the ISP.&lt;/p&gt;
&lt;p&gt;The result: IDS triggered by &lt;em&gt;many&lt;/em&gt; packets from my router with source IP
addresses from all around the Internet, all with destination to my private
address. (The ISP was not happy about that.)&lt;/p&gt;
</content><category term="til"></category><category term="linux"></category></entry><entry><title>How to convert CBZ to PDF</title><link href="https://blog.ledoian.cz/cbz-to-pdf.html" rel="alternate"></link><published>2024-02-17T16:55:00+01:00</published><updated>2024-02-17T16:55:00+01:00</updated><author><name>LEdoian</name></author><id>tag:blog.ledoian.cz,2024-02-17:/cbz-to-pdf.html</id><summary type="html">&lt;ol class="arabic simple"&gt;
9 months ago
&lt;li&gt;Extract the archive (cbz is just a zip, cbr is a rar, …)&lt;/li&gt;
&lt;li&gt;&lt;dl class="first docutils"&gt;
&lt;dt&gt;Convert individual pictures to PDF using &lt;tt class="docutils literal"&gt;img2pdf&lt;/tt&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;ul class="first last"&gt;
&lt;li&gt;Many other ways including &lt;tt class="docutils literal"&gt;convert&lt;/tt&gt; from ImageMagick tend to do weird stuff like breaking aspect ratios or adding margins&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;/li&gt;
&lt;li&gt;Merge files into the single PDF, e.g. using &lt;tt class="docutils literal"&gt;qpdf &lt;span class="pre"&gt;--empty&lt;/span&gt; &lt;span class="pre"&gt;--pages …&lt;/span&gt;&lt;/tt&gt;&lt;/li&gt;&lt;/ol&gt;</summary><content type="html">&lt;ol class="arabic simple"&gt;
&lt;li&gt;Extract the archive (cbz is just a zip, cbr is a rar, …)&lt;/li&gt;
&lt;li&gt;&lt;dl class="first docutils"&gt;
&lt;dt&gt;Convert individual pictures to PDF using &lt;tt class="docutils literal"&gt;img2pdf&lt;/tt&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;ul class="first last"&gt;
&lt;li&gt;Many other ways including &lt;tt class="docutils literal"&gt;convert&lt;/tt&gt; from ImageMagick tend to do weird stuff like breaking aspect ratios or adding margins&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;/li&gt;
&lt;li&gt;Merge files into the single PDF, e.g. using &lt;tt class="docutils literal"&gt;qpdf &lt;span class="pre"&gt;--empty&lt;/span&gt; &lt;span class="pre"&gt;--pages&lt;/span&gt; *.pdf &lt;span class="pre"&gt;--&lt;/span&gt; output.pdf&lt;/tt&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="section" id="references"&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference external" href="https://askubuntu.com/questions/207172/how-to-convert-cbr-to-pdf"&gt;https://askubuntu.com/questions/207172/how-to-convert-cbr-to-pdf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://superuser.com/questions/497293/how-to-convert-calibre-cbr-to-pdf-format-in-linux"&gt;https://superuser.com/questions/497293/how-to-convert-calibre-cbr-to-pdf-format-in-linux&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="why"&gt;
&lt;h2&gt;Why&lt;/h2&gt;
&lt;p&gt;My eBook reader (PocketBook Touch Lux) does not seem to be able to handle cbz.&lt;/p&gt;
&lt;/div&gt;
</content><category term="til"></category><category term="comics"></category><category term="software"></category></entry></feed>