summaryrefslogtreecommitdiff
path: root/meta-google/recipes-core/dropbear/dropbear_%.bbappend
blob: 20c53fecb1c7aa26fe9c5c5ff656da1cea800879 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Allow SSH to the mgmt node on DEV builds
do_install_append_gbmc_dev() {
  nftables_dir=${D}${sysconfdir}/nftables
  rules=$nftables_dir/50-dropbear-dev.rules
  install -d -m0755 $nftables_dir
  echo 'table inet filter {' >"$rules"
  echo '    chain mgmt_pub_input {' >>"$rules"
  echo '        tcp dport 22 accept' >>"$rules"
  echo '    }' >>"$rules"
  echo '}' >>"$rules"
}