Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


dazz1

90 posts

Master Geek


#80271 29-Mar-2011 22:55
Send private message

Hi
I have set up a Linux based remote webcam server. 
It is sending images back to a server for  display on a web site. That part works OK.

I want to be able to connect to the webcam server to administer it. 
For a server wired to the internet that would not be difficult. 
For a T-stick, I understand Telecom block all attempts to get into the wireless network. 

This means I have to get the webcam server to initiate the connection. 
I was wondering how to do this. 

If I call the T-stick telephone number, can that be used to trigger the webcam server to initite a vpn link?
Alternatively, could I set up the webcam to attempt to make a connection at set times (eg. 6pm each day)

All I want to do is to be able to log onto the command line of the webcam server from my home PC.

View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
richms
23683 posts

Uber Geek

Trusted
Subscriber

  #453328 29-Mar-2011 23:23
Send private message

I believe it is APN related as to if you get incoming connections or not.

Try direct.telecom.co.nz - I _THINK_ that one was what we had to change to inorder to get stuff to work as expected.




Richard rich.ms

Bold
36 posts

Geek


  #453441 30-Mar-2011 11:54
Send private message

richms is correct. Your APN in you connection settings is likely to be 'internet.telecom.co.nz' at the moment, simply change this to 'direct.telecom.co.nz' and it will behave like a normal wired internet connection.

I've got my home connection setup like this and using dyndns.org have no trouble connecting remotely.

 
 
 
 


dazz1

90 posts

Master Geek


  #453535 30-Mar-2011 16:41
Send private message

Hi

I was a bit nervous about changing the APN to "direct".  Does that mean all the random traffic that would hit my remote server would count as data used?  Does it also increase the risk of someone cracking the server?  If someone breaks in, they could use up my pre-paid data allowance in a flash and mess up my server. 

I do like the idea of having Telecom block all that internet traffic trying to get to my Webcam server.  If I can get the webcam server to initiate the network connection back to my home PC, then that would be OK for me.

I don't know how the T-stick and Ubuntu respond to a cell phone voice call or text message.  I am thinking I could use a txt message to initiate a VPN connection from the webcam server to my home.   The txt message/call would just be the  trigger.  That means I could initiate an admin session any time I choose.

Can a T-stick accept a voice phone call or txt message?

Alternatively, I would be happy for the webcam server to initiate a VPN connection at preset times.  That would be OK too.

Any suggestions would be much appreciated.




eXDee
4025 posts

Uber Geek

Trusted

  #453629 30-Mar-2011 21:49
Send private message

Make a VPN then, so the webcam initiates the connection.

T-sticks can take text messages, however the only model of USB Modem supporting voice in NZ is the 2degrees Huawei one.

richms
23683 posts

Uber Geek

Trusted
Subscriber

  #453630 30-Mar-2011 21:50
Send private message

any reason you dont want to leave the vpn up all the time?




Richard rich.ms

dazz1

90 posts

Master Geek


  #453641 30-Mar-2011 22:17
Send private message

Hi

I could leave the VPN open all the time but the remote site has unreliable power and the signal is poor.  Regardless of whether I leave the VPN open or intermittent, the webcam server still needs to be able to initiate a VPN automatically.

Does anyone know how a data stick responds to a text message???? 
Does Ubuntu Network Manager log them somewhere??

Can a data stick send a text message from Ubuntu??

Thanks for all the advice and comment.

raytaylor
3468 posts

Uber Geek

Trusted

  #453661 30-Mar-2011 23:24
Send private message

My two methods would be
1) Change APN to Direct - enable a firewall on your pc and then use no-ip.org for your dynamic access

or

2) Use something like teamviewer.com  - I run this for a number of my rural T-Stick or Satelite clients with IT support.




Ray Taylor
Taylor Broadband (rural hawkes bay)
www.ruralkiwi.com

There is no place like localhost
For my general guide to extending your wireless network Click Here




 
 
 
 


BarTender
3219 posts

Uber Geek

Trusted
Lifetime subscriber

  #453935 31-Mar-2011 20:33
Send private message

dazz1: Hi

I could leave the VPN open all the time but the remote site has unreliable power and the signal is poor.  Regardless of whether I leave the VPN open or intermittent, the webcam server still needs to be able to initiate a VPN automatically.

Does anyone know how a data stick responds to a text message???? 
Does Ubuntu Network Manager log them somewhere??

Can a data stick send a text message from Ubuntu??

Thanks for all the advice and comment.


Perhaps this may help: http://www.it.uc3m.es/~ptb/sms-mail/ I haven't tried it but it may work.

Googling around for AT+CGML and this is a good doc talking about the AT commands needed: http://www.control.com.sg/at_commands_sms.aspx

And another good reference site. http://www.cellular.co.za/sms_at_commands.htm





and


dazz1

90 posts

Master Geek


  #454164 1-Apr-2011 12:26
Send private message

Hello

All good information thankyou.

