• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HttpProxy working but wrong outbound IP

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using the HttpProxy servlet that comes with Resin. It is working except for one unexpected issue. It is running on a multihomed system. It is listening on the proper IP ort but when it forwards the requests it is using the default IP of the system instead of the IP it is confingured to listen on.

The documentation is nearly non-existent on this class. I have the values shown below my configuration. Maybe there is an additional parameter that will address the issue but I cannot find it. It is listening on 64.111.222.111 but when it forwards to the target that host sees the request coming from the default IP of the system and not 64.111.222.111 as one would expect.

<http server-id="" host="64.111.222.111" port="8090" virtual-host="locator" />

<host id='locator'>
<document-directory>locator</document-directory>

<servlet>
<servlet-name>http-proxy</servlet-name>
<servlet-class>com.caucho.servlets.HttpProxyServlet</servlet-class>
<init host='www.forwardto.com'/>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping servlet-name="http-proxy" url-pattern="/*" />
 
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic