View Full Version : Port forwarding to different server?
NC_TOM
June 25th, 2001, 20:20
Hey,
Does anyone know how to forward a connection to a port on Server 1 so that it connects with the same port on Server 2?
Like for having MySQL on a separate server but still allowing the user to connect to the same server for all aspects of their account.
I know it can be done; can anyone help me out?
Thanks!
red_zinc
June 26th, 2001, 01:31
Try (if your OS is UNIX)
man -k ...
where ... are/is keywords (port connection for example)
Better contact with comp.infosystems.www.servers.unix newsgroup. But they are very educated and one should be humble there (pleases are obligatory).
NC_TOM
June 26th, 2001, 02:06
Thanks a lot for your help!
use ipchains (linux) or ipfw (freebsd)
Fox
June 26th, 2001, 17:18
What we want to do is:
when somebody types localhost:3306 (on 216.12.210.4) it redirects them to mysql ( 216.12.210.22:3306 )
also any idea on how to allow mysql to accept connections from IP 216.12.210.4?
thanks!
e-mail Alex@KelmNetwork.com with a response :D
red_zinc
June 27th, 2001, 13:22
As I've understood you'd like to do the same as f2s did.
They have mySQL db at a different server. I set phpBB there and at the time of configuration install.php asked the server name to write it in the config.php. So it enough to perform connection to the other server:
mysql_connect("servername:port", "username", "password")
From DB FAQ f2s : Remote access via client database utilities is not possible as the databases are located behind a firewall.
If it is the case you are interested I can send phpinfo where there is their server settings to you with an e-mail.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.