Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Pro tip: set `UseDNS no` in your sshd_config to disable reverse DNS lookups for every single ssh connection to your host.

Pro tip: set `UseDNS no` in your sshd_config to disable reverse DNS lookups for every single ssh connection to your host.

Scheduled Pinned Locked Moved Uncategorized
freebsdsshdns
2 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • bastillebsd@fosstodon.orgB This user is from outside of this forum
    bastillebsd@fosstodon.orgB This user is from outside of this forum
    bastillebsd@fosstodon.org
    wrote last edited by
    #1

    Pro tip: set `UseDNS no` in your sshd_config to disable reverse DNS lookups for every single ssh connection to your host.

    It provides no filtering or validation purpose, afaik, and seems to only generate excess DNS traffic.

    This lesson brought to you by the 66k DNS lookups in the past 24hrs from a single public facing forgejo jail.

    #FreeBSD #SSH #DNS

    alanhickslondon@fosstodon.orgA 1 Reply Last reply
    1
    0
    • bastillebsd@fosstodon.orgB bastillebsd@fosstodon.org

      Pro tip: set `UseDNS no` in your sshd_config to disable reverse DNS lookups for every single ssh connection to your host.

      It provides no filtering or validation purpose, afaik, and seems to only generate excess DNS traffic.

      This lesson brought to you by the 66k DNS lookups in the past 24hrs from a single public facing forgejo jail.

      #FreeBSD #SSH #DNS

      alanhickslondon@fosstodon.orgA This user is from outside of this forum
      alanhickslondon@fosstodon.orgA This user is from outside of this forum
      alanhickslondon@fosstodon.org
      wrote last edited by
      #2

      @BastilleBSD Mostly harmless, but you should be aware it also switches off DNS lookups for Match Host directives.

      UseDNS Specifies whether sshd(8) should look up the remote host name, and to check that the resolved host name for the remote IP address maps back to the very same IP address.

      If this option is set to no, then only addresses and not host names may be used in ~/.ssh/authorized_keys from and sshd_config Match Host directives. The default is “yes”.

      1 Reply Last reply
      0
      • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe shared this topic
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups