public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
* nncp-caller not respecting addr limitation
@ 2023-09-09  3:46 John Goerzen
  2023-09-23 12:14 ` Sergey Matveev
  0 siblings, 1 reply; 2+ messages in thread
From: John Goerzen @ 2023-09-09  3:46 UTC (permalink / raw)
  To: nncp-devel

Hi,

In my nncp.hjson for a neighbor, I have:

      calls: [
        {
          cron: "*/15 * * * *"
          #onlinedeadline: 43200
          #maxonlinetime: 43200
          addr: lan
        },
      ]

The idea being that when I am not on my home lan, I don't want caller to
be invoking automatically.  However, the addr limitation isn't being
respected; when the lan addr isn't available, it's using another addr
specified for the peer.

Weirdly, in the log file, I also see connect timed out errors for the
lan addr.  So I guess it's trying them both maybe?

Thanks!

- John

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: nncp-caller not respecting addr limitation
  2023-09-09  3:46 nncp-caller not respecting addr limitation John Goerzen
@ 2023-09-23 12:14 ` Sergey Matveev
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Matveev @ 2023-09-23 12:14 UTC (permalink / raw)
  To: nncp-devel

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

Greetings!

*** John Goerzen [2023-09-08 22:46]:
>The idea being that when I am not on my home lan, I don't want caller to
>be invoking automatically.  However, the addr limitation isn't being
>respected; when the lan addr isn't available, it's using another addr
>specified for the peer.

I have got similar rule in my configuration too: when I am outside home
LAN, I have got rate-limited priority-only packets passing. Just now I
checked with tcpdump, multiple "addrs" filled and only "lan" cron entry
work: it uses only specified lan, no other addresses are checked. So can
not reproduce, it respects that option. Are you sure that there is no
other cron entry that also tries to connect in parallel?

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-23 12:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-09  3:46 nncp-caller not respecting addr limitation John Goerzen
2023-09-23 12:14 ` Sergey Matveev