Hello, my ISP has given me a slash 4 (2 dedicated IP addresses that are internet routable) . I used to have 1 IP address that ran as a "router"/firewall/webserver. I'd like to add a second webserver/mail server into the mix, but can't figure out how to route this using freebsd (I'm sure I could buy a switch, ask for a slash 8, and get enough IP addresses to work, but wondering if I can do this instead with just two IP addresses and freebsd).
Today I have:
I'd like to do:
The FreeBSD router has 3 Nic cards in it, one for the external gateway, one for the internal NAT, and the third for "routing" to the new Webserver.
What I'd "like" to do is just be able to plug an ethernet cable into the 3rd NIC on the router, and connect to the NIC on the webserver, but I'm having problem figuring out the routing.
If I alias the new IP address 204.228.x.23 to the gateways NIC, I can ping it externally. If I add the 204.228.x.23 to the third nic (also on the gateway server) I can ping it externally too. I just don't know how to make the next jump of moving that IP address off the gateway server onto a webserver, and what do I assign that third nic on the gateway machine? I want it to act as a "switch" and just pass the connection through w/out tying it to an IP address. Do I bridge the gateway NIC to the third NIC, or do I have to do something different like maybe assign the third nic the external IP address, give the webserver a new 172.16. network and do and IPF redirect out to the webserver?
I'd like to keep traffic ideally off my current intranet. I think/hope this is easy and I just need to be pointed in the right direction.
thanks
Today I have:
Code:
204.228.x.22
ISP --> FreeBSD Router via PPPoE (Tun0) --> 172.16. NAT
Code:
204.228.x.22
ISP --> FreeBSD Router via PPPoE --> 172.16. NAT
|
|
Webserver (204.228.x.23
The FreeBSD router has 3 Nic cards in it, one for the external gateway, one for the internal NAT, and the third for "routing" to the new Webserver.
What I'd "like" to do is just be able to plug an ethernet cable into the 3rd NIC on the router, and connect to the NIC on the webserver, but I'm having problem figuring out the routing.
If I alias the new IP address 204.228.x.23 to the gateways NIC, I can ping it externally. If I add the 204.228.x.23 to the third nic (also on the gateway server) I can ping it externally too. I just don't know how to make the next jump of moving that IP address off the gateway server onto a webserver, and what do I assign that third nic on the gateway machine? I want it to act as a "switch" and just pass the connection through w/out tying it to an IP address. Do I bridge the gateway NIC to the third NIC, or do I have to do something different like maybe assign the third nic the external IP address, give the webserver a new 172.16. network and do and IPF redirect out to the webserver?
I'd like to keep traffic ideally off my current intranet. I think/hope this is easy and I just need to be pointed in the right direction.
thanks