RE: [PHP] Secure MySQL connections in PHP with 'stunnel'
| From: | Richard Archer | Date: | Mon, 29 Apr 2002 21:37:18 +0000 |
| Subject: | RE: [PHP] Secure MySQL connections in PHP with 'stunnel' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95280@lists.php.net to get a copy of this message | ||
At 11:48 AM -0400 29/4/02, SHEETS,JASON (Non-HP-Boise,ex1) wrote:
>SERVERA (master)
>/usr/local/sbin/stunnel -f -P/tmp/ -c -d 3308 -r SERVERA:3307
Shouldn't this end with -r SERVERB:3307
i.e. you listen on port local:3308 and forward to SERVERB:3307
SERVERB then listens to local:3307 and forwards to local:3306.
>/usr/local/sbin/stunnel -f -P/tmp/ -p /usr/local/ssl/certs/stunnel.pem -d
>3307 -r 3306
>
>SERVERB (slave)
>/usr/local/sbin/stunnel -f -P/tmp/ -c -d 3308 -r SERVERB:3307
And ditto.
>/usr/local/sbin/stunnel -f -P/tmp/ -p /usr/local/ssl/certs/stunnel.pem -d
>3307 -r 3306
...R.