[ 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
> john.domain.com(:80) forwarded to
> ftp.domain.com:21 forwarded to
> ftp2.domain.com:21 forwarded to
> 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