<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C42784.A7CB2050">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DontDisplayPageBoundaries/>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:HyphenationZone>21</w:HyphenationZone>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.StyleCourrierlectronique18
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Tableau Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=FR link=blue vlink=blue style='tab-interval:35.4pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Message d'origine-----<br>
<b><span style='font-weight:bold'>De :</span></b> Crucificator
[mailto:crucificator@xnet.ro] <br>
<b><span style='font-weight:bold'>Envoyé :</span></b> lundi 19 avril 2004
15:54<br>
<b><span style='font-weight:bold'>À :</span></b> yann.garcia@smartcom.com;
General Red Hat Linux discussion list<br>
<b><span style='font-weight:bold'>Objet :</span></b> Re: Router problems
on Redhat 9.0 Linux 2.4.20-13.9.HOSTAP</span></font></p>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>----- Original Message ----- </span></font><o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>From: "Yann Garcia" <</span></font><a
href="mailto:yann.garcia@smartcom.com"><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>yann.garcia@smartcom.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>></span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>To: "'General Red Hat Linux
discussion list'" <</span></font><a href="mailto:redhat-list@redhat.com"><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>redhat-list@redhat.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>></span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Sent: Monday, April 19, 2004 4:43 PM</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Subject: RE : Router problems on
Redhat 9.0 Linux 2.4.20-13.9.HOSTAP</span></font><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-left:35.4pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>-----Message d'origine-----<br>
De : </span></font><a href="mailto:redhat-list-bounces@redhat.com"><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>redhat-list-bounces@redhat.com</span></font></a><br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>[mailto:redhat-list-bounces@redhat.com]
De la part de Crucificator<br>
Envoyé : lundi 19 avril 2004 15:29<br>
À : General Red Hat Linux discussion list<br>
Objet : Re: Router problems on Redhat 9.0 Linux 2.4.20-13.9.HOSTAP<br>
 <br>
 <br>
----- Original Message ----- <br>
From: "Yann Garcia" < <</span></font><a
href="mailto:yann.garcia@smartcom.com"><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>mailto:yann.garcia@smartcom.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>><br>
</span></font><a href="mailto:yann.garcia@smartcom.com"><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>yann.garcia@smartcom.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>><br>
To: "'General Red Hat Linux discussion list'" <<br>
<</span></font><a href="mailto:redhat-list@redhat.com"><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>mailto:redhat-list@redhat.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>> </span></font><a
href="mailto:redhat-list@redhat.com"><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>redhat-list@redhat.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>><br>
Sent: Monday, April 19, 2004 12:01 PM<br>
Subject: RE : Router problems on Redhat 9.0 Linux 2.4.20-13.9.HOSTAP<br>
 <br>
-----Message d'origine-----<br>
De :  <</span></font><a href="mailto:redhat-list-bounces@redhat.com"><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>mailto:redhat-list-bounces@redhat.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>><br>
</span></font><a href="mailto:redhat-list-bounces@redhat.com"><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>redhat-list-bounces@redhat.com</span></font></a><br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>[mailto:redhat-list-bounces@redhat.com]
De la part de Pete Nesbitt<br>
Envoyé : vendredi 16 avril 2004 03:33<br>
À :  <</span></font><a href="mailto:yann.garcia@smartcom.com"><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>mailto:yann.garcia@smartcom.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>> </span></font><a
href="mailto:yann.garcia@smartcom.com"><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>yann.garcia@smartcom.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>; General<br>
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:  <</span></font><a href="mailto:yann.garcia@smartcom.com"><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>mailto:yann.garcia@smartcom.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>> </span></font><a
href="mailto:yann.garcia@smartcom.com"><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>yann.garcia@smartcom.com</span></font></a><br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>>
Site:  <</span></font><a href="http://www.smartcom.com"><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>http://www.smartcom.com</span></font></a><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>> </span></font><a
href="http://www.smartcom.com"><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>www.smartcom.com</span></font></a><br>
<br>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>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<br>
 <br>
 <br>
I'm not sure but I think that my first reply didn't reach RH disc. list<br>
so I'll post it again. <br>
 <br>
The network from eth0 isn't correct: it should be 10.0.0.0 for IP with<br>
/16 mask.<br>
 <br>
Oups, I make a key error: I agree with you, for eth0, the network is<br>
10.0.0.0 (not 10.0.1.0) and the broadcast is 10.0.255.255.<br>
I'm sorry !<br>
Here are the ifcfg-eth0 & ifcfg-wlan0:<br>
 <br>
# Please read /usr/share/doc/initscripts-*/sysconfig.txt<br>
# for the documentation of these parameters.<br>
USERCTL=no<br>
PEERDNS=yes<br>
GATEWAY=10.0.0.1<br>
TYPE=Ethernet<br>
DEVICE=eth0<br>
#BOOTPROTO=none<br>
BOOTPROTO=dhcp<br>
NETMASK=255.255.0.0<br>
ONBOOT=yes<br>
DHCP_HOSTNAME=10.0.2.201<br>
#IPADDR=10.0.3.1<br>
NETWORK=10.0.0.0<br>
BROADCAST=10.0.255.255<br>
 <br>
 <br>
# Please read /usr/share/doc/initscripts-*/sysconfig.txt<br>
# for the documentation of these parameters.<br>
DEVICE=wlan0<br>
BOOTPROTO=static<br>
ONBOOT=yes<br>
IPADDR=10.1.10.1<br>
NETMASK=255.255.255.0<br>
NETWORK=10.1.10.0<br>
BROADCAST=10.1.10.255<br>
 <br>
Cheers,<br>
 <br>
Yann<br>
 </span></font><o:p></o:p></p>

<p style='margin-left:35.4pt'><font size=2 color=red face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:red'>Bottom line: is it working
now? :)</span></font><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></font></p>

<p><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy;mso-ansi-language:EN-GB'>Hi, <o:p></o:p></span></font></p>

<p><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy;mso-ansi-language:EN-GB'>No, I already have the
same problem. I check all network <span class=SpellE>config</span>. <span
class=GramE>files</span>: I use 10.1.10.0 as network for my wireless network.<o:p></o:p></span></font></p>

<p><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy;mso-ansi-language:EN-GB'>When I’m connected
to the WLAN, the DHCP server gives me a right address, I can ping the wlan0
interface (10.1.10.1) and the eth0 interface 10.0.1.37.<o:p></o:p></span></font></p>

<p><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy;mso-ansi-language:EN-GB'>But I can’t ping the
LAN gateway (10.0.0.1). The <span class=SpellE>tethereal</span> output (<span
class=SpellE>tetherearl</span> –<span class=SpellE>i</span> eth0 –V
–N –<span class=SpellE>mnt</span>) on eth0 doesn’t log any
request coming from my wireless station.<o:p></o:p></span></font></p>

<p><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy;mso-ansi-language:EN-GB'>Cheers,<o:p></o:p></span></font></p>

<p><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy;mso-ansi-language:EN-GB'>Yann<o:p></o:p></span></font></p>

</div>

</body>

</html>