Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: mik4 on March 01, 2014, 06:35:28 AM

Title: help .... i cannot connect my dvr
Post by: mik4 on March 01, 2014, 06:35:28 AM
i'm totally newbie with sme server
i had setup already server and gateway mode
but i cannot connect my dvr (i cannot live view them from my mobile with internet connection)
what should i do ....

my config
server 192.168.200.1 ==> lan
external 192.168.1.2 ==> connect to modem
modem 192.168.1.1
dvr 192.168.200.4:7000

regards
mik4
Title: Re: help .... i cannot connect my dvr
Post by: guest22 on March 01, 2014, 07:31:53 AM
You probably need to open up port 7000

http://wiki.contribs.org/Firewall
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 01, 2014, 08:08:05 AM
where should i entering this command
i tried access server manager and using os shell
it said config is unknown command

thx
Title: Re: help .... i cannot connect my dvr
Post by: guest22 on March 01, 2014, 08:12:03 AM
You should be logged in as root on the console/terminal

Please read the above page carefully and completely.
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 01, 2014, 09:23:11 AM
sorry for my ignorance
yes i've already tried
but still didn't work
i still can't access my dvr

which host that i should allow
dvr 192.168.200.4
server 192.168.200.1
or modem 192.168.1.1

Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 01, 2014, 09:26:11 AM
config set manta service access public status enable TCPPort 7000
config setprop manta manta AllowHosts 192.168.200.4/24
signal-event remoteaccess-update

when i type config get manta
the status appear seem fine for the host

something i miss ....
help please
regards
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 01, 2014, 10:56:45 AM
is this manta service allready installed and running in my server
is there command to know the services running in my server
or how do i know that manta service is running or not
regards
Title: Re: help .... i cannot connect my dvr
Post by: Stefano on March 01, 2014, 01:26:13 PM
is port 7000 open on your modem/router? (is it a modem or a router?)

in any case, from server-manager -> port-forwarding , setup port 7000 from anywhere to port 7000 of your dvr (i.e. forward to 192.168.200.4)
Title: Re: help .... i cannot connect my dvr
Post by: guest22 on March 01, 2014, 01:32:18 PM
mik4, if you follow the advise from stefano, please remove the db entries you've created previously:

config delete manta
signal-event remoteaccess-update

ps. manta is just an example name, in your case you could use 'dvr' as a name
Title: Re: help .... i cannot connect my dvr
Post by: Stefano on March 01, 2014, 01:34:26 PM
as long dvr is on another pc (i.e. it's not running on SME) only port forward is necessary
Title: Re: help .... i cannot connect my dvr
Post by: guest22 on March 01, 2014, 02:29:55 PM
as long dvr is on another pc (i.e. it's not running on SME) only port forward is necessary

Yup.
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 03, 2014, 02:47:23 AM
i've allready tried port forwarding at sme server webmin
both tcp/udp for port 7000 and ipaddress 192.168.200.4 (dvr)
but did not work
and in my modem router there is no menu for portforwarding
what should i do then
or maybe after i made port forwarding rule
i should execute command
"signal-event remoteacces-update"
or something else ........
Title: Re: help .... i cannot connect my dvr
Post by: TerryF on March 03, 2014, 04:25:29 AM
but did not work
and in my modem router there is no menu for portforwarding
or something else ........

In your modem you may find its called "Virtual Servers"
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 03, 2014, 11:52:25 AM
still can not do
i can't save my virtual server in modem
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 03, 2014, 11:58:18 AM
as long dvr is on another pc (i.e. it's not running on SME) only port forward is necessary

we not using pc for dvr
we used a telview dvr (something like a recorder or dvd player)
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 03, 2014, 12:00:46 PM
is port 7000 open on your modem/router? (is it a modem or a router?)

in any case, from server-manager -> port-forwarding , setup port 7000 from anywhere to port 7000 of your dvr (i.e. forward to 192.168.200.4)

there is no port forwarding in my modem

is these right
protocol tcp / udp
source port 65535
destination host ip addres 192.168.200.4 (my dvr)
destination port 7000
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 04, 2014, 10:29:23 AM
is there nothing i can do to make it work .....

need help ..... please
Title: Re: help .... i cannot connect my dvr
Post by: janet on March 04, 2014, 01:35:59 PM
mik4

From what I read here & earlier suggestions, that should be
source port 7000
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 05, 2014, 10:49:28 AM
ok i will try it

thx
Title: Re: help .... i cannot connect my dvr
Post by: Xavier.A on March 05, 2014, 09:47:39 PM
@mik4 : With no information we can't really help you.

0) Could you access this video flux before installing SME server?
1) Could you tell us what kind of media server is your DVR : video streaming server, media center or another kind of media server
2) What is the protocol used : TCP/UDP, HTSP, RTP / SRTP / RTSP, RTMP /T/S/E, MPEG-TS / MTS / TS or MMS ?
3) What is the personal machine (OS) you are using to access this video flux (smartphone, pc, tablet)?
4) Did you give a permanent IP for all your machine in your LAN?
5) What is the software/viewer to access this video flux (XBMC, MythTV, VLC, Flash, M$ Media Center, etc...)?
6) What is your external IP, then we could watch your video for free  :-P ?

