iptables 这个指令, 如同以下用 man 查询所见, 它用来过滤封包与做nat network address translation(网路位址转译), 这个指令的应用很多, 可以做到很多网路上的应用.
iptables - administration tool for ipv4 packet filtering and nat
【程序编程相关:国内防火墙系统大比拼】 【推荐阅读:简易防火墙建置与流量统计】 【扩展信息:BlackICE:挡住黑客的魔爪】应用1:让区域网路内的电脑以一个真实ip来共享频宽(实作nat)
架构图:
560)this.style.width=560; onmousewheel = javascript:return big(this) height=170 src="/files/uploadimg/20051214/1805260.jpg" width=351>
所需设备: 一台 linux server , 2张网路卡
网卡1 : eth0 , 使用真实ip , 网卡2 : eth1 , 使用 192.168.1.254
设定: 在 /etc/rc.d/rc.local 写入以下几行
echo "1" > /proc/sys/net/ipv4/ip_forward
modprobe ip_tables modprobe ip_nat_ftp modprobe ip_conntrack modprobe ip_conntrack_ftp ... 下一页