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.