473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Inside firewall access to outside firewall MySQL server

I have 2 Suse 9.1 boxes with similar configurations. I'm in the
process of moving some PHP code from one server (192.168.0.100) to
another (192.168.0.102). MySQL is running on each server, and the same
PHP code can access its respective localhost databases and make queries
with no problem.

However, the code on the old server (.100) can access a MySQL server
(12.xx.xx.50) outside the firewall (192.168.0.1), while the code on the
new server cannot.

There is NO firewall rule regarding the two servers -- they are NOT
being accessed from outside the firewall.

Give me an idea where to start looking for the cure to the problem.

Danny

Jul 23 '05 #1
6 2342
ds******@pcfa.org wrote:
Give me an idea where to start looking for the cure to the problem.


Have you granted access to MySQL from outside? For example by

grant all on databasename.* to username@'192.168.0.22' identified by
'password';
Jul 23 '05 #2

Can your new server access the internet at all?

Is the default route, gateway, and DNS information correct?

Try pinging the destination IP (12.xx.xx.50)...
Mike Argy
Custom Office solutions
and Windows/UNIX applications

On Sat, 05 Feb 2005 18:58:41 -0800, dstewar wrote:
I have 2 Suse 9.1 boxes with similar configurations. I'm in the
process of moving some PHP code from one server (192.168.0.100) to
another (192.168.0.102). MySQL is running on each server, and the same
PHP code can access its respective localhost databases and make queries
with no problem.

However, the code on the old server (.100) can access a MySQL server
(12.xx.xx.50) outside the firewall (192.168.0.1), while the code on the
new server cannot.

There is NO firewall rule regarding the two servers -- they are NOT
being accessed from outside the firewall.

Give me an idea where to start looking for the cure to the problem.

Danny


Jul 23 '05 #3

One other thing to check...

Try using a different private IP address. Your firewall may have DHCP
running, even if you are using static adresses on your lan, and may not
accept connections outside of its configured IP address range. Maybe .100
happens to be within its range and .102 isn't. Take your old server
offline for a few minutes and set the IP of the new server to 192.168.0.100.

Good luck!

Mike

On Sat, 05 Feb 2005 18:58:41 -0800, dstewar wrote:
I have 2 Suse 9.1 boxes with similar configurations. I'm in the
process of moving some PHP code from one server (192.168.0.100) to
another (192.168.0.102). MySQL is running on each server, and the same
PHP code can access its respective localhost databases and make queries
with no problem.

However, the code on the old server (.100) can access a MySQL server
(12.xx.xx.50) outside the firewall (192.168.0.1), while the code on the
new server cannot.

There is NO firewall rule regarding the two servers -- they are NOT
being accessed from outside the firewall.

Give me an idea where to start looking for the cure to the problem.

Danny


Jul 23 '05 #4
Aggro wrote:
ds******@pcfa.org wrote:
Give me an idea where to start looking for the cure to the problem.


Have you granted access to MySQL from outside? For example by

grant all on databasename.* to username@'192.168.0.22' identified by
'password';


I am using the same routines, including the same user names and
passwords, from the 2nd server. The MySQL server sees the same IP
address (the firewall IP number() for the new server as the old server.
So, there is not a difference, is there?

Jul 23 '05 #5
Mike A wrote:
Can your new server access the internet at all?

Is the default route, gateway, and DNS information correct?

Try pinging the destination IP (12.xx.xx.50)...


Yes, it's fine for all functions except accessing the MySQL database
server.

Jul 23 '05 #6
Mike A wrote:
One other thing to check...

Try using a different private IP address. Your firewall may have DHCP running, even if you are using static adresses on your lan, and may not accept connections outside of its configured IP address range. Maybe ..100 happens to be within its range and .102 isn't. Take your old server
offline for a few minutes and set the IP of the new server to 192.168.0.100.
Good luck!

Mike


I'm sure this is not a network issue. The netmask inside the firewall
is 255.255.255.0. DHCP is handled from one box inside the firewall
(not the firewall). There are only a few DHCP addresses and all are
above .200 .

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Greg Scharlemann | last post by:
I have written an applet that connects to a MySQL database on port 3306. The problem is, the hosting service that I am using will not open that port on their firewall because they don't want...
4
by: adnan alsamari | last post by:
I am running mysql on a windows system, and last night I installed a firewall. Now I can not access mysql anymore. I get error 2003: cant connect to mysql server on 'localhost' (10061). Anyone...
2
by: Rajesh Kapur | last post by:
Hello, We use Informix and MySQL on linux/unix to drive our web application. SQL*Server is used only for backend enterprise applications within the firewall. I am trying to get the management to...
0
by: Jason Shohet | last post by:
I've got web services that work fine on a machine on our network, but not a single IIS box in our DMZ, neither 2003 or 2000. I don't have remote access to these machines, so I have to deploye with...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
3
by: Kevin Killion | last post by:
I've recently features to a system by making use of some simple MySQL access routines. It works fine at most test locations, correctkly accessing a MySQL database on an internet server. ...
1
by: mscertified | last post by:
We are developing a web app that will be used by emloyees (from our internal network inside the firewall) and by non-employees (from outside our network and firewall). We'd like to be able to...
1
by: Mad Scientist Jr | last post by:
For some reason I can't get a WebClient to access an outside URL from behind our firewall. The code works when it runs outside the firewall. I turned on windows authentication in the web.config...
1
by: DGettins | last post by:
Hi, I'm posting this here as this concerns an ASP classic page, and I'm hoping to solve it at the application level. Scenario below. Two servers, 1. SQL server inside our domain. Also has IIS...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.