Skip to content

Incomplete SSH selector for 172.16/12 private IP block

According to RFC1918, the 172 block is defined by prefix 172.16/12. So both 172.16.0.0 and 172.31.0.0 are private IP addresses.

But our selector for private IPs in .ssh/config only selects 172.16.*. So, for example, 172.31.0.0 is not matched.

Proposed fix:

Host 192.168.* 10.* 172.16.* 172.17.* 172.18.* 172.19.* 172.20.* 172.21.* 172.22.* 172.23.* 172.24.* 172.25.* 172.26.* 172.27.* 172.28.* 172.29.* 172.30.* 172.31.*

Should be reviewed and tested.

Feature Branch: bugfix/6558-ssh-rfc1918-exceptions

Related issues

Original created by @sajolida on 6558 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information