Network Configuration
TL;DR
When Docker starts, it creates a virtual interface named docker0 on
the host machine. It randomly chooses an address and subnet from the private range defined by RF...
分类:
Web程序 时间:
2014-08-20 14:12:09
阅读次数:
591
在Cloud Foundry v2版本中,该平台使用warden技术来实现用户应用实例运行的资源控制与隔离。
在网络方面,warden container技术创建出一块虚拟网卡,专门供warden container内部使用,另外为warden container内部的虚拟网卡在warden server所在的宿主机上也配对了一块虚拟网卡,充当container的外部网关。仅仅创建出两块虚拟网卡,原则上可以保证物理上的“连通”,但是却很难做到网络间通信的“联通”,故在物理资源以及虚拟物理资源完备的情况,wa...
分类:
其他好文 时间:
2014-08-20 14:09:12
阅读次数:
281
【防火墙概念】 防火墙是工作于主机或网络边缘,对进出的报文根据定义的规则做出检查,进而对被规则匹配到的报文做出相应处理的套件。【iptables的概念】 iptables是网络层防火墙,它的功能是编写规则,然后交由netfilter来执行生效。【iptables的组成】 五链: PREROUTING ..
分类:
其他好文 时间:
2014-08-20 02:44:26
阅读次数:
308
最近在使用pureftp的时候遇到了文件目录无法读取或者读取很慢的问题,同时服务器上配置了iptables防火墙规则,问题主要由此引起。
解决方法如下:
1、首先查看是否开启了20、21端口,如果没有请开启。
2、停止iptables:service iptables stop,再次连接,可以成功读取列表。
3、修改iptables-config配置文件:
...
分类:
其他好文 时间:
2014-08-19 22:29:45
阅读次数:
198
译至:http://d.hatena.ne.jp/embedded/20140819/p1 虽然Aarch64(ARM64)的板子还很难到手、但通过使用qemu就能执行Aarch64的用户空间程序。利用Docker的话,就能很方便的尝试Aarch64的环境。编译也可以执行。 准备 使用Ubuntu ...
分类:
其他好文 时间:
2014-08-19 22:11:25
阅读次数:
362
if语句继续看docker.go文件的main函数if reexec.Init() { return }go语言的if不需要像其它语言那样必须加括号,而且,可以在判断以前,增加赋值语句语法IfStmt = "if" [ SimpleStmt ";" ] Expression Bl...
分类:
编程语言 时间:
2014-08-19 20:48:15
阅读次数:
288
iptables 工具参考文档:https://www.frozentux.net/iptables-tutorial/cn/iptables-tutorial-cn-1.1.19.htmlnetfilter/iptabels应用程序,被认为是Linux中实现包过滤功能的第四代应用程序。netfil...
分类:
其他好文 时间:
2014-08-19 20:27:25
阅读次数:
248
1 Namespace用来做PID的隔离,有了namespace,在docker container里头看来,就是一个完整的linux的世界。在host看来,container里的进程,就是一个普通的host进程,namespace提供这种pid的映射和隔离效果,host承载着container,就...
分类:
系统相关 时间:
2014-08-19 18:33:15
阅读次数:
281
#iptables-IINPUT-ptcp--dport80-jDROP#
iptables-IINPUT-s192.168.1.0/24-ptcp--dport80-jACCEPT#iptables-I
INPUT-s211.123.16.123/24-ptcp--dport80-jACCEPTiptables-IINPUT-ptcp--dport9889-jDROPiptables-IINPUT
-s192.168.1.0/24-ptcp--dport9889-jACCEPT如果用了NAT转发..
分类:
其他好文 时间:
2014-08-19 16:50:55
阅读次数:
357
一.Linux防火墙的启动和关闭1.1启动命令[root@singledb~]#serviceiptables
stopFlushingfirewallrules:[OK
]SettingchainstopolicyACCEPT:filternat[OK
]Unloadingiptablesmodules:[OK
][root@singledb~]#serviceiptablesstartApplyingiptablesfirewall
rules:[OK]Loadingaddit..
分类:
系统相关 时间:
2014-08-19 16:48:26
阅读次数:
291