NAT port mapping一問 - Linux

By Mary
at 2011-08-31T18:32
at 2011-08-31T18:32
Table of Contents
┌eth0(Wan)---->小烏龜
Linux 主機(雙網卡)│
└eth1 (Lan)(192.168.1.10) ----┌ Server-1(192.168.1.20)
port 80 web service
│
└ PC-1(192.168.1.30)
Linux主機當Gateway,並做NAT port mapping,但有個問題想請教各位
在iptables下設定,將80 port 轉到後端的Server-1 80 port去,
-A PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.1.20:80
從外部連到Server-1,所提供的web服務一且正常,但是從Server-1、PC-1連出去internet
的web都打不開,
DNS解析沒問題,對外路由也沒問題,但就是打不開.
我在想是internet回來的80 port 封包都全轉到Server-1的80port去了
想請問各位是否有遇過這樣的問題?謝謝大家
--
Linux 主機(雙網卡)│
└eth1 (Lan)(192.168.1.10) ----┌ Server-1(192.168.1.20)
port 80 web service
│
└ PC-1(192.168.1.30)
Linux主機當Gateway,並做NAT port mapping,但有個問題想請教各位
在iptables下設定,將80 port 轉到後端的Server-1 80 port去,
-A PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.1.20:80
從外部連到Server-1,所提供的web服務一且正常,但是從Server-1、PC-1連出去internet
的web都打不開,
DNS解析沒問題,對外路由也沒問題,但就是打不開.
我在想是internet回來的80 port 封包都全轉到Server-1的80port去了
想請問各位是否有遇過這樣的問題?謝謝大家
--
Tags:
Linux
All Comments

By Skylar Davis
at 2011-09-01T01:31
at 2011-09-01T01:31

By David
at 2011-09-05T15:18
at 2011-09-05T15:18

By George
at 2011-09-10T03:05
at 2011-09-10T03:05

By Mason
at 2011-09-10T16:34
at 2011-09-10T16:34

By Hedda
at 2011-09-14T19:24
at 2011-09-14T19:24

By Poppy
at 2011-09-16T01:43
at 2011-09-16T01:43

By Hardy
at 2011-09-18T14:26
at 2011-09-18T14:26

By Zora
at 2011-09-21T07:47
at 2011-09-21T07:47

By Ursula
at 2011-09-24T00:23
at 2011-09-24T00:23

By Emma
at 2011-09-26T07:59
at 2011-09-26T07:59

By Sarah
at 2011-09-27T03:08
at 2011-09-27T03:08
Related Posts
分割TAR在linux上解壓縮?

By Edwina
at 2011-08-31T08:44
at 2011-08-31T08:44
alias [change dir]

By Suhail Hany
at 2011-08-31T08:42
at 2011-08-31T08:42
CentOS iptables 問題

By Freda
at 2011-08-31T02:19
at 2011-08-31T02:19
CentOS 6 使用 VirtualBox 抓不到網路卡

By Kristin
at 2011-08-31T01:45
at 2011-08-31T01:45
Atomeye的安裝

By Ophelia
at 2011-08-31T01:34
at 2011-08-31T01:34