Re: FreeBSD 2 nic one to route one to DB - how do I?



Who Know wrote:
"Edward Salonia" <esalonia@xxxxxxxxx> wrote in message news:ztydnRCD2YEbI2nZnZ2dnUVZ_r2dnZ2d@xxxxxxxxxxxxxxx
Who Know wrote:
I have a lovely server whit two nics. I want to "abuse" them both :)

The first nic should handle the normal www traffic (The outsite card)
The second nic should route to the DB server.

My OS is FreeBSD 6.1-RELEASE
www= Apache 2.2

The DB is Mysql 5.x

My IP-Addresses is 87.52.171.128/24 and the IP to the first nic is 87.52.171.131

How do I set this up to force the second nic only to get to the DB server (Only one nic installed)

Other hardware to use for networking build is two swicthes One fare better than the second, therefore I'll prefere to only use that one. One Cisco router.

I have been reading a lot on this site http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html but i didn't understand it :/ mayby I have been reading to little.

Please give me the exact scipting lines and setup (For dummies)


Not sure of the config file with MySQL but with regards to apache. There is a directive to specify what address/nic it will listen on. I would guess the same goes for the sql config file.

My sitution is better explained here:
http://www.vbulletin.org/forum/showthread.php?t=111191

or if you can't access the page you can see a copy here:

http://gndindex.com/showthread.php?p=3410#post3410


Oh ok, I didn't understand fully... It seems to me, and I could be wrong. But I dont think you need a public IP for the DB server. Just put the DB server and the second nic on the webserver on its own private network. I think that will work since the Web server will be talking to the db server, not the public clients accessing the site... As for routing, you should have to do anythign special since from the point of view of the web server, it will be able to hit both networks it is attached to.

for example. the webserver will have 2 nic's (1 has pub ip for http access) (1 for private net between itself and db server for db connect)

priv nic on webserver 192.168.1.1 255.255.255.252
nic on db server 192.168.132.2 255.255.255.252

Am I any closer to understanding what you want to do?
.



Relevant Pages

  • RE: Web Server on SBS Domain
    ... > webserver behind your SBS just like how the SBS Setup configures RWW and OWA. ... >> Im currently running a web server box in my SBS2003 domain. ...
    (microsoft.public.windows.server.sbs)
  • Re: Basic Question (dumb) regarding security
    ... It is not ok to host a public website on your SBS, but it is ok to host ... setup the network and the webserver properly so that only appropriate ... It would be less secure or meaningful to open more holes in ISA so ... Since ISA is an application server, ...
    (microsoft.public.windows.server.sbs)
  • Re: Web server and router problem WEIRD
    ... Two pcs are connected to this device.. ... The pcs are configured with their fixed ips and the gateway/DSN server ... On one of these two pcs I have installed a webserver, ... You must use the LAN IP that the Web server is using to access the machine from another machine on the LAN. ...
    (comp.security.firewalls)
  • Re: hide ip address of website (no domain name)
    ... > webserver from any other programs/scanners/etc? ... > will proxy server installed on the box or using host ... > various parts of it that are not on port 80. ... How about installing on of the open source firewalls in front of it and ...
    (Security-Basics)
  • RE: ViewState vs. Database
    ... webserver, but that seems like the best performance to cost ratio I can come ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... to server, webserver, server to database server..). ...
    (microsoft.public.dotnet.general)