Hello pluggers,

below is a rule that will forward all web packets to my web server inside my
seured network. I've seen this on my archive asking on how to have a web
werver inside a secured LAN and it works.

 iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 443 -s 0.0.0.0/0 -j
DNAT --to $your_web_server_ip:443
 iptables -A FORWARD -p TCP -d $your_web_server_ip --dport 443 -s
0.0.0.0/0 -j ACCEPT

my question is this, what if I want to retain my web server
(http://www.mydomain.com) facing the internet and at the same time running a
virtual host (http://jon.mydomain.com) inside my secured LAN ?


internet <----> WebServer(http://www.mydomain.com) <--------> VirtualHost
(http://jon.mydomain.com)


Thanks in advance and more power to PLUG

jon





_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to