John Hebert wrote:
>--- Wade <[EMAIL PROTECTED]> wrote:
>
>
>>I figured I'll see if someone can help me out with
>>my network.
>>At the moment my setup looks like this.
>>
>>cable modem -> hub ( 3 ips from cox) ->
>> 1st IP goes to 1st server
>> 2nd IP goes to 2nd server
>> 3rd IP goes to linksys router/home lan
>>
>>What I'm looking to do is replace the hub with a
>>openbsd box.
>>
>>
>
>While I like OpenBSD a lot, I think you can do the
>same thing with Linux. But, let's answer your
>question...
>
>
>
>>I have obsd setup, but I'm having trouble
>>configuring the box.
>>
>>
>
>Yup. OpenBSD is not newbie friendly, and the OpenBSD
>developers like it that way. ;)
>
>
>
>>The box has two nics in it.
>>rl0=internet
>>xl0=lan
>>
>>I have setup 3 aliases( 3 ip's from cox) for rl0
>>Do I also need to add routes for each external ip to
>>the lan ip or can I
>>just use pf/nat to do this?
>>
>>
>
>I would try to use pf, though I'm not exactly sure how
>to redirect all port traffic going to an external IP
>to an internal IP. I know that rdr (redirect) can be
>used to redirect specific port traffic:
>rdr on tl0 proto tcp from 27.146.49.0/24 to any port
>80 -> \
> 192.168.1.20
>
>Try looking through the PF User's Guide in the section
>on rdr:
>http://www.openbsd.org/faq/pf/rdr.html#filter
>
>Anybody else know how to solve this problem?
>
>John
>
>
>
>
After looking at the NAT page i found this:
Bidirectional Mapping (1:1 mapping)
A bidirectional mapping can be established by using the binat rule. A
binat rule establishes a one to one mapping between an internal IP
address and an external address. This can be useful, for example, to
provide a web server on the internal network with its own external IP
address.
Example:
web_serv_int = "192.168.1.100"
web_serv_ext = "24.5.0.6"
binat on tl0 from $web_serv_int to any -> $web_serv_ext
This might work for me.