linux能否通过ip远程,UNIX下如何通过IP限制用户远程登录

下面开始对IP security进行配置(以FTP服务为例,TELNET等其他端口的服务类似)

1. 启动IP安全(IPSec):

# smitty ipsec4-> Start/Stop IP Security----> Start IP Security ->Start IP Security

0070f6ab098cb8a53280949a8f42b7a9.png

上面两项的设置均使用缺省值

2. 检查ipsec是否可用:

# lsdev -Cc ipsec

ipsec_v4 Available IP Version 4 Security Extension

3. 现在系统中应创建了两个过滤规则。使用下面的命令检查这两个过滤规则:

# lsfilt -v4

正常情况下可以看到2条规则,如果提示无任何缺省规则,请参考本节的注解。

4. 增加一个过滤规则以允许接受从10.152.129.49发来的ftp请求:

# smitty ipsec4---> Advanced IP Security Configuration------> Configure IP Security Filter Rules---------> Add an IP Security Filter Rule ->Add an IP Security Filter Rule

8033bb8a4f7d4f96ec3a695516e004f3.png

* Rule Action -----------------------------------[permit] +

* IP Source Address -----------------------------[10.152.129.49]

* IP Source Mask --------------------------------[255.255.255.255]

IP Destination Address --------------------------[]

IP Destination Mask ---------------------------- []

* Apply to Source Routing? (PERMIT/inbound only) [yes]+

* Protocol --------------------------------------[all]+

* Source Port / ICMP Type Operation -------------[any]+

* Source Port Number / ICMP Type ----------------[0] #

* Destination Port / ICMP Code Operation --------[eq]+

* Destination Port Number / ICMP Type -----------[21] #

* Routing ---------------------------------------[both] +

* Direction -------------------------------------[both]+

* Log Control -----------------------------------[no]+

* Fragmentation Control -------------------------[0]+

* Interface -------------------------------------[all] +

其他缺省值0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值