Setup WP proxy to use SSH tunnel
-
[ Moderator note: moved to Fixing WordPress. ]
Hello,
our webserver completely behind a firewall. I cannot directly connect from it to any other server outside of the firewall. However, I can create a dynamic SSH tunnel. It should be possible to use this tunnel to install WP plugins or to use the wp-to-twitter plugin. Unfortunately, I don’t know how to setup the proxy config in the wp-config.php. My current setting is
define('WP_PROXY_HOST', ''); define('WP_PROXY_PORT', '8080'); define('WP_PROXY_USERNAME', ''); define('WP_PROXY_PASSWORD', ''); define('WP_PROXY_BYPASS_HOSTS', 'localhost'); define('WP_USEPROXY','TRUE');
but it is not working. The tunnel itself is prepared separately by
ssh -D 8080 my-tunnel-server
using ssh-keys (thus, no password necessary).If I would use curl, th should then be
curl -x socks5://localhost:8080 $destination_URL
Can anyone tell me how to setup the wp-config.php correctly? Thank you very much in advance!
Pucicu
- The topic ‘Setup WP proxy to use SSH tunnel’ is closed to new replies.