Help With Building a Smart Relay [keywords: repeater, wireless to wireless bridge, range extender.]
Mon Apr 14 03:37:23 PDT 2003
On Fri, 11 Apr 2003, Phill Kenoyer wrote:
> I'm sorry if this has been covered before. I have gone over all the
> archives and could not find reference to it.
> client to the server or the server to the client. I'm not doing
> NAT/MASQ. I know that its a routing problem, but I'm not sure how to
> fix it. I've tried to bridge the two wireless cards, but that does not
> work. Maybe its a IP Tables forward rule or something. I have been
> searching the net for an answer, but I can not find one.
try this in ip router mode on the repeater:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
iptables -F -t mangle
iptables -t mangle -X
iptables -F -t nat
iptables -t nat -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
it should open the forwarding gates.
if your server act as a gateway to the internet, add this on the
route del default
route add default gw <server's ip> <server's link interface>
Your clients must have the ip adress of the repeater as their default
route add default gw <repeater's IP(clientside)> <wireless interface>
if it doesn't work, you should perhaps update kernel...
Have a good routing day!
More information about the Hostap