Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Apr 06, 2011 2:19 pm 
Offline
Newbie

Joined: Wed Apr 06, 2011 1:58 pm
Posts: 2
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


Top
   
 Post subject:
PostPosted: Wed Apr 06, 2011 2:24 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
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


Top
   
 Post subject:
PostPosted: Wed Apr 06, 2011 2:36 pm 
Offline
Newbie

Joined: Wed Apr 06, 2011 1:58 pm
Posts: 2
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group