Hello all,
I own a wireless router (wrt54gs) and I need some help on the
configuration if someone knows a good guide or maybe has some advice.
Here's my network layout.
Internet
|
|
eth0
(firewall/server )eth1 ------ (wired pc)
eth2
|
|
linksys ------- (wirless pc) & (wirelss pc)
I've configured dhcpd on the server
Code:
ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0
{
range 192.168.1.25 192.168.1.50;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name-servers 68.87.68.162, 68.87.74.162;
option routers 192.168.1.1;
default-lease-time 21600;
max-lease-time 43200;
}
subnet 192.168.2.0 netmask 255.255.255.0
{
range 192.168.2.100 192.168.2.150;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option domain-name-servers 68.87.68.162, 68.87.74.162;
option routers 192.168.2.1;
default-lease-time 21600;
max-lease-time 43200;
}
here's my network card info.
Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]="192.168.1.1"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]="192.168.2.1"
NETMASK[2]="255.255.255.0"
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
here's routing information
Code:
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
76.xxx.xxx.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 76.xxx.xxx.1 0.0.0.0 UG 0 0 0 eth0
also, my almost no firewall !! for now.
Code:
#!/bin/bash
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -s 192.168.1.0/24 -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
I can swap the cables on eth1 and eth2 to my wired pc and everything works so I know that the dhcpd sever is working on both interfaces or at least one at a time.
I have failed at all my attempts to get the wireless pc's working through the server so any help would be appreciated.