vsftpd 与TCP_wrapper 结合限制用户的ip地址登录
来源:互联网 发布:数据库范式例子 编辑:程序博客网 时间:2024/04/28 22:50
/etc/hosts.allow 定义允许的地址:
/etc/hosts.deny 定义拒绝的来源地址.
如下:
/etc/hosts.allow
[root@BJFS-PIM root.adminssh]# cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the ‘/usr/sbin/tcpd’ server.
#
vsftpd :123.103.47.0/255.255.255.0 218.240.63.0/255.255.255.0 59.46.172.0/255.255.255.0 10.0.0.0/255.0.0.0 60.2.80.0/255.255.255.0 218.249.230.0/255.255.255.0 160.10.0.0/255.255.0.0 218.246.69.0/255.255.255.0 125.35.3.0/255.255.255.0:allow
/etc/hosts.deny如下:
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the ‘/usr/sbin/tcpd’ server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
vsftpd : ALL : DENY
将tcp_wrappers=yes添加至
/etc/vsftpd/vsftpd.conf 中
vi /etc/vsftpd/vsftpd.conf
tcp_wrappers=YES
重新启动vsftpd
[root@home vsftpd]# /sbin/service vsftpd restart
Shutting down vsftpd: OK ]
Starting vsftpd for vsftpd: OK ]
- vsftpd 与TCP_wrapper 结合限制用户的ip地址登录
- 用户登录增强-根据用户名与IP地址限制用户登录
- sql server限制用户从指定IP地址登录
- 获取登录用户IP地址
- vsftpd服务器结合mysql实现虚拟用户登录
- ORACLE 记录连接用户的IP地址以及登录失败用户的IP地址
- vsftpd限制访问ip
- SSH限制某些用户/ip登录
- 04-封杀IP地址,限制用户访问
- 获取当前登录用户的IP地址代码
- 限制IP登录的shell
- 用户限制登录的功能
- PHP结合Redis来限制用户或者IP某个时间段内访问的次数
- vsftpd.pam 【虚拟用户与本地用户都可以登录】
- IPUtil类---获取登录用户IP地址
- linux禁ping与限制ip登录
- sshd配置用户与ip限制访问
- 对inetd、xinetd与TCP_Wrapper的基本了解
- 研究类加载问题的心得
- 关于java和vc++跨平台加密
- spring对Hibernate的支持
- C#中日期的各种格式化输出显示
- Android应用开发——TextView控件属性列表
- vsftpd 与TCP_wrapper 结合限制用户的ip地址登录
- sourcegrid 应用实例(全部来自官网下载的例子)——Advanced Data Binding - DataGrid, alternate backcolor
- Understanding HBase column-family performance options
- (function (){})(); JS 闭包
- 有关结对编程的一些新想法
- sourcegrid 应用实例(全部来自官网下载的例子)——Advanced Data Binding - different Views, images and tooltip
- An overview of Android
- 【学习】比较通认的软件技术行业的职业生涯,现在的自己在哪个位置?
- linux-gcc 编译时头文件和库文件搜索路径