萬盛學電腦網

 萬盛學電腦網 >> FreeBSD介紹 >> 配置FreeBSD的網關和網絡服務

配置FreeBSD的網關和網絡服務

出現如下提示時就可以開始網關的配置了:
User Confirmation Requested
       Do you want this machine to function as a network gateway?

                              [ Yes ]    No
如果這台機器要作為本地網絡和其它機器之間傳送數據包的網關,請選擇 [ Yes ] 然後按 Enter。如果這台機器只是網絡上的一個節點主,請選擇 [ No ] 並按Enter 繼續。
出現如下提示時就可以開始網絡服務的配置:
User Confirmation Requested
Do you want to configure inetd and the network services that it provides?

                               Yes   [ No ]
如果選擇 [ No ] ,許多網絡服務,如 telnetd 將不會啟用。這表示遠端用戶將無法 telnet 進入這台機器。本機器上的用戶還是可以 telnet到遠端機器的。 這些服務可以在安裝完成後修改/etc/inetd.conf 配置文件來啟用它們。如果您想現在就配置這些網絡服務,請選擇[ Yes ] ,然後會看到下面的信息:
 User Confirmation Requested
The Internet Super Server (inetd) allows a number of simple Internet
services to be enabled, including finger, ftp and telnetd.  Enabling
these services may increase risk of security problems by increasing
the exposure of your system.

With this in mind, do you wish to enable inetd?

                             [ Yes ]   No
選擇 [ Yes ] 繼續。
User Confirmation Requested
inetd(8) relies on its configuration file, /etc/inetd.conf, to determine
which of its Internet services will be available.  The default FreeBSD
inetd.conf(5) leaves all services disabled by default, so they must be
specifically enabled in the configuration file before they will
function, even once inetd(8) is enabled.  Note that services for
IPv6 must be separately enabled from IPv4 services.

Select [Yes] now to invoke an editor on /etc/inetd.conf, or [No] to
use the current settings.

                             [ Yes ]   No
選擇 [ Yes ] 將允許您添加網絡服務(將相應網絡服務每行開頭的#除掉即可)。


編輯 inetd.conf配置文件


在加入您想啟用的服務後,按下 Esc鍵會出現一個對話框可以讓您離開以及保存修改。

copyright © 萬盛學電腦網 all rights reserved