最近安装了Linux,本地使用xshell,但连不上,才发现是防火墙的原因
来源:互联网 发布:朗读语文课文软件 编辑:程序博客网 时间:2024/04/30 01:45
远程 redhat 5
本地 fedora 12
在本地 telnet redhat 1521 ping不通。应该是防火墙的问题
切换到root账户下
[root@oracle]# cd /etc/sysconfig/
[root@oracle]# vi iptables
A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 1521 -j ACCEPT
[root]# /etc/init.d/iptables save
[root]#/sbin/service iptables save
网上还有人是这么做的
[root]# /sbin/iptables -A INPUT -p tcp --dport 1158 -j ACCEPT
[root]# /etc/init.d/iptables save
[root]# /sbin/iptables -L -n 还是不能显示 对1158端口号开放
/sbin/iptables -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 1521 -j ACCEPT
tips:
redhat中那个iptables在/sbin目录下,所以要用 /sbin/iptables,
还有[root]# /etc/rc.d/init.d/iptables start
本地 fedora 12
在本地 telnet redhat 1521 ping不通。应该是防火墙的问题
切换到root账户下
引用
[root@oracle]# cd /etc/sysconfig/
[root@oracle]# vi iptables
A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 1521 -j ACCEPT
[root]# /etc/init.d/iptables save
[root]#/sbin/service iptables save
网上还有人是这么做的
引用
[root]# /sbin/iptables -A INPUT -p tcp --dport 1158 -j ACCEPT
[root]# /etc/init.d/iptables save
[root]# /sbin/iptables -L -n 还是不能显示 对1158端口号开放
/sbin/iptables -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 1521 -j ACCEPT
tips:
redhat中那个iptables在/sbin目录下,所以要用 /sbin/iptables,
还有[root]# /etc/rc.d/init.d/iptables start
0 0
- 最近安装了Linux,本地使用xshell,但连不上,才发现是防火墙的原因
- 最近忙着写论文,才发现自己所学的东西已经弄丢的差不多了
- Linux系列-Xshell连接本地VMware安装的Linux虚拟机
- Linux系列-Xshell连接本地VMware安装的Linux虚拟机
- 才发现在linux下安装phpcms的问题啊
- Xshell连接本地VMware安装的Linux虚拟机
- Xshell连接本地VMware安装的Linux虚拟机
- xshell连接VMware本地安装的Linux虚拟机
- 签了工作之后才发现,自己太草率了..... 很长很真实!但会对你有所帮助的!
- 签了工作之后才发现,自己太草率了..... 很长很真实!但会对你有所帮助的!
- [转]签了工作之后才发现,自己太草率了!(很长很真实!但会对你有所帮助的!)
- error:使用GetActiveWindow时,句柄总是为0x0000,后来才发现是我错了
- 活了这么多年,才发现我的语文是体育老师教的
- 检查了好久才发现原来js中elseif是要分开的
- linux--Xshell的使用
- 使用xshell链接本地虚拟机中的Linux
- 使用xshell链接本地虚拟机中的Linux
- 使用xshell链接本地虚拟机中的Linux
- Ubuntu 16.04 interface and networking service.
- 使用 ss 代理增加 gradle 编译速度
- poj 2253 Frogger
- 自己的年终总结
- Spring+EhCache缓存实例(详细讲解+源码下载)
- 最近安装了Linux,本地使用xshell,但连不上,才发现是防火墙的原因
- 分布式锁实现方式一 基于zookeeper的分布式锁
- MySQL优化技巧
- Android开发艺术探索(连载)之View 的事件体系(一)view的基本知识
- Android进阶资源
- 第三方登录
- linux系统--mount 挂载访问windows共享文件夹
- 使用Rreact Native 之Navigator导航器小结--->菜鸟学习
- 囧 appspot.com/