LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-31-2006, 08:36 PM   #1
squishywalrus
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Rep: Reputation: 0
Linux router trouble


Ok, so I'm trying to set up one of my old machines as a router using dhcp3-server, iptables, and dnsmasq.

As for hardware, it goes from my Ubuntu box to a wireless AP and then a couple laptops connect over wireless.

I believe I have everything set up correctly, but whenever I plug in the wireless AP, it doesn't show any activity lights on the AP, or the netword card that its connected to, and the laptop doesnt get an IP or get a gateway IP.

heres my dchpd.conf:
Code:
authoritative;
ddns-update-style interim;
subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.100 192.168.0.250;
    default-lease-time 259200;
    max-lease-time 518400;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.0.255;
    option routers 192.168.0.1;
    option domain-name-servers 192.168.0.1;
}
my dnsmasq.conf (all the uncommented lines, at least):
Code:
domain-needed
bogus-priv
my iptables rules:
Code:
# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
REJECT     udp  --  anywhere             anywhere            udp dpt:bootps reject-with icmp-port-unreachable
REJECT     udp  --  anywhere             anywhere            udp dpt:domain reject-with icmp-port-unreachable
DROP       tcp  --  anywhere             anywhere            tcp dpts:0:1023
DROP       udp  --  anywhere             anywhere            udp dpts:0:1023

Chain FORWARD (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             192.168.0.0/16
ACCEPT     all  --  192.168.0.0/16       anywhere
ACCEPT     all  --  anywhere             192.168.0.0/16

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
and finally, ifconfig:
Code:
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:A0:24:B9:F9:7A
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2a0:24ff:feb9:f97a/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0xe400

eth1      Link encap:Ethernet  HWaddr 00:A0:CC:76:50:59
          inet addr:130.49.2.145  Bcast:130.49.3.255  Mask:255.255.254.0
          inet6 addr: 2002:8231:213:5:2a0:ccff:fe76:5059/64 Scope:Global
          inet6 addr: fec0::5:2a0:ccff:fe76:5059/64 Scope:Site
          inet6 addr: fe80::2a0:ccff:fe76:5059/64 Scope:Link
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:37990 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6587 errors:3 dropped:0 overruns:0 carrier:6
          collisions:0 txqueuelen:1000
          RX bytes:11699927 (11.1 MiB)  TX bytes:707094 (690.5 KiB)
          Interrupt:10 Base address:0x2000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:46954 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46954 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3362701 (3.2 MiB)  TX bytes:3362701 (3.2 MiB)
I have eth1 set to connect to the WAN, and eth0 to the LAN.

Any assistance would be greatly appreciated.
 
Old 01-31-2006, 09:13 PM   #2
jeffvph
LQ Newbie
 
Registered: Jul 2005
Posts: 26

Rep: Reputation: 15
What kind of cable did you use to connect your ubuntu box and your wireless AP? What brand and model is your AP?

If you are not using a switch/hub, you need a cross cable to connect your ubuntu box and wireless AP.
 
Old 02-06-2006, 07:53 PM   #3
squishywalrus
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry for the delayed reply, and, ya, I have a crossover cable, and my AP is a Netgear WG602 v1.

Hope this info helps.
 
Old 02-09-2006, 06:29 PM   #4
squishywalrus
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
?

Anyone have any ideas?
 
  


Reply



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
Trouble with modem router ale_x_andru Linux - Hardware 1 01-21-2006 03:50 PM
Router Trouble Can't Connect Xaul Linux - Networking 2 11-26-2004 11:54 AM
ndiswrapper: trouble connecting to router nvidiausr Linux - Wireless Networking 1 11-03-2004 12:34 AM
Trouble connecting tru router darkangel12613 Linux - Networking 0 07-21-2004 07:24 AM
Router + DSL + RedHat 8.0 = Trouble the_styler Linux - Networking 1 04-05-2003 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:24 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
Open Source Consulting | Domain Registration