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
ubuntu开启IP转发功能的 问题
-
- 帖子: 5
- 注册时间: 2013-11-05 15:22
- 系统: windows xp
ubuntu开启IP转发功能的 问题
上次由 guyuerenjian 在 2014-04-24 20:35,总共编辑 1 次。
-
- 论坛版主
- 帖子: 5369
- 注册时间: 2007-01-14 16:23
Re: ubuntu开启IP转发功能的 问题
把你的iptables规则拿出来看看,对了,还有路由表
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}