Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to integrate with a SOAP Web Service that requires that the requests come from a whitelisted IP address.

As I often do development from all over the place it is quite annoying to ask for a new whitelisted IP each time.

I have a remote server that is whitelisted. How can I route my SOAP request (I can change the endpoint in the WSDL) to my remote machine and have that forwarded to the Web Service?

My remote server is used for other things so it needs to only forward a specific port, not all traffic.

Oh, and the Web Service expects SSL.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I ended up installing tinyproxy on the whitelisted machine

sudo apt-get install tinyproxy

Then I added my computer's external IP address to the config at /etc/tinyproxy.conf as only local host was allowed to proxy by default.

Finally, I set the PHP SOAP client to point to the proxy:

$client = new SoapClient("some.wsdl", array('proxy_host' => "myserver.com", 'proxy_port' => 7676));

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.