第 36 章 rinetd — internet “redirection server”

简介:

36.1. rinetd install

36.1.1. ubuntu

sudo aptitude install rinetd
			

36.1.2. centos

rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/5/x86_64/RPMS/rinetd-0.62-6.el5.art.x86_64.rpm
			

配分配至文件

cp /etc/rinetd.conf /etc/rinetd.conf


# cat /etc/rinetd.conf.old
# example configuration file for rinetd
#
#

# to forward connections to port 80 on 10.10.10.2 to port 80 on 192.168.0.2
#  10.10.10.2 80 192.168.0.2 80

# to forward connections to port 80 on all addresses to port 80 on 192.168.0.2
# 0.0.0.0 80 192.168.0.2 80

# access controls can be set with allow and deny rules
# allow and deny before the first forwarding rule are global
# allow and deny after a specific rule apply to it only

# this rule allows hosts from 172.16.32.0/24 netblock
# allow 172.16.32.*

# this rule denies the host 192.168.32.12
# deny 192.168.32.12

# rinetd supports logging - to enable, uncomment the following
# logfile /var/log/rinetd.log

# by default, logs are in a tab-delimited format. Web common-log format
# is available by uncommenting the following
# logcommon
			

启动rinetd

chkconfig rinetd on
service rinetd start
			




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
监控 Linux
Zabbix-Server 添加主机
    之前讲解了如何配置Zabbix 服务端和客户端,现在我们来讲解下如何在zabbix监控端添加主机     Zabbix服务端:Centos 配置 Zabbix服务端   Zabbix客户端:Centos 配置 Zabbix客户端 1、登陆zabbix服务器,首先修改下中文界面,因为安装好...
2353 0
|
Windows 网络架构 网络协议
|
存储 监控 数据安全/隐私保护
|
存储 文件存储 Windows