LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-03-2005, 12:18 AM   #1
mugwump84
Member
 
Registered: Mar 2005
Distribution: Arch Linux
Posts: 61

Rep: Reputation: 15
IP Masquerading


I have a run-of-the-mill dial up connection that is typical in that I only need to know their phone number to connect. I have read a couple of how-tos on IP masquerading, and I want to set up my box as a router, with a Windoze as a client. What I was wondering is that if the clients could obtain the ISP's DNS addresses via DHCP, as none of the HOWTOS mentioned it.
 
Old 05-03-2005, 12:26 AM   #2
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Yes the DHCP clients can have, in fact, any DNS you want to give them.

What I would suggest you do is dial in and check what the primary and secondary DNS addresses are, then modify your dhcpd.conf thusly:
Code:
subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers 192.168.1.1;
        option domain-name-servers 206.47.244.12, 206.47.244.42;
        option ip-forwarding on;
        range 192.168.1.100 192.168.1.254;
}
The part in bold are the two DNS that my ISP uses, so I just pass those on to my clients. I'm not sure if this would happen automatically or not, but I've always done it manually.
 
Old 05-03-2005, 12:26 AM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
You can either set up your masq box to provide dns masquerading services or as a dhcp server to rebroadcast the IPs of the DNS servers.
 
Old 05-03-2005, 12:36 AM   #4
mugwump84
Member
 
Registered: Mar 2005
Distribution: Arch Linux
Posts: 61

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Matir
You can either set up your masq box to provide dns masquerading services or as a dhcp server to rebroadcast the IPs of the DNS servers.
How would you set it up for DNS Masquerading?

Thanks.
 
Old 05-03-2005, 12:50 AM   #5
devilkin
Member
 
Registered: Jan 2005
Location: Australia
Distribution: LFS 6.0 #15056
Posts: 50

Rep: Reputation: 15
Perhaps you can even set up a dns cache (really nice if using a linux based firewall like smoothwall).
 
Old 05-03-2005, 10:30 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
I run a program called "dnsmasq" which does DNS masquerading/caching. BIND can also serve as a DNS cache, but I think it's a bit overkill.
 
  


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
IP Masquerading ? emailssent Linux - Networking 1 10-07-2004 11:49 PM
help ip masquerading campusloop Linux - Networking 1 05-20-2004 01:37 PM
IP masquerading. somebody help me! Johnsernickle Linux - Networking 4 10-22-2002 07:57 PM
IP Masquerading kwigibo Linux - Networking 3 09-21-2002 08:46 PM
ip masquerading artman62 Linux - Security 5 08-13-2002 08:57 PM


All times are GMT -5. The time now is 12:51 PM.

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