[ previous ] [ next ] [ threads ]
 
 From:  "James W. McKeand" <james at mckeand dot biz>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  RE: [m0n0wall] hostnames+NAT
 Date:  Wed, 12 Oct 2005 19:25:53 -0500
Hans Maaherra wrote:
> Hello
> I own a domain name, and now it is assigned to my m0n0wall's ip.
> 
> Is there a way to get for example
> www.domain.com(:80) forwarded to 192.168.0.2:80
> john.domain.com(:80) forwarded to 192.168.0.3:80
> ftp.domain.com:21 forwarded to 192.168.0.4:21
> ftp2.domain.com:21 forwarded to 192.168.0.5:21
> and so on?

Only if you have more than one IP for the WAN on your m0n0wall. 

First thing is to add the additional IPs to the WAN interface. This can
be accomplished using Server NAT. 

Next, you can set Inbound NATs for the additional IP. Each of the
external IPs can be NATed to different internal hosts. You can use a
single external IP to different internal IPs for different services (www
and ftp to public IP 1 goes to different internal IPs .2 and .3)

Finally you will need to make changes in your DNS for your Domain. You
can assign public IP 1 to www.domain.com, public IP 2 to
john.domain.com, etc.

_________________________________
James W. McKeand