iptables DNAT 無法正常使用 - Linux
By Jessica
at 2013-03-28T18:00
at 2013-03-28T18:00
Table of Contents
※ [本文轉錄自 Network 看板 #1HL1I6OD ]
作者: b60413 (None) 看板: Network
標題: [問答] iptables DNAT 無法正常使用
時間: Thu Mar 28 17:59:28 2013
今天嘗試再做DNAT,使用下面指令一直無法成功,
-t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.100.2:80
也確定/proc/sys/net/ipv4/ip_forward的值為1,
目前主機是使用Virtual Box 4.2.6所建置的,
作業系統皆是使用Ubuntu 12.04與iptables 1.4.12,
拜過Google後說上面的環境使用iptable nat好像有問題?
於是嘗試自己編iptables 1.4.18,
但仍然無法正常運作,
不知道問題到底出在哪?
煩請高手幫忙看一下,謝謝.
192.168.100.2 為單純的Web Server,沒有設定任何防火牆與iptables rule
eth0 => 10.0.2.15
eth1 => 192.168.100.2
gateway => 10.0.2.2
192.168.100.7 要做DNAT的機器
eth0 => 10.0.2.15
eth1 => 192.168.100.7
gateway => 10.0.2.2
--
http://www.myspace.com/soundtrack0220
--
作者: b60413 (None) 看板: Network
標題: [問答] iptables DNAT 無法正常使用
時間: Thu Mar 28 17:59:28 2013
今天嘗試再做DNAT,使用下面指令一直無法成功,
-t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.100.2:80
也確定/proc/sys/net/ipv4/ip_forward的值為1,
目前主機是使用Virtual Box 4.2.6所建置的,
作業系統皆是使用Ubuntu 12.04與iptables 1.4.12,
拜過Google後說上面的環境使用iptable nat好像有問題?
於是嘗試自己編iptables 1.4.18,
但仍然無法正常運作,
不知道問題到底出在哪?
煩請高手幫忙看一下,謝謝.
192.168.100.2 為單純的Web Server,沒有設定任何防火牆與iptables rule
eth0 => 10.0.2.15
eth1 => 192.168.100.2
gateway => 10.0.2.2
192.168.100.7 要做DNAT的機器
eth0 => 10.0.2.15
eth1 => 192.168.100.7
gateway => 10.0.2.2
--
http://www.myspace.com/soundtrack0220
--
Tags:
Linux
All Comments
By Yuri
at 2013-04-02T17:12
at 2013-04-02T17:12
By Megan
at 2013-04-03T20:04
at 2013-04-03T20:04
By Hardy
at 2013-04-04T06:25
at 2013-04-04T06:25
By Lucy
at 2013-04-05T03:26
at 2013-04-05T03:26
By Queena
at 2013-04-08T02:03
at 2013-04-08T02:03
By Ursula
at 2013-04-09T08:52
at 2013-04-09T08:52
By Adele
at 2013-04-10T07:40
at 2013-04-10T07:40
By Caitlin
at 2013-04-14T01:02
at 2013-04-14T01:02
By Madame
at 2013-04-14T16:18
at 2013-04-14T16:18
Related Posts
Scientific Linux 5.6 網路無法設定
By Lucy
at 2013-03-27T17:30
at 2013-03-27T17:30
在LINUX底下,有類似Autohotkey的軟體嗎?
By Frederica
at 2013-03-27T02:02
at 2013-03-27T02:02
請問裝usb搖桿會造成cpu衝高嗎?
By Ophelia
at 2013-03-27T01:42
at 2013-03-27T01:42
IPMI以及虛擬機器的疑問
By Edward Lewis
at 2013-03-26T23:33
at 2013-03-26T23:33
有人也遇過 ext4 損毀的問題嗎@@?
By Blanche
at 2013-03-26T22:00
at 2013-03-26T22:00