iptables对于接口是路由模式和网桥模式的问题
iptables -i eth0iptables -m --physdev --physdev-out
这两者区别与联系是什么,
谢谢 --------------------编程问答-------------------- 不太清楚啊 帮顶 --------------------编程问答-------------------- case 'i':
xtables_check_inverse(optarg, &invert, &optind, argc, argv);
set_option(&options, OPT_VIANAMEIN, &fw.ip.invflags,
invert);
xtables_parse_interface(optarg,
fw.ip.iniface,
fw.ip.iniface_mask);
break;
case 'm': {
size_t size;
if (invert)
xtables_error(PARAMETER_PROBLEM,
"unexpected ! flag before --match");
m = xtables_find_match(optarg, XTF_LOAD_MUST_SUCCEED,
&matches);
size = IPT_ALIGN(sizeof(struct ipt_entry_match))
+ m->size;
m->m = xtables_calloc(1, size);
m->m->u.match_size = size;
strcpy(m->m->u.user.name, m->name);
xtables_set_revision(m->m->u.user.name, m->revision);
if (m->init != NULL)
m->init(m->m);
if (m != m->next) {
/* Merge options for non-cloned matches */
opts = xtables_merge_options(opts,
m->extra_opts,
&m->option_offset);
if (opts == NULL)
xtables_error(OTHER_PROBLEM,
"can't alloc memory!");
}
}
break;
参考iptables源码。
http://linux.chinaunix.net/bbs/thread-1022438-1-1.html
补充:云计算 , 云安全