Try to make it work in the lan and after open the service to the wan ;-)
1) you have to open port 7000 in your personal machine if you can
2) Port Forwarding

Why would u want to use PF, if your installation is like this :
external IP - Modem - 192.168.1.1 <--> 192.168.1.2 : eth1 - SME Server - eth0 : 192.168.200.1 <--> 192.168.200.4 - DVR
                                                                                                                                  <--> 192.168.200.xxx - pc
                                                                                                                                  <--> 192.168.200.xxx - Smartphone

But in this case, you can use port forwarding:
external IP - Modem - 192.168.1.1 <--> 192.168.1.2:7000 - SME Server - 192.168.200.1:7000 <--> 192.168.200.xxx - pc1
                                               <--> 192.168.1.3:7000 - DVR                                         <--> 192.168.200.xxx - pc2
                                                                                                                               <--> 192.168.200.xxx - Smartphone

or in this case (is it this one, really?):
192.168.1.1  - Modem - 192.168.200.xxx <--> 192.168.200.1:7000 - SME Server - 192.168.xxx.1:7000 <--> 192.168.xxx.xxx - pc1
                                                       <--> 192.168.200.4:7000 - DVR                                         <--> 192.168.xxx.xxx - pc2
                                                                                                                                           <--> 192.168.xxx.xxx - Smartphone

Xavier
Title: Re: help .... i cannot connect my dvr
Post by: johnp on March 06, 2014, 12:21:43 AM
I would think that it would be port 7000 from the modem forwarded to the outside ip address on your server and 7000 forwarded from your server to the dvr. If there is a setting on your modem for dmz, you may try adding the outside address of your server in it. I've seen many modem/gateway devices that would forward all ports to this value. Seeing how the server gateway is a firewall, there shouldn't be any issue in running this way.
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 06, 2014, 02:45:21 AM
@kid_of_leognan

i'll try to answer the question

0)yes, i can
before i changed to my new server (server+gateway), before (server only)
i saw so many security hole in my old server (everybody get access to internet) and i tried to fix that with built a new server

old config
modem ->server -> lan
modem ->dvr

new one
modem -> server ->dvr, lan, etc

1)video streaming (cctv for my office)
2) TCP/UDP
3) we accessed it with almost all device (smartphone, tablet n pc)
4) yes we give them a permanent IP, but modem got dynamic IP from ISP
5) CMS from drvhost.com
6) hehehe ... i don't think it would give u any good stuff

in meantime i can't accessed it from LAN not from WAN

@johnp
i don't quite understand what u mean with the outside address of my server


thx all
Title: Re: help .... i cannot connect my dvr
Post by: Xavier.A on March 06, 2014, 02:48:13 PM
(for the answer n°6 : it would be fun to see your team in bikini  8-) )

Now, are you working with linux/bsd desktop or not?
If yes then u will use tools for beginer Unix admin (like SME Server Admin)  :lol:

From a linux/bsd PC in your lan, open a terminal and :
ping 192.168.200.4
[ctrl]+[c]

if u can ping the cctv server (DVR) then install nmap (sudo apt-get install nmap / sudo yum install nmap) and:
nmap -sn --traceroute 192.168.200.4
nmap -T4 -F 192.168.200.4
nmap -sS -sU -T4 -A -v 192.168.200.4

if the 7000 TCP/UDP ports are open then install text browser lynx or links (sudo apt-get install links / sudo yum install lynx) and:
lynx 192.168.200.4:7000 or links 192.168.200.4:7000

That was the first part of the audit now the second part.
You have to plug the PC to the modem (192.168.1.1) and to try to make the same test but now the target is the SME Server (192.168.1.2).

From the PC connected to the modem, open a terminal and :
ping 192.168.1.2
[ctrl]+[c]

if u can ping the SME Server (192.168.1.2) then
nmap -T4 -F 192.168.1.2
nmap -sS -sU -T4 -A -v 192.168.1.2

if the 7000 TCP/UDP ports are open then :
lynx 192.168.1.2:7000 or links 192.168.1.2:7000

if not then u have to use Port forwarding in the SME Server :
firefox https://192.168.200.1/server-manager

After that, you can verify in the SME Server:
iptables -v -L -n | grep 7000

and finally
lynx 192.168.1.2:7000 or links 192.168.1.2:7000

That's all !
Title: Re: help .... i cannot connect my dvr
Post by: johnp on March 07, 2014, 12:39:37 AM
FWIW, an ouside address would be the WAN interface as opposed to an inside being the LAN
Title: Re: help .... i cannot connect my dvr
Post by: mik4 on March 07, 2014, 06:29:19 AM
many many thanks to u guys
i'll try it tommorow on weekend

i hope everything goes well tommorow
i'll inform u the update later

thanks again  :-P :lol: :grin: