<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Yann Garcia" <</FONT><A 
href="mailto:yann.garcia@smartcom.com"><FONT face=Arial 
size=2>yann.garcia@smartcom.com</FONT></A><FONT face=Arial 
size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "'General Red Hat Linux discussion list'" 
<</FONT><A href="mailto:redhat-list@redhat.com"><FONT face=Arial 
size=2>redhat-list@redhat.com</FONT></A><FONT face=Arial 
size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Monday, April 19, 2004 12:01 PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: RE : Router problems on Redhat 9.0 Linux 
2.4.20-13.9.HOSTAP</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>-----Message d'origine-----<BR>De : </FONT><A 
href="mailto:redhat-list-bounces@redhat.com"><FONT face=Arial 
size=2>redhat-list-bounces@redhat.com</FONT></A><BR><FONT face=Arial 
size=2>[mailto:redhat-list-bounces@redhat.com] De la part de Pete 
Nesbitt<BR>Envoyé : vendredi 16 avril 2004 03:33<BR>À : </FONT><A 
href="mailto:yann.garcia@smartcom.com"><FONT face=Arial 
size=2>yann.garcia@smartcom.com</FONT></A><FONT face=Arial size=2>; General Red 
Hat Linux discussion list<BR>Objet : Re: Router problems on Redhat 9.0 Linux 
2.4.20-13.9.HOSTAP<BR><BR>On April 15, 2004 12:21 am, Yann Garcia wrote:<BR>> 
Hi,<BR>><BR>> On my Linux box, I have two network interfaces: a LAN 
interface (eth0)<BR>and<BR>> a WLAN (wlan0). I set ip forwarding in 
/etc/sysctl.conf. I start a<BR>sniffer<BR>> (tethereal) on both interfaces. 
When I make a ping from WLAN network<BR>to LAN<BR>> network, ping don' cross 
my gateway. The networks infos are:<BR>> eth0: 10.0.1.37/16<BR>> wlan0: 
10.0.10.1/24<BR>> The route tables are (netstat 
-rn):<BR>>          
Destination     Passerelle      
Genmask         Indic   
MSS<BR>> Fenetre irtt Iface 10.0.10.0       
0.0.0.0         
255.255.255.0   U<BR><BR>>  0 
0          0 wlan0 
10.0.0.0        
0.0.0.0         
255.255.0.0<BR>U   <BR>>     0 
0          0 eth0 
169.254.0.0     
0.0.0.0         255.255.0.0<BR>U 
<BR>>       0 
0          0 wlan0 
127.0.0.0       
0.0.0.0         255.0.0.0<BR><BR>> 
U         0 
0          0 lo 
0.0.0.0         
10.0.0.1        0.0.0.0<BR><BR>> 
UG        0 
0          0 eth0<BR>><BR>> 
The iptables rules are (iptables -L -n 
-v):<BR>>          Chain INPUT 
(policy ACCEPT 17346 packets, 1205K 
bytes)<BR>>           pkts 
bytes target     prot opt in     
out     source<BR><BR>>  
destination<BR>><BR>>          
Chain FORWARD (policy ACCEPT 0 packets, 0 
bytes)<BR>>           pkts 
bytes target     prot opt in     
out     source<BR><BR>>  
destination<BR>><BR>>          
Chain OUTPUT (policy ACCEPT 17144 packets, 1306K 
bytes)<BR>>           pkts 
bytes target     prot opt in     
out     source<BR><BR>>  destination<BR>><BR>> 
I'm sorry but I don't understand why my gateway doesn't work!<BR>><BR>> 
Thank you very much for your assistance,<BR>><BR>> Best 
regards,<BR>><BR>> Yann Garcia<BR>> Software Engineer<BR>><BR>> 
SmartCom<BR>> 400, Av Roumanille - BP 309<BR>> 06906 Sophia Antipolis 
Cedex<BR>> France<BR>><BR>> Tel: +33 493 008 746<BR>> Fax: +33 493 
001 101<BR>> Mail: </FONT><A href="mailto:yann.garcia@smartcom.com"><FONT 
face=Arial size=2>yann.garcia@smartcom.com</FONT></A><BR><FONT face=Arial 
size=2>> Site: </FONT><A href="http://www.smartcom.com"><FONT face=Arial 
size=2>www.smartcom.com</FONT></A><BR><BR><BR><FONT face=Arial 
size=2>Hi,<BR>Your eth0's network contains of the wlan IP range.<BR>10.0.1.37/16 
is part of a network ip range of 10.0.0.1 to 10.0.255.254<BR>Your wlan range is 
inside that so no routing is performed.<BR><BR>You want to use a class C range 
for the wlan, so instead of 10.0.10.0<BR>network,<BR>try using one of the 
192.168. class C networks. It may make be best to<BR>use 2<BR>different 192.168 
networks (say 192.168.0.0/24 for LAN and<BR>192.168.1.0/24 for<BR>the 
WLAN).<BR><BR>Class A 1.0.0.0 - 127.255.255.255<BR>Class B 128.0.0.0 - 
191.255.255.255<BR>Class C  192.0.0.0 - 223.255.255.255<BR><BR>Hope that 
helps.<BR>--<BR>Pete Nesbitt, rhce<BR><BR><BR>Hi Pete<BR><BR><BR>I use 10.1.10.0 
as network for my wlan0 interface. The both interfaces<BR>seam to be ok: I can 
run telnet on each network (LAN on eth0 and WLAN on<BR>wlan0). But the problem 
persists: it's impossible to ping a machine on<BR>LAN area (10.0.2.201) from a 
machine in WLAN area (10.1.10.2).<BR>The interfaces configurations 
are:<BR>Eth0:<BR>        InetAddr: 
10.0.1.37/16<BR>        Network: 
10.0.1.0<BR>        Broadcast: 
10.0.1.255<BR>Wlan0:<BR>        InetAddr: 
10.1.10.1/24<BR>        Network: 
10.1.10.0<BR>        Broadcast: 10.1.10.255 
<BR><BR>L'IP forwarding is active (echo 1 > 
/proc/sys/net/ipv4/ip_forward).<BR><BR>The netstat -rn output is:<BR>Table de 
routage IP du noyau<BR>Destination   Passerelle    
Genmask       Indic   MSS FenĂȘtre 
irtt<BR>Iface<BR>10.1.10.0     
0.0.0.0       255.255.255.0   
U         0 
0          
0<BR>wlan0<BR>10.0.0.0      
0.0.0.0       255.255.0.0     
U         0 
0          
0<BR>eth0<BR>169.254.0.0   0.0.0.0       
255.255.0.0     
U         0 
0          
0<BR>wlan0<BR>127.0.0.0     
0.0.0.0       
255.0.0.0       
U         0 
0          0 
lo<BR>0.0.0.0       
10.0.0.1      
0.0.0.0         
UG        0 
0          0<BR>eth0<BR><BR>The 
iptables --numeric --verbose --List output is:<BR>Chain INPUT (policy ACCEPT 76 
packets, 5196 bytes)<BR> pkts bytes target   prot opt 
in   out     
source<BR>destination        <BR><BR>Chain 
FORWARD (policy ACCEPT 0 packets, 0 bytes)<BR> pkts bytes 
target   prot opt in   out     
source<BR>destination        
<BR>    0     0 
ACCEPT     all  --  
*      *       
0.0.0.0/0<BR>0.0.0.0/0         
<BR><BR>Chain OUTPUT (policy ACCEPT 76 packets, 5196 bytes)<BR> pkts bytes 
target   prot opt in     
out     
source<BR>destination        <BR><BR><BR>I 
don't understand what happen!!???<BR>Please, can you help me?<BR><BR>Thank you 
very much,<BR><BR>Cheers,<BR><BR>Yann Garcia</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#ff0000 size=2>I'm not sure but I think that 
my first reply didn't reach RH disc. list so I'll post it again. 
</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#ff0000 size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#ff0000 size=2>The network from eth0 isn't 
correct: it should be 10.0.0.0 for IP with /16 mask.</FONT></DIV>
<DIV><BR></DIV><FONT size=2></FONT></FONT>
<P><FONT face=Arial size=2></FONT></P></BODY></HTML>