請問計時制adsl可以在linux上架NAT嗎? - PCZONE 討論區

返回   PCZONE 討論區 > ▲ ADSL_CABLE_FTTH 寬 頻 上 網 討 論 > -- 網 路 技 術 版


PCZONE 討論區



通知

-- 網 路 技 術 版 較深入的網路方面技術問題,請來此這版討論

會員
請問計時制adsl可以在linux上架NAT嗎?
各位高手您們好!

請問計時制adsl可以在linux redhat7.X上架NAT嗎? 如果可以的話,要怎麼架? 要注意那麼地方?
能否告知可參考的網頁或書籍,謝謝!

回覆
進階會員

有空來這邊看看..

http://aerosol.ev.ncku.edu.tw/~vbird/
回覆
會員

ipcchains: protocol not available??
謝謝您告訴我這個網站!

不過當我下這個指令的時候
echo 1 > /proc/sys/net/ipv4/ip_forward (沒問題)
/sbin/ipchains -A forward -s 192.168.0.0/24 -J MASQ
卻出現這個訊號…
ipchains: protocol not available

請問各位高手,這是為什麼呢? 要如何解決?

RedHat Linux 7.3
GigaADSL 計時制

先謝囉~
回覆
johnsonlin999
訪客

我也是使用GAGA ADSL LINUX 7.1 作NAT

使用IPTABLES 製作SHEEL 如下

#!/bin/bash
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_conntrack_irc
modprobe ip_nat_ftp

### Init Rules ###
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z

### User Rules ###

iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.1.1/24 -j MASQUERADE
^^^^^^ 使用ADSL計時,固定IP換成eth0 or eth1

如需要執行檔可來信 [email protected]

回覆







 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。