|
|
环境:
pc1---> pc2 eth0<----- iptables masquerade-----> pc2 eth1 pppoe----> WAN
系统启动后:
pc1 和 PC2 eth0在同一网段,并且网关指向 PC2 eth0,
pc2 eth1通过ADSL拨号到 公网。
需要做 iptables masquerade,
PC2 OS: redhat linux 9.0 完全安装,安装时内核选项没改动。
PC2 ifconfig:
eth0
lo
ppp0
缺省网关指向 ppp0
问题:
如果用 iptables masquerade ,需要重新编译内核吗?
需要做哪些配置?
有朋友试过在iptables中加入UPnP功能吗?
谢谢! |
|