noports
noports copied to clipboard
Better defaults for sshnpd's --permit-open
Is your feature request related to a problem? Please describe.
Currently permitOpen defaults to localhost:22,localhost:3389 which is overly restrictive for a typical 'bastion'-like daemon deployment.
Describe the solution you'd like
IF a --permit-open is not specified by the user AND a policy atSign IS specified THEN default permitOpen to ':'
Describe alternatives you've considered
Considered just defaulting to ':' in all cases but that might be overly permissive. In discussion, @cpswan and I felt that this proposed solution has the best balance between considerations of user experience and security.
Additional context
No response
If you define a policy server then default open?
If you define a policy server then default open?
Yes exactly
arch comments
- proposal is good if we want to eliminate administrator hassles, because if they want to permit open a port, they would have to both 1. manually configure permit open on sshnpd and 2. do policy stuff.
- story behind of being restrictive on sshnpd permit open is to encourage the person using sshnpd to explicitly say what is allowed
- bastion in corporate environment is setting firewall rules one by one, whch is still the behaviour that will be exercised when using policy manager
PR in review