LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-24-2008, 01:01 PM   #1
moonshinerat
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Rep: Reputation: 0
VPN & programming - two big questions


Afternoon folks.

I find myself trying to ask two huge questions which unfortunately are tightly linked so I have to ask them together.

First, let me just tell you I have a slackbox at home with a fairly hefty mysql 5.1 database on it. I have a bog standard home type router-ap-switch attached to this 'server' and my home workstation. The router connects to both machines providing a static ip and connects to my isp using DHCP. As far as I can tell my ISP changes my IP address every 24 hours. Now the questions....

1) I am contemplating writing a Java based client to install on other machines at my work place to access this database. Do I set up a VPN and will it work with my routers address changing so frequently, or is there another way to access this database with Java?

2) Is writing a web interface better? My experience with HTML is limited and I tried to place my database on a hosted server with problems. I had data entry forms on individual pages and every time I pressed my submit buttons, the whole page had to refresh to the next form (including my navigation menu's etc) and it was really, really slow. Not exactly looking like a professional application. Is there a way to leave the rest of my page intact and just update the bit that contains the form?

Like I say two big questions, but I guess one affects the other. I really don't want to host this database on a commercial server, I just want access to the server I have at home, whether it's web based or Java based.

Thanks everyone.
 
Old 06-24-2008, 03:25 PM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
FRAMES or without FRAMES?
 
Old 06-24-2008, 03:42 PM   #3
lost1212
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
The biggest problem is the dynamic address on your home location. If your work place has a static public address you could setup a VPN tunnel that way.

Also running any type of services such as a web server from your home network could be against your service agreement with your ISP.
 
Old 06-24-2008, 04:32 PM   #4
moonshinerat
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Original Poster
Rep: Reputation: 0
mmmmm.....

first answer, without frames preferably. Like I say, my html knowledge is pretty limited.

second answer, yep dynamic address is a problem. I think I'm going to go with programming a Java client to access the database. How do I connect to the database from another machine though the internet? Is a VPN the only option? (other than getting a static IP from the ISP. I live in Ecuador and the ISP's don't have this kind of flexibility yet.... we've only just got 1meg broadband.
 
Old 06-24-2008, 10:59 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
How about getting a router that has built-in VPN capability? If you can set up a persistent VPN-tunnel to your workplace, you're set ... and the router just does all the heavy-lifting for you.

From your point of view, you just send the traffic to thus-n-so IP address. What the router does, with that traffic, is to tunnel it.
 
Old 06-25-2008, 08:53 AM   #6
moonshinerat
LQ Newbie
 
Registered: Apr 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sundialsvcs View Post
How about getting a router that has built-in VPN capability?
Didn't know that they existed to be honest. My networking knowledge is at least 7 years old and that long ago you were looking at serious Cisco stuff which didn't come out of pocket change.

Great advice though and perfect for the Java interface I want to write without me having to faff about with VPN security protocols etc etc.

[Quick Update] Looks like there may be a Linux distro that performs this type of router function too, I'm just waiting for the name from another forum and I'll post it on here. I've ordered two VPN routers to give them a try but delivery is seven weeks to Ecuador. Thanks guys, you put me on a good track.
 
Old 06-25-2008, 12:22 PM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
If you're interested in router-based VPN, go jump on E-Bay and see what's available (you're looking for Cisco router) -- lots of folks going out of business or upgrading. A quick look shows price ranges from $20 on up...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN - is there a way to use VPN & normal connection at the same time? natv Linux - Networking 4 09-05-2007 08:48 AM
help ssl vpn programming mallikk_in Linux - Networking 4 03-16-2007 03:49 AM
I Have A Big Questions About ""vpn"" eder_michael11 Linux - General 7 06-07-2006 04:49 AM
big BIG javascript & loading time luigi Programming 3 09-10-2001 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration