首页 > 科技 > How to turn off linux ports?

How to turn off linux ports?

2006年8月22日 20点44分 发表评论 阅读评论

In some Linux distributions, there is a file named “/etc/inetd.conf”. inetd is such a procession that monitors the requirement from the network,and call the corresponding program to done with them. “inetd.conf” tells the inetd procession which ports should be listened, and what service should be started for these using ports.

So, we could turn off the ports just adding “#” before the line indicated the port in “inetd.conf” file. and then send out “SIGHUP” to inetd. For all doing:
1. # chmod 600 /etc/inetd.conf
2. idenfity the owner is root:
# stat /etc/inetd.conf
3. # vi /etc/inetd.conf
4. # killall -HUP inetd
after the above steps, we must set the “inetd.conf” to be un-changed.
5. $ chattr +i /etc/inetd.conf

Check the local network setting:
# cat /etc/sysconfig/network

分类: 科技 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
您必须在 登录 后才能发布评论.