From owner-freebsd-chat Mon Oct 30 8:49: 7 2000 Delivered-To: freebsd-chat@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 7059337B4CF for ; Mon, 30 Oct 2000 08:49:03 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e9UGljA18285; Mon, 30 Oct 2000 08:47:45 -0800 (PST) Date: Mon, 30 Oct 2000 08:47:45 -0800 From: Alfred Perlstein To: j mckitrick Cc: chat@FreeBSD.ORG Subject: Re: RPC through a firewall Message-ID: <20001030084745.R22110@fw.wintelcom.net> References: <20001030134901.A75987@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i 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 +0000 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * j mckitrick [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