iptables 做唔做呢樣野?

想請教下咁多位師兄, 唔知呢樣野做唔做到...
我想係 firewall 度做到以下 setting

www.abc.comwww.abc2.com 都用相同 ip address 及 80 port

User internet access www.abc.com > Firewall 接到 request www.abc.com > route 去 192.168.1.40 webserver

User internet acccess www.abc2.com > Firewall 接到 request www.abc2.com > route 去 192.168.1.41 webserver2

有冇可能做到的?

回復 1# kirafung


會唔會唔關IPTABLE 事

PC1:IP SETTING (IP: 192.168.1.41,192.168.1.42)

另外一樣野就系DNS LOOKUP 時候
WWW.ABC.COM >> 192.168.1.40
WWW.ABC2.COM >> 192.168.1.41

所以好似唔太關 FIREWALL 既事

TOP

回復  kirafung


會唔會唔關IPTABLE 事

PC1:IP SETTING (IP: 192.168.1.41,192.168.1.42)

另外一樣野就 ...
HKSAR 發表於 2013-6-3 12:25


我想係
PC1: 192.168.1.41
PC2: 192.168.1.42

經internet access 的話, 要靠 firewall

TOP

iptables cannot do that because the host name is already resolved to IP address before iptables sees the packet

TOP

Please search reverse proxy

TOP

Please search reverse proxy
ruri1234 發表於 2013-6-3 14:17



    唔該哂師兄 !

TOP