All of lore.kernel.org
 help / color / mirror / Atom feed
From: sean <seandarcy2@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: how do I target a specific machine - not ip address?
Date: Sun, 10 Dec 2006 13:33:37 -0500	[thread overview]
Message-ID: <457C5301.3030702@gmail.com> (raw)
In-Reply-To: <187188.90378.qm@web56209.mail.re3.yahoo.com>

Elvir Kuric wrote:
> Hi Sean, 
> 
> MAC address will not help you. But you can implenment
> many other ways to connect to your server. 
> First you can change ssh port to listen different than
> 22, no mater which, I am hoping you know do this. 
> Second you can implement iptables rule to accept all 
> ssh connections to that port ... something like 
> iptables -A INPUT -p tcp --dport 32022 -s any/0 -d
> your_server_ip -j ACCEPT
> Then implement rules to accept only 2 or more ( it
> depends on you ) ssh connection per minute, and you
> can make some rule for port knocking in combination
> with iptables ( I know port knocking is clear text,
> but posible intruder will get only ssh prompt ). 
> 
> Of course there are many other security considerations
> and I am hoping that other list member will take part
> in this discussion.
> 
> I hope this helps 
> 
> Regards 
> Elvir Kuric
> 
> 
> --- sean <seandarcy2@gmail.com> wrote:
> 
>> I want to connect from travel to my server. Since
>> I'm 
>> connecting through hot-spots or hotel connections,
>> my ip 
>> address will be all over the place.
>>
>> I thought about putting the laptop's MAC address in
>> the 
>> packet, and using mac-source, but I've it seems to
>> MAC 
>> address is stripped out over the internet.
>>
>> So, how do I set it up so the server will know my
>> laptop 
>> from whatever ip address I happen to have.
>>
>> BTW, the laptop is linux, so I can mangle
>> POSTROUTING if 
>> that helps.
>>
>> I can ssh, but what I want to do is set up an NFS
>> mount.
>>
>> sean
>>
>>


ssh is not the problem. I can ssh into the server using the 
techniques you describe.

My problem is mounting an NFS share. I want to set up 
iptables so that it will accept packets from my laptop, 
regardless of ip address.

Then I can open up NFS and not rely on the goofy hosts.allow 
hosts.deny stuff.

sean



  reply	other threads:[~2006-12-10 18:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-10 16:40 how do I target a specific machine - not ip address? sean
2006-12-10 17:47 ` Elvir Kuric
2006-12-10 18:33   ` sean [this message]
2006-12-10 19:37     ` Rob Sterenborg
2006-12-12 16:28 ` Michael P. Brininstool

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=457C5301.3030702@gmail.com \
    --to=seandarcy2@gmail.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.