LinuxQuestions.org
Review your favorite Linux distribution.
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 05-19-2008, 10:19 AM   #1
keenboy
Member
 
Registered: Jan 2008
Location: Cullompton
Distribution: Kubuntu
Posts: 36

Rep: Reputation: 15
SSH From handheld device


Hello,

I have a Nokia E61i with Putty installed and it works OK.

My question is:

I would like to use this device when I'm out of my office to administer my Linux servers.

I have an IPCop Firewall protecting my network. I want to know how I can setup a preference to allow my device an SSH connection through my IPCop firewall?

Is there some way to do port forwarding but instead of a entering a source IP Address I can perhaps enter a source MAC address?

I want to be able to use either the wifi, 3G or GPRS networks on my phone which means that my network identification will be different.

Is this possible?

Thanks
 
Old 05-19-2008, 12:22 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It sounds like you want to enable SSH only for that one device?

If so, your best bet would be to just forward the port to the server, and use public/private key authentication. That way, only devices that have your encryption key can connect to the SSH server.
 
Old 05-19-2008, 01:16 PM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Quote:
That way, only devices that have your encryption key can connect to the SSH server.
That should read:

That way, only devices that have your encryption key can connect to the SSH server as long as everything in your installation of SSHD is working properly.

A firewall that only allows a certain MAC address through to a port and a service that answers to all IP's but only allows certain ones access are not the same thing. Ideally, you want both. That way you would be able to say:

That way, only that particular device could connect to the SSH server as long as it had your encryption key and your firewall OR your SSHD were working properly.

My 2 pennies,

Forrest

Last edited by forrestt; 05-19-2008 at 01:18 PM.
 
Old 05-20-2008, 02:24 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
That way, only devices that have your encryption key can connect to the SSH server as long as everything in your installation of SSHD is working properly.
Obviously we assume that the software will be setup properly. I don't see what your point is here exactly, if we qualified everything on the boards with "P.S. This only works if you do it right", we would certainly waste a lot of time.

Quote:
A firewall that only allows a certain MAC address through to a port and a service that answers to all IP's but only allows certain ones access are not the same thing. Ideally, you want both.
As for filtering by source MAC, that simply isn't going to work. First of all MAC authentication is painfully easy to circumvent, to the point of being useless. Second, you can't tell the actual MAC of a device you are connecting to over the Internet, as you are connecting to it through multiple routers. The only time the phone's real MAC might be available is when it is connected direct to the cell network (I am not sure how they handle NAT and routing over cell networks onto the Internet, so even this might not be viable) but certainly not when he is connected over WiFi.
 
Old 05-20-2008, 10:43 AM   #5
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Quote:
Obviously we assume that the software will be setup properly
I'm not talking about setting up or configuring properly, I'm talking about a security hole that isn't known yet (i.e. WORKING properly). The purpose of a firewall is to only allow known good traffic through to your system. That way, if something is broken that you aren't aware of, the only possible traffic to the broken service is from someone you trust anyway. If everything WORKED properly, we wouldn't need firewalls. The best approach is to make any hole in the firewall as small as possible. You start off with a source IP/port being allowed through to a destination IP/port. If that hole isn't big enough to support what you need you open it a little bigger, an IP Range/port allowed through to a destination IP/port, then just source port allowed through to a destination IP/port, etc.

As far as filtering by source MAC, I agree that it probably isn't going to work (that's why I didn't offer any suggestions on how to do it and left it to someone who knows more about very low level networking than I do), but that IS what keenboy is asking for. I don't like to say something can't be done because it seems every time I do I am shown it can be.

Forrest
 
  


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
A cheap Linux handheld ssh dumb-terminal? ylikone Linux - Hardware 1 05-15-2006 08:14 AM
Programing linux handheld device mlanzone Programming 1 11-30-2005 02:04 AM
Programing linux handheld device mlanzone Linux - General 0 11-29-2005 04:35 PM
laptop <--> handheld: best device for this transition? fractal_chaos Linux - Laptop and Netbook 1 10-03-2005 07:25 AM
mp3 players with linux (as in the portable handheld device type) poiuytrewq Linux - General 1 12-12-2004 08:00 AM

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

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