当前位置:首页 » 专业资讯
开发技术指南» 文章正文
    引言: 我想对外发布3台服务器,前方用iptables做防火墙,请
 

 

    摘要: 我想在一个备份的脚本中获取日期值,如: tar cvf backxxxx.tar /export2/proj/ xxxx为执行时的当前日期,我要如何才能实现? 谢谢! apollolegend 回复于:2003-08-20 09:33:47 date返回当前日期和时间可截断使用 maidx 回复于:2003-08-20 09:37:21 set date $1 $2 $3.... ok! win111 回复于:2......
    摘要: 今天有空先整理20本,以后继续整理。 资料整理:小文论坛( http://www.wonyen.net/bbs/mboard.html ) 1、《linux从入门到精通》 [url]http://www.gouhuo.com/study/linuxbook.zip[/url] 2、 linux 系统安全与优化中文版 这本书的英文版“get acquainted with linux security and optimization syste......


iptables 问题。急,在线等

我想对外发布3台服务器,前方用iptables 做防火墙,请问是不是要在与internet连接的网卡上绑3个ip呀!谢谢! 【相关文章:如何修改redhat9启动时的grub界

【扩展阅读:如何在putty中显示远程linux主机

【扩展信息:限制单个IP并发TCP连接的iptabl

 好好先生 回复于:2003-08-20 16:11:52 不用.你看一下精华区的"网络安全"相关贴子.只用一个ip,可以用iptables来映射.

 nu9i 回复于:2003-08-20 16:42:01 没找到!

 cilient 回复于:2003-08-20 17:05:57 give me your ip , i will you a example for iptables nat!

 nu9i 回复于:2003-08-20 17:18:39 比如我的3个机器是10.10.10.10 10.10.10.11 10.10.10.12

连接internet 的网卡地址是202.10.10.10

 cilient 回复于:2003-08-20 17:33:23 一般情况,如果是用(只有)一个地址做nat,那么如下:

#载入相关模块

     modprobe ip_tables

       modprobe ip_nat_ftp

       #进行ip伪装

    iptables -t nat -a postrouting -o eth0 -j masquerade

这里eth0一定要是你的广域网的那个口,如果你有多个广域网ip,那么给出来,我给你具体的作nat的方法与配置、或者是基于端口映射的方法!

 nu9i 回复于:2003-08-20 17:38:16 我有3台机器,现在用着3个ip,202.xxx.xxx.2 202.xxx.xxx.3 202.xxx.xxx.4 。前一段被人攻击了,我现在想用linux做个防火墙,让服务器都使用假ip,怎么做呢?

 cilient 回复于:2003-08-20 18:42:52 给你一个例子:

#!/bin/bash

# do iptables based masquerading and firewalling.

# ~spot, 09/01/2002

# set default path

export path=/sbin:/usr/sbin:/bin:/usr/bin

# load nat modules

modprobe iptable_nat

modprobe ip_nat_ftp

modprobe ip_nat_irc

# load connection-tracking modules

modprobe ip_conntrack

modprobe ip_conntrack_ftp

modprobe ip_conntrack_irc


...   下一页
    摘要: 下面是从ibm网站参加的一个有奖测试,有些题不知道答案,请大家帮忙看看。 speed-start linux有奖测试 我错了6个 不知道是不是下面这几个! (3) 如果你想实现某种功能floozflam,但是不知道该使用什么命令。下面哪条命令可以帮你找到相关的命令。 a. man floozflam b. locate floozflam c. apropos floozflam d. whatis floozflam 这题我选......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE