服务器信息如下
外网服务器:eth0:公网IP
eth1:内网IP(192.168.10.205)
公网对外提供服务,内网IP与内部局域网通信。
配置过程:
(1)开启iptables
service iptables restart (临时开启)
chkconfig iptables on...
分类:
系统相关 时间:
2015-04-20 21:01:35
阅读次数:
178
iptables(netfilter网络过滤器)iptables是linux上特有的防火墙机制,功能非常强大。CentOS默认是没有iptables规则。iptables命令可用于配置Linux的包过滤规则,常用于实现防火墙、NAT。常用选项:iptables-nvL查看规则(-n为数字显示输出的ip地址和端口-v为可视化显示-L为列出..
分类:
系统相关 时间:
2015-04-20 13:20:17
阅读次数:
258
嵌入式入门-linux文件共享
一 文件共享前提
1 linux与win相互ping通
2 关闭linux的防火墙/etc/init.d/iptables stop
二 连接WinSCP
三 连接samba
1 安装samba:yum install samba
2 添加用户:useradd win
3 设置密码:passwd win
4 设置在PC上...
分类:
系统相关 时间:
2015-04-20 09:40:20
阅读次数:
189
1.hadoop的伪分布安装1.1 设置ip地址执行命令service network restart验证:ifconfig1.2 关闭防火墙执行命令service iptables stop验证:service iptables status1.3关闭防火墙的自动运行执行命令chkconfig i...
分类:
其他好文 时间:
2015-04-20 00:11:37
阅读次数:
103
16.iptables配置管理·配置文件:·通过iptables添加的规则并不会永久保存,需要serviceiptablessave命令永久保存到/etc/sysconfig/iptables文件中,·CentOS自带默认iptables规则,保存自定义规则会覆盖默认规则,·基本操作:·iptables服务默认启动,serviceiptablesstatus..
分类:
其他好文 时间:
2015-04-19 19:48:24
阅读次数:
108
#防火墙允许端口
iptables-AINPUT-mstate--stateNEW-mtcp-ptcp--dport80-jACCEPT
iptables-AINPUT-mstate--stateNEW-mtcp-ptcp--dport3306-jACCEPT
#SELinux配置
SELINUX=disabled
#Nginx安装
yum-yremovehttpd*php*
yum-yinstallnginx
servicenginxstart
chkconfignginxon
..
分类:
其他好文 时间:
2015-04-19 19:40:16
阅读次数:
153
嵌入式入门-远程登录
一 登录前提
1 windows与linux相互ping通
ifconfig
2 linux关闭防火墙
/etc/init.d/iptables stop
二 登录工具-命令行
1 putty
2 SecureCRT
三 登录工具-图形化
1 vncserver
附:my_qq8727857...
分类:
其他好文 时间:
2015-04-19 19:33:55
阅读次数:
142
linux系统- 文件共享
一
文件共享的前提
1 windows与linux相互ping通
测试方法如下
则ping通
2 linux的防火墙关闭
/etc/init.d/iptables stop
二 samba配置
1 安装samba
2 设置密码:smbpasswd -a username
3 配置samba
4 重启samb...
分类:
系统相关 时间:
2015-04-19 14:44:28
阅读次数:
159
linux系统-远程登录
一 登录前提
1 windows与linux相互ping通
使用ifconfig查看网络状态
2 linux关闭防火墙
/etc/init.d/iptables stop
二 登录工具-命令行
1 putty
2 SecureCRT
三 登录工具-图形化
1 vncserver...
分类:
系统相关 时间:
2015-04-19 11:34:33
阅读次数:
195
iptables是编写netfilter规则的工具。一般情况下,升级kernel可顺便升级netfilter模块。连接追踪模块是xt_state.ko.TCP/IP的状态有12种,而iptables关于连接的状态只有4种:Established,New,Related,Ivalid.Established的状态定义为,只要封包能成功穿越防火墙,之后所有相关的..
分类:
其他好文 时间:
2015-04-19 06:37:44
阅读次数:
585