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.




72 posts

Master Geek
+1 received by user: 2


Topic # 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
19925 posts

Uber Geek
+1 received by user: 3652

Trusted
Subscriber

  Reply # 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

30 posts

Geek


  Reply # 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.

 
 
 
 




72 posts

Master Geek
+1 received by user: 2


  Reply # 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.




4025 posts

Uber Geek
+1 received by user: 1076

Trusted

  Reply # 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.

19925 posts

Uber Geek
+1 received by user: 3652

Trusted
Subscriber

  Reply # 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



72 posts

Master Geek
+1 received by user: 2


  Reply # 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.

3038 posts

Uber Geek
+1 received by user: 482

Trusted

  Reply # 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




2208 posts

Uber Geek
+1 received by user: 617

Trusted

  Reply # 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








72 posts

Master Geek
+1 received by user: 2


  Reply # 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.




72 posts

Master Geek
+1 received by user: 2


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

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



72 posts

Master Geek
+1 received by user: 2


  Reply # 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

3212 posts

Uber Geek
+1 received by user: 610


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

Nope.



72 posts

Master Geek
+1 received by user: 2


  Reply # 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.

6288 posts

Uber Geek
+1 received by user: 2742

Moderator
Trusted
Subscriber

  Reply # 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.




Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router Guide | Electric KiwiCommunity UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial


810 posts

Ultimate Geek
+1 received by user: 232


  Reply # 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



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Nothing nebulous about Microsoft’s cloud-transition
Posted 21-Jul-2017 15:34


We’re spending more on tech, but not as much as Australians
Posted 21-Jul-2017 11:43


Endace announces EndaceFabric for network-wide packet recording
Posted 20-Jul-2017 20:49


Acorn 6: MacOS image editing for the rest of us
Posted 20-Jul-2017 17:04


HTC faces backlash over keyboard pop-up ads
Posted 19-Jul-2017 15:53


BNZ adds Visa credit cards to Android Pay wallet
Posted 18-Jul-2017 19:44


Still living in a Notification hell – Om Malik
Posted 18-Jul-2017 13:00


Duet Display uses iPad to extend Mac, PC
Posted 18-Jul-2017 10:58


PC sales could be worse
Posted 17-Jul-2017 07:34


Crypto-currencies, tulips, market bubbles
Posted 17-Jul-2017 06:38


NZ Tech Podcast: Big batteries, solar cars, cold war, IoT
Posted 16-Jul-2017 16:53


Vodafone Australia mulls Wisp alliance, NZ implications
Posted 13-Jul-2017 16:49


Rural health professionals see fibre pay-off
Posted 13-Jul-2017 11:52


Vodafone announces expansion of $5 Daily Roaming
Posted 13-Jul-2017 10:20


Intel unveils powerful Intel Xeon Scalable processors
Posted 12-Jul-2017 20:41



Geekzone Live »

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



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.