|
|
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已! |
|
恭喜您是本站第 1730064
位訪客!
登入 | 註冊
|
|
|
|
發表者 |
討論內容 |
冷日 (冷日) |
發表時間:2005/2/19 20:23 |
- Webmaster

- 註冊日: 2008/2/19
- 來自:
- 發表數: 15773
|
- [轉貼]How to bind 2 WAN 1 LAN
- 這裡有一篇當年冷日發MAIL到IPTABLES的MAIL LIST的回覆!
裡面也有提到一些建議與方向,可參考一下!
<H1>How to bind 2 WAN 1 LAN ?</H1> George Vieira GeorgeV@citadelcomputer.com.au
Wed, 4 Dec 2002 08:04:11 +1100
You need a combination of iptables and iproute2 to do what you want because routing is based on it's DESTINATION address and you need to route on your SOURCE address so it uses a different route depending on which source IP is in the packet.. Refer to this page which is sort of what you want BUT not exact. It'll give you some ideas... http://www.samag.com/documents/s=3D1824/sam0201h/ Thanks, ____________________________________________ George Vieira Systems Manager georgev@citadelcomputer.com.au=20 Citadel Computer Systems Pty Ltd Phone : +61 2 9955 2644 HelpDesk: +61 2 9955 2698 =20 http://www.citadelcomputer.com.au -----Original Message----- From: raykey@dinyi.com.tw [mailto:raykey@dinyi.com.tw] Sent: Thursday, 24 October 2002 3:25 PM To: netfilter-announce@lists.netfilter.org Cc: netfilter@lists.samba.org Subject: How to bind 2 WAN 1 LAN ? Dear all... I'm a Chinese and I don't think that my English is well . But I have a big problem in use IPTABLES . I've looked all the documents and FAQs , but I can't find a solution to solve my problem . At last I decide to ask you in my poor English ...^^|| I have a Linux server (Turbo Linux7.0 in kernel 2.4.9-3) to be my NAT server . I have make it running iptables-1.2.2-6 . It have 3 NIC(Network interface Card) eth0.eth1.eth2 . I have 1 LAN and 2 WAN interface they are 192.168.1.0/255.255.255.0 and 2 ADSL (one of my ADSL is pppoe another one is static IP) . Now I want to bind thy all in my NAT server . I rty to cut my LAN to 4 part are 192.168.1.0/255.255.255.192 & 192.168.1.64/255.255.255.192 & 192.168.1.128/255.255.255.192 & 192.168.1.192/255.255.255.192 . That I wish the preceding 3 part go out and in with the pppoe ADSL (ppp0) and the final part go through with static IP(because they are my servers) . My biggest problem is in Linux I can't set the default gateway otherwise the ppp0 will not work . But if ppp0 is working I can't find who to make my final part (192.168.1.192/26) go through the eth0 out or aome in...-.-" I have do my best to explain my problem . If you can't understand my question maybe can find somebody who know my English or can talk in Chinese will better . Sincerely yours thanks a lot...^^ ------------------------------ =B9=A9=A9=F6=A6L=A8=EA=B8=EA=B0T=AB=C7 Dinyi Printing CO. LTD RaykeySu raykey@dinyi.com.tw ------------------------------
|
|
|
討論串
-
[分享]簡易 NAT 伺服器 (冷日 (冷日), 2005/2/19 19:51)
-
[分享]PROXY.IP Masquerading.Transparent Proxy.工作原理 (冷日 (冷日), 2005/2/19 19:58)
-
[分享]iptables/chains + squid transparent proxy (冷日 (冷日), 2005/2/19 20:05)
-
[分享]使用 iptables 設定使用 NAT 分享網路頻寬 (冷日 (冷日), 2005/2/19 20:06)
-
[分享]使用 iptables 設定一些安全防護功能 (1) (冷日 (冷日), 2005/2/19 20:08)
-
[分享]使用 iptables 設定一些安全防護功能 (2) (冷日 (冷日), 2005/2/19 20:11)
-
[分享]使用 iptables 設定一些安全防護功能 (3) (冷日 (冷日), 2005/2/19 20:12)
-
[分享]IPtables與防火牆 (冷日 (冷日), 2005/2/19 20:18)
- »
[轉貼]How to bind 2 WAN 1 LAN (冷日 (冷日), 2005/2/19 20:23)
-
[分享]Linux 上多條對外連線(Multi-Path)實作 (冷日 (冷日), 2005/2/19 20:26)
-
[分享]iptables ─ 功能看齊 enterprise 防火牆 (冷日 (冷日), 2005/2/25 14:52)
-
[分享]iptables經典設置 (冷日 (冷日), 2005/5/18 19:42)
-
[分享]iptables動態NAT對應測試 (冷日 (冷日), 2005/11/4 6:44)
-
[分享]一張網卡 bind 兩個不同網段的 IP (冷日 (冷日), 2005/11/4 7:00)
-
[分享]Linux 指令簡單將攻擊IP列入iptables 限制範圍 (冷日 (冷日), 2008/4/24 6:21)
-
[轉貼]防 ssh 暴力攻擊 使用iptables & shell (冷日 (冷日), 2010/3/29 10:12)
-
[轉貼]自動擋掉嘗試用ssh入侵Linux的攻擊者IP (冷日 (冷日), 2010/3/29 10:16)
|