Koozali.org: home of the SME Server

checking for open ports

Offline lional

  • ****
  • 71
  • +0/-0
checking for open ports
« on: October 30, 2008, 10:52:23 AM »
How can I check if a port is open on my sme server
I opened it via port forward and it shows on my sme server
but when I run mapping software it diesn't show
is there there a config file that I can check

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: checking for open ports
« Reply #1 on: October 30, 2008, 11:00:26 AM »
which port are you trying to open?
If you think you know whats going on, you obviously have no idea whats going on!

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #2 on: October 30, 2008, 11:05:52 AM »
1194 for open vpn
I put in the source port as 1194 to localhost and the destination port as 1194 and it is a udp port.

Offline GlitchFreak

  • ****
  • 97
  • +0/-0
Re: checking for open ports
« Reply #3 on: October 30, 2008, 11:13:01 AM »
What method of opening the port did you use?

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: checking for open ports
« Reply #4 on: October 30, 2008, 11:15:55 AM »
which version of openvpn are you installing?
If you think you know whats going on, you obviously have no idea whats going on!

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #5 on: October 30, 2008, 11:21:18 AM »
I used the port forward with server manager
version 2

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: checking for open ports
« Reply #6 on: October 30, 2008, 11:32:08 AM »
If you are using routed mode of open vpn, the how to http://wiki.contribs.org/OpenVPN has the rpm to open the port.

Is the connection to the internet through as router?
If you think you know whats going on, you obviously have no idea whats going on!

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #7 on: October 30, 2008, 01:55:04 PM »
Yes it is through a router
I installed rpm -Uvh http://sme.swerts-knudsen.com/downloads/dmc-mitel-portopening-0.0.1-4.noarch.rpm
What does it mean by this Install the port opener and ensure to update the navigation panel

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: checking for open ports
« Reply #8 on: October 30, 2008, 02:36:58 PM »
lional

Quote
I installed rpm -Uvh http://sme.swerts-knudsen.com/downloads/dmc-mitel-portopening-0.0.1-4.noarch.rpm

That's a really old rpm from sme5.6 days. You should not install that on sme7.x

There is already a port forwarding & opening panel in sme7.x server manager that you can use.

I suggest you read the manual, especially the part about the port forwarding & opening panel in server manager.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #9 on: October 30, 2008, 02:42:57 PM »
thanks will do

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #10 on: October 30, 2008, 03:04:54 PM »
is the port forwarding and opening panel that smae. How can I check if the port is actually opened

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: checking for open ports
« Reply #11 on: October 30, 2008, 03:24:57 PM »
Have you forwarded the port in your router?
If you think you know whats going on, you obviously have no idea whats going on!

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #12 on: October 30, 2008, 05:00:14 PM »
I am in a difficult situation where the isp gives us no access to the router. They say all ports are open and NAT is disabled on the router, and as I understand sme does nat

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: checking for open ports
« Reply #13 on: October 30, 2008, 05:09:27 PM »
I am in a difficult situation where the isp gives us no access to the router. They say all ports are open and NAT is disabled on the router, and as I understand sme does nat

well, let's clarify..

- you have a router without nat and without any filter on ports/protocols, right?
- you have a SME server in server+gateway mode with a public IP on wan side, right?
- you are installing openvpn on that server

if so, I think you'd not need any portforward..

Ciao
Stefano

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #14 on: October 30, 2008, 05:16:46 PM »
openvpn says that port 1194 must be forwarded. I can connect to the sme but cant see any shared drives

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: checking for open ports
« Reply #15 on: October 30, 2008, 05:36:09 PM »
lional

port 1194 must be forwarded if you are behind a router.. if your openvpn service is up and running on SME, and your server is directly exposed to wan, you definitely don't need port-forward.

make sure service is running and listening:
Code: [Select]
netstat -napt | grep 1194

and make sure that openvpn is visible on the wan side
please post here the result of
Code: [Select]
config show openvpn

and search info for the DB PublicAccess variable

HTH
Ciao
Stefano

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #16 on: October 30, 2008, 06:00:53 PM »
I am behind a router. my router and my sme has public ip addresses.

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #17 on: October 30, 2008, 06:10:27 PM »
on the config command I get command not found. What directory is nthe command stored in

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: checking for open ports
« Reply #18 on: October 30, 2008, 07:38:42 PM »
lional

let's start from 0 :-)

how did you install openvpn?
have you read (and followed) this howto?

Quote from: lional
on the config command I get command not found. What directory is nthe command stored in

what version of SME are you running?

Ciao
Stefano

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #19 on: October 30, 2008, 08:06:04 PM »
I used the howto that you described
I am running sme 7.3

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: checking for open ports
« Reply #20 on: October 30, 2008, 09:03:07 PM »
I used the howto that you described
I am running sme 7.3

ok..

please post here the result of
Code: [Select]
/sbin/e-smith/db configuration show openvpn-bridge
netstat -nap | grep 1024

Thank you

Ciao
Stefano

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #21 on: October 30, 2008, 09:16:40 PM »
it doesn't give a result. it runs but with no output

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: checking for open ports
« Reply #22 on: October 30, 2008, 09:24:44 PM »
it doesn't give a result. it runs but with no output

did you setup openvpn parameters via the server-manager panel?

BTW, in my previous post there was a typo.. it should be
Code: [Select]
netstat -nap | grep 1194

please post the result of
Code: [Select]
ls -la /home/e-smith/db/open*
/sbin/e-smith/db configuration show | grep openvpn

Ciao
Stefano

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #23 on: October 30, 2008, 09:40:26 PM »
when I type in ls -la /home/e-smith/db/open* I get no such file or directory

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: checking for open ports
« Reply #24 on: October 30, 2008, 09:42:24 PM »
when I type in ls -la /home/e-smith/db/open* I get no such file or directory

and what do you get with
Code: [Select]
rpm -qa | grep openvpn
?




Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #25 on: October 30, 2008, 09:51:11 PM »
openvpn-2.0.9-1.el4.rf

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: checking for open ports
« Reply #26 on: October 30, 2008, 10:30:08 PM »
hi

try to install this contrib and configure openvpn..

works for me

Ciao
Stefano

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #27 on: October 31, 2008, 04:57:50 AM »
will this work if I am behind a router, with my sme in server gateway mode

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #28 on: November 01, 2008, 07:50:12 AM »
can I download the certificates from sme to xp remotely

Offline lional

  • ****
  • 71
  • +0/-0
Re: checking for open ports
« Reply #29 on: November 05, 2008, 03:47:18 PM »
I have installed the openvpn-bridge and that seems to work fine, My problem comes with teh XP client. I have chosen method one that only works on the username and password and this doesn't create any client certificates. OpenVPN on xp needs a VPN.ovpn file to start. what will the format be if I have chosen method 1