# Needing some serious help :P

**URL:** <https://www.ruby-forum.com/t/needing-some-serious-help-p/159035>\
**Category:** NGINX\
**Created:** [January 30, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/needing-some-serious-help-p/159035 "2009-01-30T17:33:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shamunda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@Shamunda](https://www.ruby-forum.com/u/Shamunda)\
**Post date:** [January 30, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/needing-some-serious-help-p/159035/1 "2009-01-30T17:33:53Z")

</div>

Hi All

Ok here’s my delima. I have nginx acting as my reverse proxy, and a  
backend IIS server assigned with multiple addresses.

nginx server address:

10.100.50.7

IIS server Addresses:

10.100.50.1  
10.100.50.2  
10.100.50.3

so everything coming in to 10.100.50.7 works fine and goes to the proper  
app server…However I also need the app server to make outbound  
connections as 10.100.50.7.

so here’s the map.

user request page \> nginx forwards to server \> iis processes request  
… this works perfectly.

However my application also needs to look up information from the users  
site without the user requesting it (security stuff)…

so i need something like

IIS app goes out to make request from 10.100.50.3 \> nginx needs to  
grab that identity and assign it the address of 10.100.50.7 \> user site  
accept request because 10.100.50.7 is a trusted IP.

How can this be accomplished? Right now all my request are being  
rejected but it’s passing the information through the default gateway  
not through nginx.

All help appreciated…

-Shamunda

\*\*\*\*\* Email confidentiality notice \*\*\*\*\*

30/1/2009

This message is private and confidential. If you have recieved this  
message in error, please notify us and remove it from your system.

---

<div class="post-metadata">

**Author:** ![Shamunda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@Shamunda](https://www.ruby-forum.com/u/Shamunda)\
**Post date:** [January 30, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/needing-some-serious-help-p/159035/2 "2009-01-30T20:04:14Z")

</div>

NginX is a reverse proxy, and it sounds like you might want a forward  
proxy.

---

<div class="post-metadata">

**Author:** ![Shamunda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@Shamunda](https://www.ruby-forum.com/u/Shamunda)\
**Post date:** [January 30, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/needing-some-serious-help-p/159035/3 "2009-01-30T23:16:10Z")

</div>

Yes, yes… I need both a forware and reverse proxy. Is nginx able to  
handle both rolls?

If so could you give me an example I can run with?

Thanks,

Sham
