Koozali.org: home of the SME Server

Port opening

tobre6

Port opening
« on: March 23, 2005, 12:07:51 AM »
Hello!
I would like to administrate my computer that is behind SME 6.5 firewall over the Internet. I am using Remote Administrator (www.radmin.com) and it uses port 4899 but I have to open it in SME box and then forward to another computer. Forwarding is no problem, but opening. Is there any rpm for that? I used Google, but I didn't found almost anything.

Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Port opening
« Reply #1 on: March 23, 2005, 12:58:33 AM »
Quote from: "tobre6"
Forwarding is no problem, but opening. Is there any rpm for that? I used Google, but I didn't found almost anything.


I search here would tell you there's no point in opening ports on the SME server. You just need to port forward. There's a panel for doing that.

tobre6

Re: Port opening
« Reply #2 on: March 23, 2005, 01:30:56 AM »
Quote
I search here would tell you there's no point in opening ports on the SME server. You just need to port forward. There's a panel for doing that.


Hmm, yes I have forwarded TCP port 4899 but if I scan server with some kind of port scanner it tells me that port 4899 is not opened. Wierd. :-?

Any suggestions[/quote]

Quail_Linux

Re: Port opening
« Reply #3 on: March 23, 2005, 02:54:22 AM »
Quote from: "tobre6"

Hmm, yes I have forwarded TCP port 4899 but if I scan server with some kind of port scanner it tells me that port 4899 is not opened. Wierd. :-?

Any suggestions


Hi tobre6,
When you are scanning for ports that have been port forwarded to another computer, you need to have that program on that computer that the port has been forwarded to, so the port shows as openned when you run a port scan. Otherwise it will show as closed.

HTH

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Port opening
« Reply #4 on: March 23, 2005, 04:24:53 AM »
Quote from: "Quail_Linux"

When you are scanning for ports that have been port forwarded to another computer, you need to have that program on that computer that the port has been forwarded to, so the port shows as openned when you run a port scan.


You also need to scan from the Internet side, not the LAN side.

Quail_Linux

Re: Port opening
« Reply #5 on: March 23, 2005, 02:21:49 PM »
Quote from: "CharlieBrady"
You also need to scan from the Internet side, not the LAN side.


Thanks Charlie, i forgot to add that in my reply.  :oops:

tobre6

Re: Port opening
« Reply #6 on: March 23, 2005, 02:24:56 PM »
Quote from: "Quail_Linux"
Quote from: "CharlieBrady"
You also need to scan from the Internet side, not the LAN side.


Thanks Charlie, i forgot to add that in my reply.  :oops:

Thank you all! Now it is working like I expected. ;) I scanned from the LAN side and therefore thought that it doesn't work.:=)

Thanks!

d6hq

Port opening
« Reply #7 on: March 28, 2005, 02:17:15 PM »
While I hate to disagree with Charlie there are some occasions when opening an additional port on SME in server & gateway mode is a requirement rather than simply a port forward. For example we run a lot of Domino installs on SME and require 1352 open. The following contrib (search for it) will add a panel to do the job

sme-6.0-masq-manager-0.1-2.noarch.rpm

Skydiver

open ports
« Reply #8 on: April 05, 2005, 05:05:03 AM »
SME 6.5

I added the rpm and used the sme manager to open the port i required but it still shows port as closed from the internet.

I rebooted the sme box and note masq disabled

I figure this is because the server is in server only mode with one nic.

I then used:

/sbin/e-smith/db configuration setprop masq status enabled

/sbin/e-smith/signal-event console-save

/sbin/reboot

masq still says disabled and port is closed.

do i need to change something in squid

Offline raem

  • *
  • 3,972
  • +4/-0
Re: open ports
« Reply #9 on: April 05, 2005, 01:33:10 PM »
Skydiver

What you're doing doesn't make sense to me.
In server only mode it implies there is a seperate firewall (another sme gateway mode server or hardware firewall etc) and you should be opening ports there, rather than on your sme server only box.

I think you need to open & forward that port from your firewall to your sme server.
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Port opening
« Reply #10 on: April 05, 2005, 10:36:20 PM »
Quote from: "d6hq"
While I hate to disagree with Charlie there are some occasions when opening an additional port on SME in server & gateway mode is a requirement rather than simply a port forward.


I gave only the short form of my Frequently Given Answer here (as that was all that was relevant). The full answer says there's not point in opening ports unless you have installed additional software on the server which is listening to those ports.

Domino, in your case, fits that condition. You can open the port or ports that domino needs by a simple custom template. If you happened to build an smeserver-domino RPM to set up domino so it runs nicely in an SME server, then that RPM would contain the necessary code to open the port.

novatux

Port opening
« Reply #11 on: April 06, 2005, 03:00:58 AM »
sorry for my poor english

I used http://sme.swerts-knudsen.dk/downloads/dmc-mitel-portopening-0.0.1-4.noarch.rpm
in sme 6.5rc1
for the installation of openvpn follow howto of knudsen (for open port 1194 UDP port)
and well test are ok.

Skydiver

Re: open ports
« Reply #12 on: April 06, 2005, 06:19:04 AM »
Quote from: "RayMitchell"
Skydiver

What you're doing doesn't make sense to me.
In server only mode it implies there is a seperate firewall (another sme gateway mode server or hardware firewall etc) and you should be opening ports there, rather than on your sme server only box.

I think you need to open & forward that port from your firewall to your sme server.


Thanks for your reply. I have a router that opens and port forwards ports to my SME box's and it works fine with the opened service ports 80,110,25,21.

I am running some applications that listen on different ports and i need to open those ports for connection from the forwarded ports otherwise the ports are seen as stealth mode.

Cheers

Skydiver

port opening
« Reply #13 on: April 06, 2005, 09:37:00 PM »
Anyone know how to open ports on sme 7.0 alpha5 in server only mode?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: port opening
« Reply #14 on: April 07, 2005, 12:45:38 AM »
Skydiver

There are a few suggestions posted in this thread:
Check if these run on sme7a5
http://sme.swerts-knudsen.dk/downloads/dmc-mitel-portopening-0.0.1-4.noarch.rpm

sme-6.0-masq-manager-0.1-2.noarch.rpm

or as Charlie suggests (amended slightly)
You can open the port or ports that your application needs by a simple custom template. If you happened to build an smeserver-application RPM to set up the application so it runs nicely in an SME server, then that RPM would contain the necessary code to open the port.

You could enable & disable applications & services that use specific known ports, and then examine the before & after changes in config files, and then determine how to do it for different ports.
...