Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5272429
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-04-30 10:26:43

iptables -t nat -L POSTROUTING
 
[root@mailgateway etc]# iptables -t nat -L POSTROUTING
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  192.168.0.0/24       anywhere           to:218.247.50.18
 
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
 
iptables -I FORWARD -s 192.168.0.0/24 -p tcp --dport 21 -j DROP
 
iptables -t filter -L FORWARD
 
iptables -t nat -I PREROUTING -i ppp0 -p tcp --dport 80 -j DNAT --to-destination 192.168.15.200:80
 
iptables -t nat -I PREROUTING -i ppp0 -p tcp --dport 3389 -j DNAT --to-destination 192.168.15.200:3389
 
智能DNS:
iptables -t nat -I PREROUTING -i eth0 -p udp --dport 53 -j DNAT --to-destination 61.144.56.101:53
阅读(7627) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~