Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Fluchtkapsel
@fluchtkapsel@nerdculture.de  ·  activity timestamp 4 hours ago

For a few weeks I had some strange errors with my self-hosted webmail, Snappymail. After working for some time it complained that it couldn't connect to tcp://mydomain.tld:143. My email clients worked, though. The situation got worse a few days ago when I updated the server and rebooted it.

My webmail is hosted in a systemd-nspawn system container. I use such containers for a lot of different services.

For debugging purposes I tried some telnet and openssl s_client stuff today but I've been on the wrong track with that. ping'ing from the webmail container already failed. There was something more fundamental amiss.

#systemd #networkd #nspawn #nft #selfhosted

  • Copy link
  • Flag this post
  • Block
Fluchtkapsel
@fluchtkapsel@nerdculture.de replied  ·  activity timestamp 4 hours ago

I checked the firewall. Just today I did some container tech / firewall exploration at work so I was already a little bit warmed up. I immediately saw that my container network's subnet was missing from the nft set masq_saddr! Yeah, of course, I rebooted the server, and IIRC I added it manually so many, many months ago. 🤦

I added it manually because I wanted to determine the network myself and not rely on some randomly chosen subnet. For this, I added the address in a systemd.network drop-in file. That worked great but I didn't know how to get rid of the randomly chosen address. This address was still in the masq_saddr set 😀.

Meanwhile I learned that many options that can be used multiple times can be cleared by setting them to an empty value before setting the wanted value. I did this and got rid of the pre-selected address!

  • Copy link
  • Flag this comment
  • Block
Log in

Encryptr.net Social

This is a forward thinking server running the Bonfire social media platform.

LGBTQA+ and BPOC friendly.

Encryptr.net Social: About · Code of conduct · Privacy ·
Encryptr.net social · 1.0.0-rc.3.6 no JS en
Automatic federation enabled
  • Explore
  • About
  • Code of Conduct
Home
Login