Skip to content


Чому пластинчасті теплообмінники є лідерами в енергоефективності

Сучасні промислові та комерційні системи опалення, охолодження й утилізації тепла вимагають максимального рівня енергоефективності. Одним із найкращих рішень у цій сфері є пластинчасті теплообмінники, які відзначаються високою продуктивністю, низькими експлуатаційними витратами та можливістю ефективного використання теплової енергії. У цій статті розглянемо ключові фактори, що роблять пластинчасті теплообмінники еталоном енергоефективності (читати джерело).

Як пластинчасті теплообмінники зменшують споживання енергії?

1. Оптимальна теплопередача завдяки унікальній конструкції
Теплообмінники цього типу складаються з ряду тонких металевих пластин із гофрованою поверхнею, яка створює турбулентний потік теплоносія. Це збільшує площу контакту між рідинами, підвищує коефіцієнт теплопередачі та зменшує втрати енергії.

2. Зниження теплових втрат
Завдяки щільній компоновці пластин пластинчасті теплообмінники мінімізують теплові втрати, що є ключовим фактором у промислових і комерційних системах. Ефективність досягає 90-95%, що значно перевищує показники трубчастих аналогів.

3. Економія електроенергії на насосному обладнанні
Через менший гідравлічний опір пластинчасті теплообмінники потребують менше енергії для перекачування теплоносіїв, що знижує навантаження на насоси та зменшує споживання електроенергії.

4. Компактність і зменшення витрат на монтаж
Менші габарити та вага пластинчастих теплообмінників дозволяють значно скоротити витрати на встановлення та обслуговування. Це робить їх оптимальним рішенням для підприємств, що прагнуть скоротити споживання ресурсів і оптимізувати простір.

Які технології підвищують енергоефективність пластинчастих теплообмінників?

1. Використання високоміцних матеріалів
Завдяки застосуванню нержавіючої сталі, титану та інших стійких матеріалів зменшується ризик корозії, що продовжує термін служби теплообмінника та знижує витрати на технічне обслуговування.

2. Автоматизовані системи контролю
Сучасні пластинчасті теплообмінники можуть бути оснащені системами моніторингу температури, тиску та витрати теплоносія. Це дозволяє зменшити енергоспоживання за рахунок точного регулювання робочих параметрів.

3. Впровадження рекуперації тепла
Завдяки здатності пластинчастих теплообмінників ефективно передавати тепло між середовищами, їх широко використовують у системах утилізації тепла, що дозволяє повторно використовувати енергію, яка зазвичай втрачається.

Де пластинчасті теплообмінники приносять найбільше енергетичної вигоди?

  • Системи опалення та ГВП – забезпечують максимальне використання теплової енергії для підігріву води та зменшують витрати на паливо.
  • Промислові процеси – скорочують втрати енергії в хімічному, харчовому та нафтохімічному виробництвах.
  • Системи охолодження та кондиціонування – знижують споживання електроенергії завдяки ефективному розподілу температурних навантажень.
  • Альтернативна енергетика – використовуються у теплових насосах та сонячних колекторах для збільшення ККД установок.

Чому варто обрати пластинчастий теплообмінник для енергозбереження?

  • Мінімальні енерговитрати на циркуляцію теплоносія.
  • Висока ефективність теплопередачі з максимальною економією ресурсів.
  • Можливість модернізації та розширення без значних витрат.
  • Довговічність і зменшення витрат на обслуговування.

Пластинчасті теплообмінники є оптимальним вибором для тих, хто прагне мінімізувати споживання енергії та підвищити продуктивність технологічних процесів. Завдяки високій ефективності, довговічності та адаптивності вони є незамінним рішенням для промисловості, комерційних об'єктів і систем альтернативної енергетики.

Posted in Misc.


How to prevent libvirt from adding iptables rules for guest NAT networks

Libvirt by default adds some firewall rules for NAT to work, but it can be a nightmare if you have our own set of NAT/forward rules - conflicts between them are very likely. To avoid this edit /etc/libvirt/qemu/networks/default.xml and set forward mode to "open" (in my case the value here was "nat").

So, the file will look like this:

<network>
  <name>default</name>
  <uuid>4dca776c-0ca2-4826-a88a-40fcf596e888</uuid>
  <forward mode='open'/>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:01:22:54'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254'/>
      <host mac='52:54:00:22:33:44' name='guest01' ip='192.168.122.3'/>
    </dhcp>
  </ip>
</network>

References:

  • https://bugzilla.redhat.com/show_bug.cgi?id=846810
  • https://serverfault.com/questions/456708/how-do-i-prevent-libvirt-from-adding-iptables-rules-for-guest-nat-networks

Posted in *nix.

Tagged with , .


NFS share access problem from a KVM guest

Network schema describing the case

