问题描述与解决方案还是老问题,Linux系统中通过iptables配置的NAT无法在双向通信环境中使用,你无法配置一条NAT规则实现对两个方向主动发起的流量做NAT,解决这个问题的方案有好几种:1.配置两条NAT规则iptables的NAT配置本身就是先match再执行一个target,因此一条规则只能表示一种转换策略,要想实现“来自x的数据包的源地址转换为y,去往y的数据包的目标地址转为x”这样...
分类:
其他好文 时间:
2014-07-20 09:22:06
阅读次数:
294
下载程序http://www.cygwin.com/安装程序下载完成后,运行setup.exe程序,出现安装画面。直接点“下一步”,出现安装模式的对话框,如下图所示:这里可以看到有三种安装模式:Install from Internet,这种模式直接从Internet安装,适合网速较快的情况;Dow...
下载对应的源码,往往都是.tar.gz,.zip的压缩包,解压.打开windows的cmd,切换到对应目录1 C:2 cd C:\xx3 setup.py install
分类:
编程语言 时间:
2014-07-19 20:13:53
阅读次数:
257
默认情况下ubuntu无firewall,除非你自己安装了,怎么装的就怎么删呗。。
如果是已启用的自备的iptables 删了就行了
sudo apt-get remove iptables。...
分类:
其他好文 时间:
2014-07-18 18:02:19
阅读次数:
213
#!/bin/sh
#
# iptables Start iptables firewall
#
# chkconfig: 2345 08 92
# description: Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# co...
分类:
其他好文 时间:
2014-07-18 12:23:55
阅读次数:
354
DenyHosts官方网站为:http://denyhosts.sourceforge.net1. 安装# tar -zxvf DenyHosts-2.6.tar.gz# cd DenyHosts-2.6# python setup.py install默认是安装到/usr/share/denyho...
分类:
其他好文 时间:
2014-07-18 12:08:55
阅读次数:
206
neutron-openvswitch-agent代码分析neutron.plugins.openvswitch.agent.ovs_neutron_agent:main# init ovs first by agent_config:# setup plugin_rpc, state_rpc, m...
分类:
其他好文 时间:
2014-07-18 00:28:37
阅读次数:
434
from distutils.core import setup, Extension, Commandfrom distutils.command.build import buildfrom distutils.command.clean import cleanfrom distutils.c...
分类:
编程语言 时间:
2014-07-17 21:23:17
阅读次数:
911
一、下载pip并安装
# wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-1.4.tar.gz#md5=ca790be30004937987767eac42cfa44a
# tar -zxf pip-1.4.tar.gz
# cd pip-1.4
# python setup....
分类:
编程语言 时间:
2014-07-17 19:32:09
阅读次数:
271
如何在相同的页面设置多个tinymce编辑器
This example shows how to setup multiple editors on the same page and with different configs.
用于多功能文本框,之前同页面只能用一个tinymce编辑器,百度谷歌没结果,所以整理下代码,以供参考:...
分类:
其他好文 时间:
2014-07-17 17:02:09
阅读次数:
298