LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 10-23-2009, 07:40 AM   #1
ranjeet_badhe
LQ Newbie
 
Registered: May 2006
Location: US
Distribution: Redhat Linux 9
Posts: 9

Rep: Reputation: 0
Question Configure DNS Spoofing


I want to configure DNS spoofing on Redhat Linux Server .Requirement is ,any name resolution query coming to DNS server must point to a external server which is hosting web application for service activiation.


Request to all readers to share details how to configure DNS spoofing on Red Hat Linux server.

Regards
Ranjeet Badhe
 
Old 10-24-2009, 04:38 PM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Tutorial

This sure looks like something you need: https://calomel.org/dns_spoof.html

Please let me ask: why are you implementing something that awkward? You should control such things on an application level insted of hacking your DNS. Maybe use a proxy server?
 
Old 10-25-2009, 01:22 AM   #3
ranjeet_badhe
LQ Newbie
 
Registered: May 2006
Location: US
Distribution: Redhat Linux 9
Posts: 9

Original Poster
Rep: Reputation: 0
My DNS Spoofing requirement.

Quote:
Originally Posted by janoszen View Post
This sure looks like something you need: https://calomel.org/dns_spoof.html

Please let me ask: why are you implementing something that awkward? You should control such things on an application level insted of hacking your DNS. Maybe use a proxy server?
Well I am testing provisioning of cable modem prepaid services.My test bed has Activiation webserver ,Billing server,CMTS ,and Cisco CNR DHCP server.When a customer starts browsing he gets ip address initally.The customer is required to get directed towards Service provders portal.Here DNS spoofing will direct him to towards the login web page irrespective of the URL customer is trying to browse.Once he is authenticated he can get webaccess.

DNS spoofing plays important rule here ,without this it is not possible to redirect him to ISP home page.

Regards
Ranjeet
 
Old 10-26-2009, 04:13 AM   #4
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Bad idea

Using DNS spoofing as a security measure is a bad idea since anybody can just use a different DNS server. You need a firewall redirect of all web trafic to your gateway server.
 
Old 10-26-2009, 05:53 AM   #5
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
I second janoszen's suggestion. Also, have you looked for already existing applications that do this sort of thing? Depending on your project constraints, using such a solution might be a better option than reinventing the wheel.

An example of using iptables to do the redirection janoszen mentioned is:
Code:
iptables -t nat -A PREROUTING -p TCP -i $LAN_IFACE --dport 80 -j REDIRECT
Here, HTTP requests would get redirected to the HTTP daemon on the firewall itself. You'd need to handle filtering in the FORWARD chain too, though. The way to do that would depend on what the overall approach would be. For example, you might choose to have a FORWARD/ACCEPT rule be implemented with the client's MAC/IP addresses when they log in, and have the rule removed when they log out (or time out). In other words, the kinda stuff which hotspot software does for you.

Last edited by win32sux; 10-26-2009 at 06:07 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: Possible Dns Spoofing Detected! ashsethi Linux - Security 16 07-19-2011 09:39 AM
How to configure DNS Server & DNS Client in RHEL4 chanakkya Linux - Networking 1 07-05-2009 01:41 PM
Spoofing MX records without querying DNS rubanek Linux - Networking 1 06-02-2008 01:56 PM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 05:13 PM
Help with SSH attack..DNS Spoofing laucian Linux - Newbie 1 10-15-2007 06:17 AM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
 
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
Open Source Consulting | Domain Registration