# DRB ruby ACL problems

**URL:** <https://www.ruby-forum.com/t/drb-ruby-acl-problems/100662>\
**Category:** Ruby\
**Created:** [July 31, 2006, 7:05am UTC](https://www.ruby-forum.com/t/drb-ruby-acl-problems/100662 "2006-07-31T07:05:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![metrix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/48db29/32.png) [@metrix](https://www.ruby-forum.com/u/metrix)\
**Post date:** [July 31, 2006, 7:05am UTC](https://www.ruby-forum.com/t/drb-ruby-acl-problems/100662/1 "2006-07-31T07:05:03Z")

</div>

I have spent several hours trying to workout why drb ruby will not allow  
a remote pc to connect to my server to pull objects…  
Here’s where I stand with the problem:  
Debian server is on 192.168.0.2 running ruby 1.8.2  
Windows client is on 192.168.0.37 running ruby 1.8.4  
I know the versions are different, but I’m worried that updating Debian  
might break some packages… I’m still looking into that part… if I  
could at least get it to connect I would be happy

run drbtest.rb on debian server, do the following tests,  
run drbclient from debian server: connects  
run drbclient from a windows machine: does not connect  
run telnet to the drb port on debian server: does not connect  
run telnet to the drb port, but have netcat running: connects

for some reason I can’t get access to that port from another machine  
with ruby running. I have tried to create an ACL list, but it doesn’t  
seem to help. If anyone can point me in the direction of documentation,  
or a code snippet that might fix the problem, it would be greatly  
appreciated.

## Server code snippet:

require ‘drb’  
require ‘drb/acl’

class TestServer  
def doit  
“Hello, Distributed World”  
end  
end

acl = ACL.new(%w[deny all  
allow 192.168.0.\*  
allow localhost  
allow 127.0.0.1  
] )

DRb.install\_acl(acl)

aServerObject = TestServer.new  
DRb.start\_service(‘druby://cindy:88585’, aServerObject)  
DRb.thread.join # Don’t exit just yet!

## Client code snippet:

require ‘drb’  
DRb.start\_service()  
obj = DRbObject.new(nil, ‘druby://cindy:9999’)

# Now use obj

p obj.doit

---

<div class="post-metadata">

**Author:** ![metrix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/48db29/32.png) [@metrix](https://www.ruby-forum.com/u/metrix)\
**Post date:** [July 31, 2006, 2:23pm UTC](https://www.ruby-forum.com/t/drb-ruby-acl-problems/100662/2 "2006-07-31T14:23:51Z")

</div>

Brandon Coleman wrote:

> run drbtest.rb on debian server, do the following tests,

What error message are you getting when you try to connect to the  
server? I remember I had a similar problem a while back. It turned out  
to have something to do with not having the correct config in my  
/etc/hosts file, I think. In other words, it wasn’t a drb problem, but  
something with how the network addresses were getting resolved.

Sorry I can’t remember more. I think I remember someone having a  
similar issue a few months ago on this list, so you might want to search  
the archives.

Jamey C.

Confidentiality Notice: This email message, including any attachments,  
is for the sole use of the intended recipient(s) and may contain  
confidential and/or privileged information. If you are not the intended  
recipient(s), you are hereby notified that any dissemination,  
unauthorized review, use, disclosure or distribution of this email and  
any materials contained in any attachments is prohibited. If you receive  
this message in error, or are not the intended recipient(s), please  
immediately notify the sender by email and destroy all copies of the  
original message, including attachments.
