NAT vs Public IP Range info needed, please
stacey at vickiandstacey.com
Sat Jun 12 13:31:36 PDT 2004
Thanks for replying.
----- Original Message -----
From: "Kevin Stevens <freebsd at pursued-with.net>"
To: To Stacey Roberts
Date: Sat, 12 Jun, 2004 20:11 BST
Subject: Re: NAT vs Public IP Range info needed, please
> On Jun 12, 2004, at 09:46, Stacey Roberts wrote:
> >The ISP's DSL package includes 8 static ip addresses: -
> >1 - network addr
> >1 - broadcast addr
> >1 "router" address
> >5 usable ip addresses
> >The -redirect_address syntax is as follows:
> >-redirect_address localIP publicIP
> >localIP The internal IP address of the LAN client.
> >publicIP The external IP address corresponding to the LAN
> >What I would like to know is if it is possible to do to following: -
> >Given that the 5 usable public IP's are: 22.214.171.124, 126.96.36.199, 188.8.131.52,
> >184.108.40.206 & 220.127.116.11
> >1] G'Way host is assigned its own public IP - 18.104.22.168
> >2] LAN hosts' (all) traffic is NAT'd using one of the other public
> >IP's - 22.214.171.124
> >3] Remaining 4 public IP addresses are left to be used other purposes
> >(eg: "true" address redirection to a DMZ-host, that is not a member of
> >the internal LAN subnet)
> Not sure I understand (it would help if you used a real public /29 to
> illustrate, your example doesn't follow legal subnet rules). in 1)
> above, the gateway host ip has to come out of the usable address pool,
> which you designate .4 - .8. So in 1) you could have the gateway IP as
> .4. In 2) You have .5 assigned for many-one NATing (in the Linux world
> they'd call this ip masquerading). In 3) you'd have THREE public
> addressed left that could be used for one-one NAT.
Well.., despite the actual IP addresses used, you've got the general picture correct there. What I'm after is to be able to define an IP address that is *not* that which is assigned to the publicly-facing interface of the gateway as the nat ip address for internal lan hosts.
> >As you see, the g'way's public ip is not being used for NAT'ing
> >internal hosts' outgoing traffic, but another ip from within the
> >assignied public ip address range. My reading of the NAT chapter does
> >not suggest that there is a way to define the public IP with which
> >traffic is to be translate. Is this functionality not supported, or
> >have I missed something when reading the various sections?
> It is AFAIK, they just don't use it in the example.
I've seen your follow-up mail arrive, where you've included the pointer to the alias -switch to natd(8). Cheers for that.., I'll have a read and try to work this out.
Thanks again for taking the time.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 466 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040612/11538415/attachment-0001.bin
More information about the freebsd-questions