what port number should I use in mongodb

gloo

I know 27017 is the standard port number for mongodb, but does everyone who sets up a mongo server generally change this to some random port number? Is there any possible security issues with using the standard port number?

Markus W Mahlberg

Though this is - strictly speaking - not a programming related question and would rather belong on http://dba.stackexchange.com or on http://www.serverfault.com, I will answer it, since it might be useful for programmers.

Putting software on a nonstandard port does in no way enhance security from a conceptional point of view. This is because a determined attacker (I don't talk of script kiddies) will do a well hidden port scan on the machines of your network anyway. And since most servers identify who they are and what they do, it is quite easy for an attacker to determine which software is running on which open (aka reachable) ports of a machine. Actually, there are signature available, mapping the answers of various versions of the most important software (openssh, Apache httpd and MySQL) to known vulnerabilities of said versions of the software.

Putting a software on a nonstandard port for security reasons does not help. And it creates problems for the network and system administrators to configure the firewalls and system services correctly, resulting in increased maintenance work.

As @senfo correctly pointed out, you should use firewalls to restrict access. Measures offered by MongoDB to enhance security are authentication and authorization as well as keyfiles. In order to prevent sniffing attacks, you might want to use a tool like stunnel or recompile the MongoDB packages you plan to use with SSL support.

So, keep the ports where they belong to: at their defaults.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

What version manager should I use to manage multiple Scala versions?

来自分类Dev

What should I import for Scalaz' traverse functionalities

来自分类Dev

Should I use copy or strong with arrays?

来自分类Dev

Should I use a pointer when dealing with lists?

来自分类Dev

Spark - Which language should I use?

来自分类Dev

Should I use `__setattr__`, a property or...?

来自分类Dev

How should I use vendor in Go 1.6?

来自分类Dev

At what number of columns should you make another table?

来自分类Dev

Python class inheritance not doing what I think it should

来自分类Dev

what things i should know when using mailx command

来自分类Dev

Should I use asynchronous methods within a background thread?

来自分类Dev

Should I use big switch statements in JavaScript without performance problems?

来自分类Dev

Why should I use Using block to connect to the EntityFramework Model?

来自分类Dev

When should I use val x = fn as opposed to fun x

来自分类Dev

Entity Framework 6 , Should I use repository pattern?

来自分类Dev

Is there a difference between an I/O port and a physical port?

来自分类Dev

What query should I write to calculate the cumulative salary of employees from the salary table

来自分类Dev

What do I need to do to use tgmath on iOS?

来自分类Dev

What can I use to monitor memory used by a single program?

来自分类Dev

What can I use to monitor memory used by a single program?

来自分类Dev

Should I use Browserify or Webpack for lazy loading of dependencies in angular 1.x

来自分类Dev

Moving away from Repository pattern. How should I use DBContext?

来自分类Dev

Is it okay to use negative pixels in css margin value or should I do something else?

来自分类Dev

What should be in my View Models?

来自分类Dev

Given a stock of integers 0-9, what is the last number I can write before I run out of some integer?

来自分类Dev

Should I always complete a TaskCompletionSource?

来自分类Dev

How should I parse this data?

来自分类Dev

What is the use of @Synchronize in Hibernate

来自分类Dev

Should we always use `override` in Trait

Related 相关文章

  1. 1

    What version manager should I use to manage multiple Scala versions?

  2. 2

    What should I import for Scalaz' traverse functionalities

  3. 3

    Should I use copy or strong with arrays?

  4. 4

    Should I use a pointer when dealing with lists?

  5. 5

    Spark - Which language should I use?

  6. 6

    Should I use `__setattr__`, a property or...?

  7. 7

    How should I use vendor in Go 1.6?

  8. 8

    At what number of columns should you make another table?

  9. 9

    Python class inheritance not doing what I think it should

  10. 10

    what things i should know when using mailx command

  11. 11

    Should I use asynchronous methods within a background thread?

  12. 12

    Should I use big switch statements in JavaScript without performance problems?

  13. 13

    Why should I use Using block to connect to the EntityFramework Model?

  14. 14

    When should I use val x = fn as opposed to fun x

  15. 15

    Entity Framework 6 , Should I use repository pattern?

  16. 16

    Is there a difference between an I/O port and a physical port?

  17. 17

    What query should I write to calculate the cumulative salary of employees from the salary table

  18. 18

    What do I need to do to use tgmath on iOS?

  19. 19

    What can I use to monitor memory used by a single program?

  20. 20

    What can I use to monitor memory used by a single program?

  21. 21

    Should I use Browserify or Webpack for lazy loading of dependencies in angular 1.x

  22. 22

    Moving away from Repository pattern. How should I use DBContext?

  23. 23

    Is it okay to use negative pixels in css margin value or should I do something else?

  24. 24

    What should be in my View Models?

  25. 25

    Given a stock of integers 0-9, what is the last number I can write before I run out of some integer?

  26. 26

    Should I always complete a TaskCompletionSource?

  27. 27

    How should I parse this data?

  28. 28

    What is the use of @Synchronize in Hibernate

  29. 29

    Should we always use `override` in Trait

热门标签

归档