Re: Default rdomain for CLI commands

2023-10-29 Thread Ingo Schwarze
Hi Claudio, if you received no feedback, i think you should just go ahead and commit your manual page diff, it seems like an improvement based on what is discussed in this thread (i did not test, nor inspect the code). There may be more potential defects in the manual page login.conf(5). For exam

Re: Default rdomain for CLI commands

2023-10-29 Thread Andy Lemin
A lot of interesting responses here! And the correct answer goes to Claudio! ;) Claudio correctly noted that if I am logging into the firewall via an SSH daemon running in a non-zero rdomain, then all commands I run in that SSH VTY will also be run under that rdomain :) And I will do some more

Re: Default rdomain for CLI commands

2023-10-24 Thread Pierre Emeriaud
Le mar. 24 oct. 2023 à 03:24, Andy Lemin a écrit : > How do I set/override the default rdomain for system level CLI commands? > You can do that at ssh level. From sshd_config(5): RDomain Specifies an explicit routing domain that is applied after authentication has

Re: Default rdomain for CLI commands

2023-10-24 Thread Claudio Jeker
On Tue, Oct 24, 2023 at 08:39:33AM -, Stuart Henderson wrote: > On 2023-10-24, Andy Lemin wrote: > > Hi all, > > > > Just a quick question. > > > > I have multiple rdomains. My outside rdomain (rdomain 0) has a single > > default route to my ISP. And my internal rdomain 9 has multiple default

Re: Default rdomain for CLI commands

2023-10-24 Thread Claudio Jeker
On Tue, Oct 24, 2023 at 06:56:33PM +1100, Andy Lemin wrote: > Hi Lyndon, > That is a good trick, I will try that. > > But it is more of an unexpected nuisance as I’m expecting the default to > be rdomain 0. No rdomains are inherited. Once a process runs in rdomain X all childs will also be in rdo

Re: Default rdomain for CLI commands

2023-10-24 Thread Stuart Henderson
On 2023-10-24, Andy Lemin wrote: > Hi all, > > Just a quick question. > > I have multiple rdomains. My outside rdomain (rdomain 0) has a single default > route to my ISP. And my internal rdomain 9 has multiple default routes > pointing to various pairX interfaces for some funky routing stuff. >

Re: Default rdomain for CLI commands

2023-10-24 Thread Andy Lemin
Hi Lyndon, That is a good trick, I will try that. But it is more of an unexpected nuisance as I’m expecting the default to be rdomain 0. It seems to switch to use the rdomain with the most default routes which breaks things unexpectedly - for example many crontab commands break after adding ro

Re: Default rdomain for CLI commands

2023-10-23 Thread Philipp Buehler
Am 24.10.2023 03:08 schrieb Andy Lemin: So I have to run; ‘route -T0 exec syspatch’ for example. but 0 is the "default"!? How do I set/override the default rdomain for system level CLI commands? route -T9 exec /bin/ksh everything in that shell will be in rdomain 9 HTH, PS: or tmux .. --