限制特定IP访问【BLOCKING BY SPECIFICALLY IP ADDRESS】

简介:
 If you want to block some connections from specifically ip address and not use fire wall, you can add some parameters in the sqlnet.ora that can achieve  what you want.
 
for example:
/u02/oracle/product/9.2.0/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.

NAMES.DEFAULT_DOMAIN = localdomain

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
#This turns on the hostname/IP checking for your listeners
tcp.validnode_checking=yes
#invited nodes of the  ip address 
tcp.invited_nodes=(192.168.11.89,192.168.11.3)

#exclude a list of clients
tcp.excluded_nodes=(192.168.11.100)

remember,you need restart listener.

Just a small tip -:)

本文转自Be the miracle!博客51CTO博客,原文链接http://blog.51cto.com/miracle/50341如需转载请自行联系原作者


Larry.Yue

相关文章
|
6月前
|
网络架构 开发者
|
网络协议 Unix Linux
ipconfig 和ip addr的区别
今天在玩DNS解析记录的追踪。
176 0
|
网络协议 C# 数据库
Convert IPv6 Address to IP numbers (C#)
URL: http://lite.ip2location.com/ Use the code below to convert the IP address of your web visitors and lookup for their geographical location, e.
1462 0
|
网络协议
|
JavaScript 前端开发
|
网络协议