Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hosts.allow ssh based on mac address?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Godsmacker777
Apprentice
Apprentice


Joined: 04 May 2004
Posts: 205
Location: Fenway area, Boston Massachusetts :O)

PostPosted: Wed Jul 06, 2005 4:17 am    Post subject: hosts.allow ssh based on mac address? Reply with quote

Right now I ssh into a friend's server using key authentication. My ip changes on a daily basis (everyone should curse verizon - and dsl in general - in their prayers tonight..) so this isn't really working.

We haven't found any helpful info yet, but is it possible to set the hosts.allow/deny based on mac addresses rather than an ip??

thanks :O)
_________________
Why must we hear what system you're running gentoo on, especially if all you've got is a measly gig of ram or 3gHz processor?

I want to see signatures boasting 25 cpu clusters and blade severs, or a big 'ole onyx..anyone running gentoo on an onxy??
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Wed Jul 06, 2005 4:34 am    Post subject: Reply with quote

using shorewall its pretty easy to do that - have you thought about that option ?
_________________
linux: #232767
Back to top
View user's profile Send private message
Godsmacker777
Apprentice
Apprentice


Joined: 04 May 2004
Posts: 205
Location: Fenway area, Boston Massachusetts :O)

PostPosted: Wed Jul 06, 2005 5:05 am    Post subject: Reply with quote

we have..and probably will. though right now we're using ssh until we have shorewall running. :O)

any takers?
_________________
Why must we hear what system you're running gentoo on, especially if all you've got is a measly gig of ram or 3gHz processor?

I want to see signatures boasting 25 cpu clusters and blade severs, or a big 'ole onyx..anyone running gentoo on an onxy??
Back to top
View user's profile Send private message
rman77
n00b
n00b


Joined: 18 Sep 2004
Posts: 50
Location: USA

PostPosted: Wed Jul 06, 2005 2:57 pm    Post subject: Reply with quote

The only easy way that I know of is through shorewall.... its about one line of code I would bite the bullet and install shorewall instead of looking for another way...

-Rman
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Wed Jul 06, 2005 3:46 pm    Post subject: Reply with quote

what's wrong with
iptables -A INPUT -p tcp --mac-source XX:XX:XX:XX:XX:XX --dport 22 -j ACCEPT
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Jul 06, 2005 11:17 pm    Post subject: Re: hosts.allow ssh based on mac address? Reply with quote

Godsmacker777 wrote:
... is it possible to set the hosts.allow/deny based on mac addresses rather than an ip??


short answer: in that case - no

If there is one (or >1, doesn't matter) router between your two machines you'll never see the MAC of the other machine connecting to you. All you see on layer-2 level is the MAC of the gateway (normally your default gateway) through which this connection attempt is coming in.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Godsmacker777
Apprentice
Apprentice


Joined: 04 May 2004
Posts: 205
Location: Fenway area, Boston Massachusetts :O)

PostPosted: Thu Jul 07, 2005 8:46 pm    Post subject: Reply with quote

Thanks to everyone for your answers :O)

especially Think4UrS11, for your details..wasn't sure if the mac address is something that makes it's way through hardware router/firewalls.

Looks like we'll give shorewall a shot.
_________________
Why must we hear what system you're running gentoo on, especially if all you've got is a measly gig of ram or 3gHz processor?

I want to see signatures boasting 25 cpu clusters and blade severs, or a big 'ole onyx..anyone running gentoo on an onxy??
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum