Login
You're viewing the techdon.dev public feed.

Replies

  • Sam OwenHeterokromia@aus.social
    Nov 20, 2026, 11:04 AM

    @dcz foomuuri responds to/with d-bus. Maybe that's a way to do it?

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 20, 2026, 11:19 AM

    @wmd A RST would be appropriate, since firewall making that decision is outside the normal lifetime.

    💬 1🔄 0⭐ 0
  • Nov 20, 2026, 3:25 PM

    @dcz nft can do rst I think. But don't know from the top of my head the command. Often killing the process that holds it also results in rst I think.

    💬 0🔄 0⭐ 0
  • Nov 20, 2026, 11:18 AM

    @dcz
    I assume you mean a masquerading router, in that case the connection needs to be dropped form the conntrack table.
    You need the conntrack tools for that, e.g.:
    conntrack -D --orig-src <ip>

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 20, 2026, 11:29 AM

    @dcz
    usually in tcp you have rules for traffic patterns upon connection setup (SYN) and don't do extensive stuff when in ESTABLISHED-state. If the syn-patterns do what you want the unwanted connection never reaches established...

    💬 0🔄 0⭐ 0
  • Ryan Huffnetworknerd1337@mastodon.social
    Nov 20, 2026, 3:44 PM

    @dcz Netfilter only acts when a packet shows up, so a truly idle connection is out of reach until somebody sends something. What works is putting the peer in an nft set matched with ct state established and rejecting with tcp reset. Whoever sends next gets a RST back. If the socket lives on that box, ss -K closes it directly (needs CONFIG_INET_DIAG_DESTROY). conntrack -D by itself usually won't do it, since tcp_loose defaults to 1 and the flow just gets picked right back up

    💬 0🔄 0⭐ 0