LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2011, 11:38 AM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 807

Rep: Reputation: 40
Want to connect to my own server, which is at my office, from anywhere


I have a server in my [home] office which runs a mysql database and keeps track of invoices in and out, partslists for my PCBs etc. I would like to be able to access this and enter purchase orders, check stock etc when I am out of office. The server is, of course, running Linux!

It is sitting behind a Vigor DSL modem/router/switch which has VPN capabilities. I have previously used it to connect to the server from a friend's place, but he also had an identical DSL modem. I would like to be able to do this from my Linux laptops when away in any place, wherever I get on line.

Also, I want be able use a different IP address (I have five with my ISP) to connect to the server than I have for getting on-line. I think it would be good to have two network cards in the server, one that only allows access to stuff from the outside world, one that allows me to get at the server when in the office. (Is that sensible?)

Would anyone be able to advise me on how to approach this please? Thanks!
 
Old 11-28-2011, 04:36 PM   #2
ccolumbu
Member
 
Registered: Oct 2009
Posts: 37

Rep: Reputation: 4
There are several ways to make this work, and you can use a 2nd IP, but it will not really be any more secure.

I would look at port knocking, it is a way to tell the server that it is you.

The short answer is you hit a port that you previously assigned (use something high and random) this "knock" tells your server firewall to open port 3306 (mysql) to the IP that just knocked. Then you can connect to mysql from any remote port/location.

On your DSL device make sure you open the knock port and the mysql port to your linux box.
 
Old 11-29-2011, 03:49 PM   #3
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
You run a compatible VPN client on your laptops, or run a VPN of your choice on the server and laptops.
 
Old 11-30-2011, 04:23 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
+1 to VPN on server and laptops with port forwarding on the DSL modem/router/switch so your VPN client laptop on the big bad internet can reach the server on the office LAN. OpenVPN is relatively easy to set up.

Anybody who can log on to the laptop (anybody with physical access and the technical knowledge) would be able to access the server unless you add a password (either for encrypted file or file system on the laptop or for VPN authentication).
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server configuration for small office server, which smtp, pop imap server and backup whitelinux Linux - Server 4 04-06-2010 11:26 AM
How do i connect to my office using VPN? Klas Linux - Networking 8 08-12-2006 12:48 AM
3Com Office Connect (3CRWE154G72) kimothy Linux - Wireless Networking 40 06-04-2006 04:51 PM
Remote office can't connect to Redhat 7.3 server using new IP block from ISP Poseiden Linux - Networking 2 04-14-2005 08:56 AM
WiFi 3Com Office Connect cyberFISH Linux - Wireless Networking 1 05-15-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:03 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