回文章列表
作者jlovet.bbs@ptt.cc (Want 2 see u no more) 看板: linux
標題Re: [問題] iptables 想做轉傳的功能eth0→eth1
時間批踢踢實業 (2008/06/19 Thu 15:03:14)
※ 引述《vinwo (不chess 不象棋)》之銘言:
: 現在eth0接到一般的網路中
: 而我想把從eth0進來的UDP封包
: 由eth1轉送出去
: 以下是我想到的方式..
: iptables -A INPUT -p UDP -j XXXXXXXX
:                            ↑↑↑↑↑↑  卡關= =
: 但是網路上找不到有什麼方式可以轉傳interface ...
: 想問大家有沒有好方式可以做....
不能這樣作,這樣作也沒什麼意義
要依照哪個interface出去
是按照destination address,routing table決定

如果你堅持要這樣,繞過Layer 3的routing protocol
那就用 Ethernet Bridge

--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 140.123.102.254
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