QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 748|回复: 0

求助,iptables的nat问题

[复制链接]
发表于 2003-4-5 23:12:42 | 显示全部楼层 |阅读模式
我们寝室是用PPPoE拨号上网的,我自己能拨号,用一块网卡,同学上不了。我的iptables文件是这样的,请gugong指教。

# Generated by iptables-save v1.2.6a on Tue Oct 29 22:28:14
*mangle
REROUTING ACCEPT [3184]
:INPUT ACCEPT [3182]
:FORWARD ACCEPT [2]
:OUTPUT ACCEPT [2797]
OSTROUTING ACCEPT [2799]
COMMIT
# Completed on Tue Oct 29 22:28:14 2002
# Generated by iptables-save v1.2.6a on Tue Oct 29 22:28:14 2002
*nat
REROUTING ACCEPT [73]
OSTROUTING ACCEPT [22]
:OUTPUT ACCEPT [213]
[212] -A POSTROUTING -o 192.168.0.1 -j MASQUERADE
COMMIT
# Completed on Tue Oct 29 22:28:14 2002
# Generated by iptables-save v1.2.6a on Tue Oct 29 22:28:14 2002
*filter
:INPUT ACCEPT [20227]
:FORWARD ACCEPT [370]
:OUTPUT ACCEPT [15374]
COMMIT
# Completed on Tue Oct 29 22:28:14 2002

PS:我的IP是192.168.0.1,掩码255.255.255.0,PPPoE拨号得到的是动态的IP,我的iptables该怎么改?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 05:53 , Processed in 0.050250 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表