Someday I had to increase storage for an app living inside KVM guest. Considering that this KVM server run almost out of free disk space, probably, the easiest way to achieve the goal was to use NFS to utilize the other server's storage. So, after 'yum install nfs-utils' I tried to mount a share and got the surprise:

# mount.nfs 10.3.1.1:/mnt/nfs-share /mnt/nfs-storage/
Permission denied

:/ WTF?

At the same time /var/log/messages on the NFS-server shows:

Feb  5 08:44:07 nfssrv rpc.mountd[47501]: refused mount request from 10.3.1.2 for /mnt/nfs-share (/mnt/nfs-share): illegal port 11447
Feb  5 08:44:09 nfssrv rpc.mountd[47501]: refused mount request from 10.3.1.2 for /mnt/nfs-share (/mnt/nfs-share): illegal port 30047
Feb  5 08:45:22 nfssrv rpc.mountd[47501]: refused mount request from 10.3.1.2 for /mnt/nfs-share (/mnt/nfs-share): illegal port 7666
Feb  5 08:47:00 nfssrv rpc.mountd[47501]: refused mount request from 10.3.1.2 for /mnt/nfs-share (/mnt/nfs-share): illegal port 39260
Feb  5 08:57:21 nfssrv rpc.mountd[47501]: refused mount request from 10.3.1.2 for /mnt/nfs-share (/mnt/nfs-share): illegal port 57330

Fortunately, other people also had this problem and shared their knowledge here: https://serverfault.com/questions/1123448/nfs-mouting-failing-due-to-illegal-port

