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



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.
.



Relevant Pages

  • Large file manipulation
    ... I have a problem regarding a 100Mb file and PHP. ... I can get it to the server no problem. ... Then I tried reading 500 lines, closing the file reading the next 500 etc ... Finally I tried 'LOAD DATA' MySQL command which I haven't sussed out yet ...
    (alt.php)
  • Re: FreeBSD 2 nic one to route one to DB - how do I?
    ... The second nic should route to the DB server. ... but i didn't understand it:/ mayby I have been reading to little. ... Not sure of the config file with MySQL but with regards to apache. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: mysql_connect failed in apache 5.0.22
    ... MySQL 4.x use a newer authentication, ... Should I try PHP 5.0.2 or downgrade apache? ... Shutdown the MySQL server, look for the MySQL config file (It's usually ...
    (comp.lang.php)
  • Re: Database stuff!
    ... I've been reading mysql.com, but I can't even seem to test if the server ... I type this in the Windows command prompt: ... Still don't know much about MySQL, but maybe you need to run mysqld-nt.exe. ...
    (comp.lang.ruby)
  • CEICW Fails at RegisterMSBOExchangeBP
    ... Ethernet adapter Server Local Area Connection: ... Call to Reading hardware selection returned ok. ... calling CNetCommit::ValidateRouterConnectionProperties. ... Call to Reading preferred DNS server IP returned ok. ...
    (microsoft.public.windows.server.sbs)