
目标:通过外网访问内网特定机器上的特定服务.
外网服务器SERVERA,外网卡eth1 ip 218.25.111.111,内网卡eth0 192.168.100.32
内网FTP服务器SERVERB,ip 192.168.100.128
内网HTTP及其它服务器SERVERC,ip 192.168.100.96
参考资料 iptables入门
1.在root下建立脚本文件fw.sh,内容如下
#!/bin/sh
echo "Starting iptables rules.........."
modprobe ip_nat_ftp
modprobe ip_conntrack_ftp
echo 1&...