Koozali.org: home of the SME Server

How To open A Port

Black

How To open A Port
« on: April 15, 2004, 04:10:09 AM »
Ok with much fan fair I have finally figured this out. Now there are two ways of doing this. the "Regular Way" and the "E-Smith Way" this lesson is the Regular way working with squid. It took alot of time to get this but later I will work on the template issue. And to be honest with you, Shame to those who ignored my plea for help :)At least you could have responded to it..lol(I got 1 response, open source baby!)



To open any port on your e-smith without the template option you have to edit the squid.conf file as follows:
Logon : root
Password (enter password)
Now your at your prompt(doesn't matter what yours looks like as long as you're root)

Type This:

cd /etc/squid

You will now be in the squid directory(if your not then find it by typing without quotes "locate squid"
and get yourself to that directory.

Once your in the squid directory type this:

pico squid.conf

now you will see alot of text but don't worry, you two options if you mess up:
 
So anyways, You want to edit 2 lines as follows:
 
On the acl SSL_ports line add (your port) i.e 8080 or 8087 or both.(make sure you have a space between each port) Then You MAY need to edit the acl Safe_ports line to say the same thing(if needed)

One port is Secure and the other is standard....

You can try each one first(i.e SSL or Safe_Ports) then type this:

CTRL(Control Key) x It will ask you to if you want to save the file or not. Choose Y press enter or Choose N for NO

If you mess up and press Y without being sure then it will ask you about the file name, Just add 1 to it and it will save it as squid1.conf(you can always delete it later)(the system only knows squid.conf anyways)

When your ready type :

/etc/rc.d/rc7.d/S90squid restart (wait a minute so it can reload) then go back to your browser and check your connection,

acl Safe_ports (0000) <---Add your port here as well.(without brackets)

So in closing to open a port you type this in:

/etc/squid/

pico squid.conf

On the acl SSL_ports line add 0000 <--Your Port). Then do a
/etc/rc.d/rc7.d/S90squid restart

If it still doesn't work then edit :

acl Safe_ports (0000) <---Add your port here as well.(without brackets) Then :

/etc/rc.d/rc7.d/S90squid restart


and test.

Good Luck!

bobk

How To open A Port
« Reply #1 on: April 15, 2004, 08:06:42 AM »
The template fragments you need are located at /etc/e-smith/templates/etc/squid/squid.conf/.

The ones you will be interested in are:
20ACL15Safe_ports
and
20ACL15SSL_ports

Copy these 2 fragments to:
/etc/e-smith/templates-custom/etc/squid/squid.conf/

Edit them the way you want.

Then expand the template and restart squid.