[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 1 External IP + Router 3com 812 + Debian with 2 internal IPs (port 80)



On Wed, Sep 11, 2002 at 04:31:41PM +0200, I?aki Mart?nez wrote:
> Hi!!!
> 
>  The subject is NOT as explicit as i wanted....sorry......
> 
>  I have the following......
> 
>  * Router 3Com 812 DSL
>    ext_r with 1 fixed IP (EXTERNAL)
>    int_r internal IP of the router
> 
>  * Debian server with 2 internal IPs (only 1 NIC).
>    int_1 = 192.168.200.100 = www.my_domain.com
>    int_2 = 192.168.200.200 = www.my_domain.com (a modified copy)
> 
>  * Work Desktop PC
>    int_3 = 192.168.200.50
> 
> 
> 
>  internet <--->  (ext_r) router (int_r) <--+-------> (int_1/2) Server
>                                            |
>                                            +-------> (int_3) Desktop PC
> 
>  In the router i have configured and working:
>    NAT ->  ext_r 80 -> int_1 80
> 
>  In my own DNS i have configured and working  www.my_domain.com, so
> i can see the web, all over the world, int_1, the correct site.
> 
>  Well, now i am doing changes to the site but in the int_2 IP, the modified
> copy of the site, so when i am in my desktop PC i can see the "good" site
> via DNS or the "modified site" changing the file /etc/hosts pointing the
> domain to the int_2.
> 
>  This is correct...... if i am at home, but when i am at work?????
> 
>  How can i access to the (modified) site in int_2 from internet??

Use a different approach.  Instead of binding 2 IP addresses to your
server, run each web site on a different port (www.my_domain.com on
port 80, www.my_domain.com (a modified copy) on port 8080, or
whatever).

I am assuming your are talking about HTTP access based on the wording
of the question.

-- 
Nathan Norman - Micromuse Ltd. mailto:nnorman@micromuse.com
  The best we can hope for concerning the people at large is that
  they be properly armed.
          -- Alexander Hamilton



Reply to: