The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Natd and LSNAT
Author: crallz 
Date:   22-11-02 21:38

Is it possible to setup nat to redirect certain domain names to certain web servers on my local network. Right now I have all http requests going to 1 web server using the following arguments to natd

-redirect_port tcp 80 being my web server of course. I have another web server that I would like to start serving websites from but i'm having trouble trying to figure out how I can get some domain names to go to the second web server. I've been reading about LSNAT and server pooling but the argument given for server pooling in the natd man page doesn't seem to work. I tried to run it like this

natd -redirect_port tcp ww1:80,ww2:80

and i get an error about "aliasing address not given".... Any help on this would be much appreciated even if the answer is "No you can't do it"

If all else fails i'll just get 2 IP's for each web server i'm going to run. One for the gateway and one for the web server and just forward them that way.

Reply To This Message
 Re: Natd and LSNAT
Author: fianna 
Date:   25-11-02 15:30

i would suppose you might need an internal nameserver, or maybe set it up in your hosts file.? something like...

#external fianna gw

#internal fiannaGateway fiannaWebServ


Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum