First, the working scenario. One OpenVPN client (2.1~rc11 under ubuntu 9.04) connects to a OpenvPN server (2.1~rc11 ubuntu 8.10) using a ethernet interface (eth0). Both use TUN device and UDP connection. But when I turn on the wireless interface (ifup wlan0) in the client ,the host can't communicate with the server anymore. I read a bit about the problem but didn't found a working solution. Maybe setting some iptable rules to mark the incoming datagrams to output them through the same interface. Any help would be appreciated.
Thanks in advance
First of all, iptableS won't help when traffic is generated in your scenario. I suspect that when you turn on the wireless interface you have two default gateways; you can verify that by typing
route -n
and by checking how many lines starting with0.0.0.0
you can see. If this is the case, you need to delete one default route.If this is not the case, do check the linux advanced routing and traffic control howto (LARTC). Using the
ip
command will help you to set up tables to route specific traffic on single interfaces, so on and so forth.