Hi,
Now everything works.
What have been done.
- Reinstallation of both Linux boxes into FC4.
- Edit of /etc/sysctl.conf file to force ip_forwading + reboot
- Reconfig of vpn server and client : keys + client and server config file.
- Configure routes as mentionned previously on each linux box and each LAN's
hosts.
The only thing is to add to a client config file on the server the 254 IP
addresses possible with iroute keyword, ie :
iroute "192.168.0.1 255.255.255.0"
iroute "192.168.0.2 255.255.255.0"
iroute "192.168.0.3 255.255.255.0"
iroute "192.168.0.4 255.255.255.0"
....
iroute "192.168.0.254 255.255.255.0"
Now all the systems can ping each others.
I don't really know what was wrong with FC3 configuration but now in FC4 ,
everything works. I don't think it was a FC3 problem. Could be several
configuration problem at the same time.
A big thank you for all your support.
Bye.
Franck.
"Steve Horsley" <(E-Mail Removed)> a écrit dans le message de news:
d8qekd$73n$(E-Mail Removed)...
> Franck wrote:
>> Hi,
>>
>> thanks for your answer.
>>
>> I've progressed a bit based on your suggestion, but there are still some
>> problems.
>>
>> Here is what I did :
>> - I configured tun device driver as mentionned.
>> - I setup proper routes in others hosts of each LAN. I added 2 each time
>> :
>> *** On server's LAN hosts :
>> route to 10.8.0.0 via 192.168.1.1
>> route to 192.168.0.0 via 192.168.1.1
>>
>> *** On client's LAN hosts :
>> route to 10.8.0.0 via 192.168.0.1
>> route to 192.168.1.0 via 192.168.0.1
>>
>
> Looks good...
>
>
>> Now,
>> - when i ping from the client a host on server's LAN, it works.
>> - when i ping from the server a host on client's LAN, it works only if
>> add the host in the client config file on server. Which is very strange
>> for me !!!
>
> Ah! I think I know why this is. There is a virtual router sitting in the
> middle of the VPN, with the two IP addreses 10.8.0.2 and 10.8.0.6. Maybe
> the client config is pushng routes into this virtual router, telling it
> which of many possible clients the 192.168.1.x network can be reached on.
> So I guess the client config should specify the client network -
> 192.168.1.0 255.255.255.0.
>
>>
>> BUT :
>> - if i ping from a host on the client's LAN to a host on server's LAN, it
>> doesn't work !
>> - if i ping from a host on the server's LAN to a host on client's LAN, it
>> doesn't work !
>>
>> tcpdump -i tun0 on each machine doesn't show any trafic in this case. So
>> it means nothing is send via the VPN tunnel when the packet is coming
>> from the LAN.
>>
>> I've checked that ip_forward is enabled on each Linux box.
>
> This I don't understand. We know that forwarding is enabled because the
> client can ping the server LAN (proves the server can forward) and the
> server can ping the client LAN (proves the client can forward). It really
> smells like either missing routes or firewall entries to me. I would
> probably use tcpdump to prove that packets are (not) traversong every
> interface on every step of this journey. Prove they arrive on eth0, prove
> they exit on tun0 etc. Try to find exactly where they are going missing.
>
> Steve
>
|