Date: Mon, 30 Oct 2000 08:47:45 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: j mckitrick <jcm@FreeBSD-uk.eu.org> Cc: chat@FreeBSD.ORG Subject: Re: RPC through a firewall Message-ID: <20001030084745.R22110@fw.wintelcom.net> In-Reply-To: <20001030134901.A75987@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Mon, Oct 30, 2000 at 01:49:01PM %2B0000 References: <20001030134901.A75987@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* j mckitrick <jcm@FreeBSD-uk.eu.org> [001030 05:49] wrote: > Hi all, > > I have a simple firewall setup based on the Mark Silver (?) tutorial from a > few months back. I have an assignment to write a simple file server and > client using remote procedure calls. I found a fair amount of > documentation, including rpcgen, which is definitely going to be critical > for my project. > > 2 questions: what would be a good way to transfer a file using rpc? Can I > use ftp within my client/server system? Sure, you just have to have both sides agree on a method of transport, what you can do is send an RPC request that asks "what port do I connect to, to do bulk transfer" and the server can bind a free port and respond. Or you can tell the server "i'm uploading a file to location X on your machine" then do the ftp transfer. > Do I need to do anything special in my firewall to allow this? I believe > rpc is still enabled in my /etc/services, but I would like the firewall to > allow local testing and then remote testing. For Licq I had to add a few > lines to the firewall config to allow those port connections. Since the RPC > ports are already present, do I need to do anything special to allow this? You'll want to see how to always bind to a particular port for RPC, nfs does this, I'm sure there are references on how to do this. "Power Programming with RPC" from ORA would function as a pretty comprehensive guide for you although a lot of the information in it is circa 1995 (it seems) RPC itself hasn't changed much since then. > > Thanks for any help. This is going to be a big project in an already crazy > semester. :) best of luck, -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001030084745.R22110>