After looking a bit harder at the problem, I have decided to shift course a bit.  Rather than using SMS, I want to use emails.  SMS on T-sticks and Linux seems to be a bit immature at present.

The plan is to set up the webcam server to email a status report daily.  This will tell me that it is still alive and connected.

When I want to do admin stuff, I propose to send an coded email (eg. specific words in subject) that will cause the webcam server to:
send and email acknowledge the coded email and
initiate a VPN to my home server.

This would mean that I can avoid exposing the webcam server to the whole internet while still retaining the ability to initiate communications with the server from outside the Telecom wireless network.

So to do this, I would need a lite-weight email command line driven client/server application.  I only have a 10G HD on the server, so smallness and simplicity is a plus.

Does this proposal look reasonable?
Any suggestions for an email application?  sSMTP looks promising.


dazz1

90 posts

Master Geek


  #454166 1-Apr-2011 12:33
Send private message

But sSMTP only sends email. 
I would also need a simple reader.

dazz1

90 posts

Master Geek


  #479096 8-Jun-2011 20:53
Send private message

Hi

Does Telecom block incoming traffic to ADSL home connections?

I use a dynamic dns service to keep track of my home PC address.
I can't make an ssh connection from the internet to my home PC.
I can't ping my home PC.

Regards

Dazz

quickymart
5720 posts

Uber Geek


  #479103 8-Jun-2011 21:08
Send private message

Nope.

dazz1

90 posts

Master Geek


  #831484 6-Jun-2013 10:21
Send private message

Hi

Just an update.
I have successfully configured the webcam server to send daily status reports.

I have not been successful in setting up a reverse SSH remote admin connection.  It turns out that my Nokia M1122 modem won't allow port forwarding to my IPCop firewall.  I am buying a new modem that will allow pinholes to be opened.

michaelmurfy
/dev/null
9638 posts

Uber Geek

Moderator
Trusted
Lifetime subscriber

  #831492 6-Jun-2013 10:44
Send private message

dazz1: Hi

Just an update.
I have successfully configured the webcam server to send daily status reports.

I have not been successful in setting up a reverse SSH remote admin connection.  It turns out that my Nokia M1122 modem won't allow port forwarding to my IPCop firewall.  I am buying a new modem that will allow pinholes to be opened.


Woah, that's an old modem. Get one of the Draytek's modems namely this: [Clicky] then setup a PPPoA to PPPoE bridge to your ipcop firewall. Personally I'd recommend using the direct APN and blocking everything except SSH over Port 22, just for your reference these are the rules you're needing:


iptables -F
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT


Customise the rules to suit you, read "man iptables" to see what each means, also do this over local console if possible just in case if you get locked out.

You can from here put this into /etc/network/if.up/ as a script to execute when the network interface is restarted / PC restarted.

Also for a next step of security set up either key authentication or install Denyhosts.




deadlyllama
1019 posts

Uber Geek


  #831541 6-Jun-2013 12:22
Send private message

dazz1:
When I want to do admin stuff, I propose to send an coded email (eg. specific words in subject) that will cause the webcam server to:
send and email acknowledge the coded email and
initiate a VPN to my home server.


Why not just keep a VPN up the whole time?   I'd recommend OpenVPN. If you need a box with a static IP to run the VPN server, you can get one extremely cheaply -- see the deals on lowendbox.com, or for a box in NZ I'd recommend itlab.co.nz.  You can set up a VPN server such that you can connect in from your PC at home to access the other VPN clients connected to it.


 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic





News »

Vodafone enables 5G roaming - for when international travel comes
Posted 30-Oct-2020 15:03


Spark awards funding to Kiwi businesses in 5G funding initiative
Posted 30-Oct-2020 14:58


Huawei launches IdeaHub Pro in New Zealand
Posted 27-Oct-2020 16:41


Southland-based IT specialist providing virtual services worldwide
Posted 27-Oct-2020 15:55


NASA discovers water on sunlit surface of Moon
Posted 27-Oct-2020 08:30


Huawei introduces new features to Petal Search, Maps and Docs
Posted 26-Oct-2020 18:05


Nokia selected by NASA to build first ever cellular network on the Moon
Posted 21-Oct-2020 08:34


Nanoleaf enhances lighting line with launch of Triangles and Mini Triangles
Posted 17-Oct-2020 20:18


Synology unveils DS16211+
Posted 17-Oct-2020 20:12


Ingram Micro introduces FootfallCam to New Zealand channel
Posted 17-Oct-2020 20:06


Dropbox adopts Virtual First working policy
Posted 17-Oct-2020 19:47


OPPO announces Reno4 Series 5G line-up in NZ
Posted 16-Oct-2020 08:52


Microsoft Highway to a Hundred expands to Asia Pacific
Posted 14-Oct-2020 09:34


Spark turns on 5G in Auckland
Posted 14-Oct-2020 09:29


AMD Launches AMD Ryzen 5000 Series Desktop Processors
Posted 9-Oct-2020 10:13









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.