From owner-freebsd-questions Thu Nov 14 7:36:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98EB837B401 for ; Thu, 14 Nov 2002 07:36:34 -0800 (PST) Received: from grillolja.cs.umu.se (grillolja.cs.umu.se [130.239.40.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B80343E88 for ; Thu, 14 Nov 2002 07:36:32 -0800 (PST) (envelope-from tdv94ped@cs.umu.se) Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id DA1D9A003; Thu, 14 Nov 2002 16:36:27 +0100 (MET) Received: from cs.umu.se (h55n1c1o1023.bredband.skanova.com [213.64.164.55]) by grillolja.cs.umu.se (Postfix) with ESMTP id 7E1ACA016; Thu, 14 Nov 2002 16:36:24 +0100 (MET) Message-ID: <3DD3C2F6.1010407@cs.umu.se> Date: Thu, 14 Nov 2002 16:36:22 +0100 From: Paul Everlund User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: sv,en MIME-Version: 1.0 To: Jay Cc: questions@freebsd.org Subject: Re: Changing IP and ports served on References: <001a01c28bf1$7fe098c0$6dde630c@jay> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new amavisd-new-20020630 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Jay! Jay wrote: > Hello, I am using freebsd 4.4 stable. > I am also not a complete newbie but I definitely am > a neophyte when it comes to unix. > > I recently left my job where they let me colo > a server there. Since I left, I had to take my server > with me. I had help setting it up but that help isn't > available anymore. > > I am pretty sure these are pretty simple things to do > I just can't remember which files to edit to do it. > > 1. I need to re-assign the static IP that is on the box > to an IP within my internal network at home. I know > it is just as simple as changing the 12.x.x.x number > to a 192.x.x.x number in a file, I just don't know which > file. /etc/rc.conf Look for a line similar to: ifconfig_ed0="inet 192.168.0.5 netmask 255.255.255.0" inet should be chenged to your IP-address. > 2. There weren't any blocked ports at work. So > I could use the standard ports for ftp and http. But > at home I have CoxCable and they block 21 and 80 > and maybe some others that I am ot sure of. How > do I change what ports ftp and http are served off of > on my server. When I originally set up the box I > actually have 2 ftp ports (16 and 21) I just can't > remember where I changed that. And do I change the > http in the same place? I guess it all depends on which ftp- and http-server you are using. In my config file for proftpd I've put: Port 2121 I'm hence using 2121 for my ftp-server. In my config file for Apache I've put: Port 80 I'm hence using 80 for my http-server, which of course could be changed to something different. Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message