As far as I understood, some NAT magic (performed by libvirt) leads to source ports for NFS-connections being greater than 1023 (and NFS-daemon doesn't like this). To fix this we need to add 'insecure' option to /etc/exports file on the NFS-server (security implications we will skip for now, we just need things to work :). So it will look like:

$ cat /etc/exports
/mnt/iso        10.3.0.0/24(ro,sync,no_root_squash,no_all_squash)
/mnt/nfs-share  10.3.1.2(rw,sync,no_root_squash,no_all_squash,insecure)

Then I run 'exportfs -r' to apply the changes and after that the mount command succeeded without issues. Happy end.

Posted in *nix.

Tagged with , .


How to setup and use OpenVPN

The next recipe works on CentOS 7 as for beginning of 2025 year.

  1. yum install openvpn easy-rsa
  2. cd /etc/openvpn
  3. /usr/share/easy-rsa/3.0.8/easyrsa init-pki
  4. /usr/share/easy-rsa/3.0.8/easyrsa build-ca nopass
  5. /usr/share/easy-rsa/3.0.8/easyrsa --days=365 build-server-full server nopass
  6. /usr/share/easy-rsa/3.0.8/easyrsa --days=365 build-client-full client1 nopass
  7. /usr/share/easy-rsa/3.0.8/easyrsa --days=365 build-client-full client2 nopass
  8. openssl dhparam -out /etc/openvpn/server/dh.pem 2048
  9. Create config-file /etc/openvpn/server.conf:
    port 1194
    proto udp
    dev tun
    ca /etc/openvpn/server/pki/ca.crt
    cert /etc/openvpn/server/pki/issued/server.crt
    key /etc/openvpn/server/pki/private/server.key
    dh /etc/openvpn/server/dh.pem
    server 10.8.0.0 255.255.255.0
    ifconfig-pool-persist ipp.txt
    push "redirect-gateway def1"
    push "dhcp-option DNS 8.8.8.8"
    push "dhcp-option DNS 8.8.4.4"
    keepalive 10 120
    cipher AES-256-CBC
    user openvpn
    group openvpn
    persist-key
    persist-tun
    status /var/log/openvpn-server-status.log
    log-append /var/log/openvpn.log
    verb 3
  10. Create .ovpn file for client:
    client
    dev tun
    proto udp
    remote vpn-server.host.name 1194 udp
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    cipher AES-256-CBC
    verb 3
    <cert>
    -----BEGIN CERTIFICATE-----
    // client base64-encoded cert goes here
    -----END CERTIFICATE-----
    </cert>
    <key>
    -----BEGIN PRIVATE KEY-----
    // client base64-encoded private key goes here
    -----END PRIVATE KEY-----
    </key>
    <ca>
    -----BEGIN CERTIFICATE-----
    // ca base64-encoded cert goes here
    -----END CERTIFICATE-----
    </ca>

    Or, alternatively, if you don't want to embed certs and key to the .ovpn config file itself, you can reference them with these 3 lines:

    ca ca.crt
    cert client1.crt
    key client1.key
  11. Open UDP port 1194 in the server's firewall.
  12. Setup NAT and forwarding if needed.
  13. To automatically start server using systemd place server config file to the directory /etc/openvpn/server and name it accordingly, for example udp1194.conf. Then the command should be:
    systemctl enable openvpn-server@udp9997 --now

What is the difference between tun and tap devices which openvpn provides?

They're two different kernel interface types from the same tun module, and the distinction is what layer of the OSI stack the tunnel carries.

tun — layer 3, point-to-point. Carries bare IP packets. No Ethernet header, no MAC addresses, no ARP, no broadcast domain. The interface has no L2 identity at all — ip link show tun0 shows link/none.

tap — layer 2, virtual Ethernet. Carries full Ethernet frames. The interface has a MAC address, participates in ARP, and can be enslaved to a bridge alongside a physical NIC, putting remote clients on the same broadcast domain as the LAN.

  tun tap
Encapsulates IP packets Ethernet frames
Per-packet overhead none extra +14 bytes (Ethernet header)
Broadcast/multicast not carried carried, floods to all clients
Non-IP protocols no yes (IPX, AppleTalk, STP, raw ARP)
DHCP from LAN server no (OpenVPN assigns via push) yes, client can DHCP off the real LAN
Bridging to physical NIC no yes
Android / iOS clients supported not supported
OpenVPN DCO supported not supported
Scales to many clients yes poorly

Why tun is the default answer

The tap cost is mostly invisible until you have clients: every ARP request, every DHCP discover, every Windows NetBIOS/mDNS/SSDP broadcast on the LAN gets replicated and pushed down every single tunnel. On a link with 20 remote clients over consumer uplinks that's a constant background load doing nothing useful, and it's why bridged setups feel fine at 2 clients and terrible at 30.
Additional practical constraints:

  • Mobile clients can't do tap at all. The Android and iOS VPN APIs only expose an L3 interface. If any client is a phone, the decision is already made.
  • DCO rules out tap. If you're using ovpn-dco / ovpn kernel offload on Rocky or Fedora for throughput, it's L3-only. Configuring dev tap silently falls back to userspace tunneling (or errors, depending on version), losing the reason you enabled it.
  • tap on Windows requires the separate tap-windows6 driver; the newer dco-win/wintun path doesn't cover it.

When tap is right choice

  • Non-IP protocols on the wire, or legacy software that discovers peers only via L2 broadcast.
  • Windows browsing/discovery that must work without a WINS or mDNS repeater.
  • Wake-on-LAN over the tunnel, or anything needing raw frames.
  • Small site-to-site links (2–3 endpoints) where flattening the L2 domain saves a lot of routing config.

How to avoid default route replacement on client after VPN-connection initializing?

Fix on the server (affects all clients)

Just don't push it:

# /etc/openvpn/server/server.conf — remove or comment
#push "redirect-gateway def1 bypass-dhcp"

and push only the routes to subnets that should go through the tunnel, /etc/openvpn/server/server.conf file should contain:

push "route 10.10.3.0 255.255.255.0"
push "route 192.168.50.0 255.255.255.0"

Or it can be done per-client instead of globally, via client-config-dir:

# server.conf:
client-config-dir /etc/openvpn/server/ccd
# /etc/openvpn/server/ccd/<common-name>  — must match the client's cert CN exactly
push "route 10.10.3.0 255.255.255.0"

Note ccd files can't un-push a global push "redirect-gateway ..." — a global push always applies. If some clients need full tunnel and others don't, move redirect-gateway out of the global section entirely and push it only from the ccd files for specific clients that want it.

Fix on the client (when you can't change the server, for example)

The surgical option — drop just that one directive, keep everything else including DNS and routes:

# client.ovpn
pull-filter ignore "redirect-gateway"
pull-filter ignore "dhcp-option DNS"     # If you need to drop the pushed DNS as well
pull-filter ignore "dhcp-option DOMAIN"  # If you need to drop the pushed DNS as well
pull-filter ignore "block-outside-dns"   # If you need to drop the pushed DNS as well

pull-filter uses a prefix match on the whole option string, evaluated in the order the filters appear. So:

pull-filter ignore "route"  # ALSO kills route-gateway and route-metric → breaks tunnel routing
pull-filter ignore "route " # Note trailing space: only actual "route x.x.x.x" lines

The blunt option — ignore all pushed routes and DHCP options. Note, that route-nopull kwyword also discards pushed dhcp-option (DNS, DOMAIN, block-outside-dns), so you must re-add anything you still need locally:

# client.ovpn
route-nopull
route 10.10.3.0 255.255.255.0
route 192.168.50.0 255.255.255.0
dhcp-option DNS 10.10.3.10

Third option — receive routes but install them yourself in a script:

# client.ovpn
route-noexec
up /etc/openvpn/my-routes.sh

route-noexec still populates $route_network_1, $route_gateway_1, $ifconfig_local etc. In the my-routes.sh script environment, so you can install selectively. Useful when you want the pushed list but with your own metrics or table.

Posted in Howto.

Tagged with .