Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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, 02:10 AM   #2
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, 06:51 AM   #3
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, 05:57 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,309

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

Original Poster
Rep: Reputation: 0

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-13-2009, 11:46 PM   #6
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
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?


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

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration