分页: 1 / 1

ubuntu开启IP转发功能的 问题

发表于 : 2014-04-24 20:15
guyuerenjian
ubuntu 已经设置net.ipv4.ip_forward = 1 iptables里面NAT转换也已经做好了 源地址eth1网段 转换为eth0的接口地址 eth1的数据仍然不能够从eth0出去 有谁知道不

root@ubuntu:/etc# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@ubuntu:/etc# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- ACA80A00.ipt.aol.com/24 anywhere
root@ubuntu:/etc# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.174.2 0.0.0.0 UG 100 0 0 eth0
172.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.174.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

Re: ubuntu开启IP转发功能的 问题

发表于 : 2014-04-24 20:26
onlylove
把你的iptables规则拿出来看看,对了,还有路由表