LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-12-2009, 02:45 AM   #1
karthik9110
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Restricting Dynamic Ipaddress by based on Dynamic DNS host names


hello

I want to restrict the Visitors to my Webserver whom i want to give access
But the persons whom i want to give access. have Dynamic IP..

I want to use DynDNS and update IP address of person.

Based on the Hostname Pointing to Dynamic address of person

Can i Block the visitors???
 
Old 12-12-2009, 03:10 AM   #2
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Rep: Reputation: 20
Wouldn't you be able to get the desired result by creating authenticated users and having them login? This would have the added benefit of allowing the users to access the server from any location.
 
Old 12-12-2009, 07:51 AM   #3
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
IP filtering is not applicable unless it's static.
 
Old 12-13-2009, 06:57 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
I agree with post#2, it'd be easier to use .htaccess/.htpasswd files and get the users to login.
 
Old 12-14-2009, 12:22 AM   #5
karthik9110
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Reply

If i use .htacces/htpasswd and add users there...

if a use who has been given access can share his login details with other persons and can misuse it

i dont want that to be happened

so i want to restrict by IP address.

Dynamic IP address converting to hostname using DynamicDNs

Can Host /IP filtering done???
 
Old 12-14-2009, 12:46 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
No. You really don't want iptables to do name-resolution for each connection,
that's madness, the bandwidth, the artificially introduced latency, ...

I'm sure there's a way to make sure with authentication that only one
user can be logged in at a time?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dynamic Virtual Hosting with Multiple Domain Names bahbahthelamb Linux - Server 6 02-10-2010 01:43 PM
iptables script - How can I define a dynamic IPaddress theinfidel Linux - Networking 2 12-26-2008 11:47 AM
PTR records on dynamic ipaddress coolb Linux - Networking 8 12-21-2006 03:10 AM
static names with dynamic ip's linux_console Linux - Networking 2 01-12-2006 05:32 PM
Software to Host Dynamic DNS Server MrO2 Linux - Software 1 07-22-2005 02:57 PM


All times are GMT -5. The time now is 04:22 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration