LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
Search this Thread
Old 06-26-2006, 07:04 PM   #1
sancho
Member
 
Registered: Sep 2003
Distribution: Ubuntu 9.04/9.10 (64-bit)
Posts: 149

Rep: Reputation: 15
dnsmasq with Firestarter?


Howdy,

I run both a laptop and desktop in my room and would like to hook both into the network, but I have only one ethernet connection into the room. So what I've done is added a second NIC to the desktop, and then have the laptop connected via a crossover cable to the desktop. The desktop is then connected to a Linksys router, which connects everything to the Internet. The setup looks like this:

Code:
                                        [Desktop PC]
(INTERNET) <---> [Linksys Router] <---> eth0: 192.168.2.1       [Laptop]
                                        eth1: 192.168.3.1 <---> eth0: 192.168.3.2
I realize that Firestarter has the ability to setup the 'dhcp3-server' to provide DHCP capabilities on the internal interface, which works just fine. However, I would like to use 'dnsmasq' instead because of its smaller footprint and ability to answer DNS queries for the internal network. I have dnsmasq running just fine on the machine and, as long as the firewall isn't started, it correctly assigns the laptop an address and answers DNS queries. The problem is when I start the firewall with Firestarter: when I do this, the laptop never gets assigned an IP address.

It would seem that Firestarter is blocking DHCP requests on the internal interface (eth1) but it works fine using the "built in" dhcp3-server interface.

Any ideas on what I need to do to get this thing running with dnsmasq?

Thanks!
 
Old 06-27-2006, 02:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
wsell unless there is anything more blatant you would just unblock udp port 67 and 68.

personally though you don't seem to have really picked the best way to do what you want... you should actually buy a stupidly cheap switch and use that to plug both devices into the linksys subnet, and let that router serve dns and dhcp for you. unless there's a good reason not to, that's much simpler.
 
Old 06-27-2006, 07:48 PM   #3
sancho
Member
 
Registered: Sep 2003
Distribution: Ubuntu 9.04/9.10 (64-bit)
Posts: 149

Original Poster
Rep: Reputation: 15
Unblocking the ports which DHCP uses was the first thing I did, but oddly that didn't work: The firewall starts and dnsmasq runs, but the laptop doesn't get an IP. Stop the firewall and try again, and the laptop gets its IP immediately. I made sure the other DHCP server wasn't running in either case.

In fact, there is a way that's both cheaper than buying a new switch and more simple than setting up dnsmasq: I could simply setup a static IP on the laptop and call it a day. However, I use NetworkManager on the laptop to automagically handle all network activity, and it unfourtinately doesn't do static IPs. I added the NIC to the desktop because it was a spare I had laying around. I know I'm not the first Linux user out there who'd prefer not to pay for things that he can legitimately get for free.
 
Old 07-01-2006, 04:40 PM   #4
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Rep: Reputation: 30
its a bug between FIRESTARTER and DNSMASQ!!!
Check this link for a better explanation. And on the link a workarround is posted but it doesnt work 4M. Tell me if it does 4U
http://lists.thekelleys.org.uk/piper...q3/000431.html
 
Old 07-01-2006, 04:45 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
nice catch, wouldn't have eer got there myself!
 
  


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
dnsmasq question davepass Linux - Software 0 02-25-2006 05:01 PM
dnsmasq can't work ultrax Linux - Networking 1 08-05-2005 10:06 PM
dnsmasq users? TheRealDeal Linux - Networking 6 04-29-2004 02:24 AM
dnsmasq startup bardinjw Linux - Networking 2 07-19-2003 04:36 AM
Dnsmasq dunkyb Linux - Software 0 03-16-2003 03:25 PM


All times are GMT -5. The time now is 05:56 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