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.
51 lines
5.1 KiB
XML
51 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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-08T00:00: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-08T00:00:00+02:00</published><updated>2024-05-08T00:00: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"><p>When setting up a masquerading nat, it is worth considering masquerading only
|
|
packets from known networks. That is, instead of rule like <tt class="docutils literal">iifname <span class="pre">eth-inside</span>
|
|
masquerade</tt> use something like <tt class="docutils literal">iifname <span class="pre">eth-inside</span> ip saddr 198.51.100.0/24
|
|
masquerade</tt>.</p>
|
|
<p>I learned the hard way: my laptop in a masqueraded network picked …</p></summary><content type="html"><p>When setting up a masquerading nat, it is worth considering masquerading only
|
|
packets from known networks. That is, instead of rule like <tt class="docutils literal">iifname <span class="pre">eth-inside</span>
|
|
masquerade</tt> use something like <tt class="docutils literal">iifname <span class="pre">eth-inside</span> ip saddr 198.51.100.0/24
|
|
masquerade</tt>.</p>
|
|
<p>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 <em>default</em>
|
|
route, sending the packet back to the ISP.</p>
|
|
<p>The result: IDS triggered by <em>many</em> 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.)</p>
|
|
</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"><ol class="arabic simple">
|
|
<li>Extract the archive (cbz is just a zip, cbr is a rar, …)</li>
|
|
<li><dl class="first docutils">
|
|
<dt>Convert individual pictures to PDF using <tt class="docutils literal">img2pdf</tt></dt>
|
|
<dd><ul class="first last">
|
|
<li>Many other ways including <tt class="docutils literal">convert</tt> from ImageMagick tend to do weird stuff like breaking aspect ratios or adding margins</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
<li>Merge files into the single PDF, e.g. using <tt class="docutils literal">qpdf <span class="pre">--empty</span> <span class="pre">--pages …</span></tt></li></ol></summary><content type="html"><ol class="arabic simple">
|
|
<li>Extract the archive (cbz is just a zip, cbr is a rar, …)</li>
|
|
<li><dl class="first docutils">
|
|
<dt>Convert individual pictures to PDF using <tt class="docutils literal">img2pdf</tt></dt>
|
|
<dd><ul class="first last">
|
|
<li>Many other ways including <tt class="docutils literal">convert</tt> from ImageMagick tend to do weird stuff like breaking aspect ratios or adding margins</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
<li>Merge files into the single PDF, e.g. using <tt class="docutils literal">qpdf <span class="pre">--empty</span> <span class="pre">--pages</span> *.pdf <span class="pre">--</span> output.pdf</tt>.</li>
|
|
</ol>
|
|
<div class="section" id="references">
|
|
<h2>References</h2>
|
|
<ul class="simple">
|
|
<li><a class="reference external" href="https://askubuntu.com/questions/207172/how-to-convert-cbr-to-pdf">https://askubuntu.com/questions/207172/how-to-convert-cbr-to-pdf</a></li>
|
|
<li><a class="reference external" href="https://superuser.com/questions/497293/how-to-convert-calibre-cbr-to-pdf-format-in-linux">https://superuser.com/questions/497293/how-to-convert-calibre-cbr-to-pdf-format-in-linux</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="section" id="why">
|
|
<h2>Why</h2>
|
|
<p>My eBook reader (PocketBook Touch Lux) does not seem to be able to handle cbz.</p>
|
|
</div>
|
|
</content><category term="til"></category><category term="comics"></category><category term="software"></category></entry></feed> |