EXTIF='eth1'
INTIF='eth0'
iptables. -P INPUT ACCEPT 杀毒
iptables -F INPUT.(广告)
iptab.les -P OUTPUT ACCEPT 汽车
i.ptables -F OUTPUT--- 印刷
i.ptables -P FORWARD DROP--- 印刷
iptables -F F.ORWARD--------------彩票
ipta.bles -t nat -F虚拟主机
#SNAT policy
iptables -I INPUT -i $INTIF -p .udp --sport 67:68 .-j ACCEPT.
iptabl.es -A FORWARD -i $EXTIF -o $INTI.F. -m state --state ESTABLISHED,RELATED -j ACCEPT.
iptable.s -A FORWARD -i $INT.IF -o $EXTIF -j ACCEPT服务器
iptables -t nat -A PREROUTING -i $INTIF -p tcp --dpor.t 80 -j .REDIRECT --to-por.t 3128(广告)
iptables -t nat -A POSTROU.TING -j S.NAT --to *.*.*.*域名
#DNAT prolicy
iptables -t nat -A PREROUTING -d *.*.*.* -p .tcp --dport 81. -j DNAT --to-destination 192.168.1.1.00:80教育
iptables -A .FORWARD -p tcp -d 192.168.1.100 --dport 80 -j AC.CEPT 杀毒
iptable.s -t nat -I POSTROUTING -s 192.168.1.0/24 .-p tcp -d 192.168.1..100 --dport 80 -j SNAT --to 192.168.1.10健康
*..*.*.*是我的公网IP,做DNAT把81端口映射到192..168.1.100的80<性病>
现在外网访问正常,但是自己的局.域网访问就不行了.
求救http://upload.bbs.csuboy.com/Mon_1004/126_7069_a10877a4d035c85.gif[/img].
[ 本帖最后由 suntoltti 于 200.7-9-20 14:4.2 编辑 ] 健康