Linode Forum
https://forum.linode.com/

Public requests sent to Private IP
https://forum.linode.com/viewtopic.php?f=19&t=6929
Page 1 of 1

Author:  zdwiel [ Wed Apr 06, 2011 2:19 pm ]
Post subject:  Public requests sent to Private IP

I have a few linodes which have both public and private IPs. I can access linode A from linode B using its private IP and visa-versa.

I have a webserver listening to the private IP, yet I can still access it from the public IP:

"curl http://public-ip/" from my local machine works as does "curl http://private-ip/" from a different linode.

My linodes are all running Ubuntu 10.04 and I followed the steps as outlined in http://library.linode.com/networking/co ... nterfaces/ in order to setup my private IPs.

What do I need to do so that a service listening on a private IP is not accessible through the linode's public IP?

Thanks

Author:  JshWright [ Wed Apr 06, 2011 2:24 pm ]
Post subject: 

Are you sure you've configured the server to only listen on the private IP?

netstat -l would be a good place to start to double check that.

~JW

Author:  zdwiel [ Wed Apr 06, 2011 2:36 pm ]
Post subject: 

Doh. Yeah, I guess my server was telling me it was binding to my private IP, but is in-fact binding to 0.0.0.0 anyway.

For future reference: This problem arose with Rails 2.3.2/WEBrick 1.3.1 I started the server by running:

Code:
$ruby script/server --port=10000 --binding=192.168.XXX.XXX
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://192.168.XXX.XXX:10000


Thanks

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/