利用iptables防火墙允许1521端口被连接
2019-08-20 18:42
686 查看
原文链接:https://www.geek-share.com/detail/2467120040.html
# service iptables restart
今天访问数据中心的一台新配好的Oracle 10g,结果Oracle SQLl Developer 死活连不上,我晕死,结果只好登过去检查,发现TNS都配好了,在服务器上登录也没问题。
正在迷惑的时候,后来进别人提醒了下“是不是linux的防火墙给阻塞了?”
首先用iptables查看当前规则:iptables -L -n , 如下图:
恩 真的只有寥寥几个端口被允许连接.所以让iptables开放1521端口允许此端口被连接:
首先:
#vi /etc/sysconfig/iptables
加入:
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 1521 -j ACCEPT
保存后退出vi编辑器,然后:
# service iptables save# service iptables restart
service iptables save目的,保存这个新加入的规则,不然重启机器又恢复原样了.
然后再用SQL Developer连了一下,一次成功! 呵呵。
再用iptables -L -n 一查,1521端口已经被iptables允许被连接,如下图红框部分:
转载于:https://www.cnblogs.com/ChrisWang/archive/2009/10/21/1587622.html
相关文章推荐
- 利用iptables防火墙允许1521端口被连接
- 利用iptables防火墙允许1521端口被连接
- iptables防火墙只允许指定ip连接指定端口、访问指定网站
- iptables防火墙只允许指定ip连接指定端口、访问指定网站
- Linux开放1521端口允许网络连接Oracle Listener
- 老男孩教育每日一题-2017年5月5日-防火墙知识点:设置一条Iptables规则,允许192.168.10.0段访问873端口?
- Linux开放1521端口允许网络连接
- 配置Windows 2008 R2 防火墙允许远程访问SQL Server 2008 R2 更改端口 连接字符串 IP+逗号+端口号
- iptables 防火墙 只允许某IP访问某端口、访问特定网站
- Iptables 防火墙 只允许某IP访问某端口、访问特定网站
- iptables 防火墙 只允许某IP访问某端口
- Linux开放1521端口允许网络连接Oracle Listene
- iptables 防火墙 只允许某IP访问某端口、访问特定网站
- iptables 防火墙 只允许某IP访问某端口、访问特定网站
- iptables防火墙 只允许某IP访问某端口、访问特定网站
- linux 防火墙 iptables 允许 某个 某段 IP访问 某个端口
- linux开放1521端口允许网络连接Oracle Listener
- Linux开放1521端口允许网络连接Oracle Listene
- Linux开放1521端口允许网络连接Oracle Listene
- Linux开放1521端口允许网络连接Oracle Listener