Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: lional on October 30, 2008, 10:52:23 AM

Title: checking for open ports
Post by: lional 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
Title: Re: checking for open ports
Post by: crazybob on October 30, 2008, 11:00:26 AM
which port are you trying to open?
Title: Re: checking for open ports
Post by: lional 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.
Title: Re: checking for open ports
Post by: GlitchFreak on October 30, 2008, 11:13:01 AM
What method of opening the port did you use?
Title: Re: checking for open ports
Post by: crazybob on October 30, 2008, 11:15:55 AM
which version of openvpn are you installing?
Title: Re: checking for open ports
Post by: lional on October 30, 2008, 11:21:18 AM
I used the port forward with server manager
version 2
Title: Re: checking for open ports
Post by: crazybob 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?
Title: Re: checking for open ports
Post by: lional 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
Title: Re: checking for open ports
Post by: janet 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.
Title: Re: checking for open ports
Post by: lional on October 30, 2008, 02:42:57 PM
thanks will do
Title: Re: checking for open ports
Post by: lional 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
Title: Re: checking for open ports
Post by: crazybob on October 30, 2008, 03:24:57 PM
Have you forwarded the port in your router?
Title: Re: checking for open ports
Post by: lional 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
Title: Re: checking for open ports
Post by: Stefano 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
Title: Re: checking for open ports
Post by: lional 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
Title: Re: checking for open ports
Post by: Stefano 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
Title: Re: checking for open ports
Post by: lional on October 30, 2008, 06:00:53 PM
I am behind a router. my router and my sme has public ip addresses.
Title: Re: checking for open ports
Post by: lional on October 30, 2008, 06:10:27 PM
on the config command I get command not found. What directory is nthe command stored in
Title: Re: checking for open ports
Post by: Stefano 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 (http://wiki.contribs.org/OpenVPN) 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
Title: Re: checking for open ports
Post by: lional on October 30, 2008, 08:06:04 PM
I used the howto that you described
I am running sme 7.3
Title: Re: checking for open ports
Post by: Stefano 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
Title: Re: checking for open ports
Post by: lional on October 30, 2008, 09:16:40 PM
it doesn't give a result. it runs but with no output
Title: Re: checking for open ports
Post by: Stefano 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
Title: Re: checking for open ports
Post by: lional 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
Title: Re: checking for open ports
Post by: Stefano 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
?



Title: Re: checking for open ports
Post by: lional on October 30, 2008, 09:51:11 PM
openvpn-2.0.9-1.el4.rf
Title: Re: checking for open ports
Post by: Stefano on October 30, 2008, 10:30:08 PM
hi

try to install this (http://sme.firewall-services.com/downloads/smeserver-openvpn/rpms/smeserver-openvpn-bridge-fws-1.1-2.noarch.rpm) contrib and configure openvpn..

works for me

Ciao
Stefano
Title: Re: checking for open ports
Post by: lional on October 31, 2008, 04:57:50 AM
will this work if I am behind a router, with my sme in server gateway mode
Title: Re: checking for open ports
Post by: lional on November 01, 2008, 07:50:12 AM
can I download the certificates from sme to xp remotely
Title: Re: checking for open ports
Post by: lional 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