Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2002 16:36:22 +0100
From:      Paul Everlund <tdv94ped@cs.umu.se>
To:        Jay <jayyness@mindspring.com>
Cc:        questions@freebsd.org
Subject:   Re: Changing IP and ports served on
Message-ID:  <3DD3C2F6.1010407@cs.umu.se>
References:  <001a01c28bf1$7fe098c0$6dde630c@jay>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DD3C2F6.1010407>