Re: [PATCH] / permitgwports / permitlisten

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Hi Philipp;

Yes, the patch I submitted is one we use to accomplish a specific outcome, and it would break configuration in the wild with respect to permitopen. We provided it in case anyone else gets use out of similar needs. By the same token, the patch I submitted will break gateway ports also (ssh -R), since if they are not explicitly defined our patch will preclude all gateway ports.

To do it more generically, I suppose you would need to have a global config value to identify if the sshd should be either:
1.  default allow all port forwards except as restricted by an authorized_key, or
2.  default deny all port forwards except as permitted by an authorized_key.

The extra wrinkle is what to do about users that auth with username and password or something different which does not allow configuration like authorized_keys, which gets into a whole bunch more complexity.

In our case we wanted the default deny, and our use case does not need to work about breaking everyone else.

Thanks!


>    While I generally agree with having to explicitly whitelist
>   "permitopen" host/port pairs, it does change the default behavior and
>    would probably break configuration in the wild. Or am I mistaken here?
    
    Best
    Philipp
    
    

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux