YAFLogo

jmcsmith
  • jmcsmith
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
Good Afternoon,

I am looking to install YAF on a site where the web server does not have direct access to the sql server.

The web server is in the DMZ and all existing sites/services have to hit a webservice on another server. That webservice is what has access to the sql server.

Is there a way to make YAF work with this setup?

Thanks

Joe

Sponsor
squirrel
11 years ago
using db.config - YAF uses ASP.NET/SQL Native Client depending on server version. Remote SQL databases are possible.


<add name="yafnet" 
     connectionString="server={{server_IP}};User Id={{database_userID}};Password={{database_password}};Trusted_Connection=False;database={{database_name}};" 
     providerName="System.Data.SqlClient" />

Replace double-braces and text inside with needed values - open ~/forumroot/install/default.aspx and test your database connection - if success, close installer - if error, verify db.config against SQL connection information. You would have to setup secured method for public server to communicate with firewalled SQL server, but that is at Server level, not YAF level. An option for this might be a software VPN connection between the two or something along those lines (alternate HIGH public port opened and routed to SQL Server machine) - other option would be IDS based system that screens traffic between two machines (this will cause performance hit at some point - same with VPN connection - extra work monitoring traffic) - alternate port will be highest performance IMO... Or you can install 'express' version of SQL on public server, block it from talking to outside world - just IIS allowed - and keep YAF database seperate from firewalled systems. Backup process could be spooled on schedule to retain DB backups to firewalled datastore or NAS as well...


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
jmcsmith
  • jmcsmith
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
squirrel,

unfortunately the options you mentioned are not possible in my current situation. The only way I am allowed to access data is through a web service. All user data must be behind the firewall.

squirrel
11 years ago
You might have to write your own data provider for that - that would be my guess. Jaben or bbobb would have a better answer for that --


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
11 years ago

unfortunately the options you mentioned are not possible in my current situation. The only way I am allowed to access data is through a web service. All user data must be behind the firewall.

Originally Posted by: jmcsmith 

This is not a soft problem but a server administrator problem. There's no a reason for a server admin to close a database port with security in mind.

You should have an opened port, password and login name + SSL if supported - this is enough for any security. Another measure can be a specific IP address.

I think the server has a bad administrator, that is not a problem of ours.

squirrel
11 years ago

unfortunately the options you mentioned are not possible in my current situation. The only way I am allowed to access data is through a web service. All user data must be behind the firewall.

Originally Posted by: bbobb 

This is not a soft problem but a server administrator problem. There's no a reason for a server admin to close a database port with security in mind.

You should have an opened port, password and login name + SSL if supported - this is enough for any security. Another measure can be a specific IP address.

I think the server has a bad administrator, that is not a problem of ours.

Originally Posted by: jmcsmith 

Kinda my thoughts -- a VPN between the public box and private server would be fastest down and dirty way without exposing the backend server behind a firewall. Used that trick hundreds of times on server configs --


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend