Koozali.org: home of the SME Server

Changing default port settings

David Bakody

Changing default port settings
« on: March 23, 2002, 03:53:39 AM »
Is there an obvious way of changing the ports e-smith uses for http, pop, ldap, etc, from their respective defaults to something I can define myself?  I read Dan Brown's how-to on changing the port Apache listens to, but I'm not clear how applicable his how-to would be for doing the same thing for some of the other services.

Any docs, guidance, links, would be great.

Luke Drumm

Re: Changing default port settings
« Reply #1 on: March 25, 2002, 12:01:59 AM »
It varies from one service to the next on how to redefine the port.

For example, to alter the SSH port one needs to alter the hosts.allow file and the ssh_config file.

Generally the best source of info is the 'man'ual. This can be accessed through the 'man' program on the command line.

eg. To find out about the ssh deamon program (sshd) setttings, one can type:

man sshd

For how-to's and the like, I'd suggest checking out sites like linux.com.

Regards,
Luke

David Bakody

Re: Changing default port settings
« Reply #2 on: March 25, 2002, 01:15:40 AM »
Oh - I think what I meant was, I want to be able to change port settings without breaking the e-smith way of doing things.  I know how to do some of this by working on certain configuration files directly, but e-smith's template system is subject to break or overwrite my changes if I'm not careful.  Hence, I was wondering if a set of e-smith commands or templates existed that would let me to do this "the e-smith way".  However, it seems pretty obvious that I need to learn Pearl before being able to accomplish very much.

I'm lost in the e-smith system.  I've grabbed the available developer documentation, but it seems a bit sparse to me.  I guess the best way to figure out e-smith is to take apart some of the contrib-srpm's and see how things are done.

Thanks for the comments though.

Luke Drumm

Re: Changing default port settings
« Reply #3 on: April 09, 2002, 03:49:12 AM »
I'm not sure if this reply will ever get read due to my late response but...

If you know how to make the appropriate changes to the 'normal' config files then you've usually got enough knowledge to modify them the 'e-smith' way.

I'd suggest having a look at examples of where people have made modifications to their files. For example, here's one from your truely:

http://forums.contribs.org/index.php?topic=11735.msg44126#msg44126

Regards,
Luke