如何用iptable設定server上轉到內部網路的mms - Linux

Table of Contents

我的電腦架構IP假設如下,

internet -> eth0 (1.2.3.4)
server
eth1 (192.168.100.1) -> pc(windows Media encoder)(192.168.100.2)

請問我server上的iptables要怎樣下指令將外面連進來的mms
轉到pc(windows Media encoder)那一台呢?

mms://1.2.3.4:8080

--
象迷 | 迷象反
|
(  ̄□ ̄)/喔~~喔喔~~喔喔~~喔喔~ 爪爪 | 象反 ~喔喔~~喔喔~~喔喔~~喔\( ̄□ ̄ )
|
|

--

All Comments

Andy avatarAndy2010-11-15
iptables -t nat -A PREROUTING -i eth0 -p (tcp/udp) --d
Eartha avatarEartha2010-11-15
port 8080 -j DNAT --to 192.168.100.2
Susan avatarSusan2010-11-16
還是不行耶,還有哪個地方需要檢查的嗎?
Lucy avatarLucy2010-11-17
我只給入相 出相你要活用 而不是只是死記而已
Edwina avatarEdwina2010-11-18
封包進來後 要怎麼出去 這段你要自己想 (這不難吧)
Una avatarUna2010-11-21
恩恩了解,我在想說是不是少了其他的指令,
Bethany avatarBethany2010-11-23
@@ 老毛病,drop忘記關掉~