Hi,

I am testing the latest OpenVPN 2.0 with quagga. The server is configured to 
run in server mode with TAP interface. I can bring up the VPN link no problem 
and I can do connectivities between two hosts without any problem. My goal is 
to run OSPF with Quagga over the OpenVPN link. I have been using OpenVPN 1.x 
with TUN devices with Quagga OSPF without any problems for more than a year. 

Server A/TLS Server

(openvpn.conf)

port 5000
dev tap0
tls-server
ca ca.cert
cert hosta.cert
key hosta.key
dh dh2048.pem
mode server
client-config-dir /opt/openvpn-2.0/etc
ifconfig 192.168.36.1 255.255.255.224
ifconfig-pool 192.168.36.21 192.168.36.30
push "ping 5"
push "ping-restart 15"
push "ping-timer-rem"
push "inactive 30"
ping 5
ping-restart 15
ping-timer-rem
persist-tun
persist-key
passtos
comp-lzo
cipher AES-256-CBC
auth RSA-SHA1-2
askpass

Server B/TLS Client

(openvpn.conf)

port 5000
dev tap0
remote XXX.XXX.XXX.XXX
tls-client
ca ca.cert
cert hostb.cert
key hostb.key
resolv-retry infinite
pull
persist-tun
persist-key
cipher AES-256-CBC
auth RSA-SHA1-2
askpass
comp-lzo
passtos

Once the VPN link is up, Quagga can not establish links between two sides. 
After looking into more by doing tcpdump on the TAP interface, I found the 
following:

On TLS Server:

14:01:09.980878 192.168.36.3 > OSPF-ALL.MCAST.NET: OSPFv2-hello 44: backbone dr 
192.168.36.3 [tos 0xc0]  [ttl 1]
14:01:11.006828 192.168.36.1 > OSPF-ALL.MCAST.NET: OSPFv2-hello 48: backbone dr 
192.168.36.1 [tos 0xc0]  [ttl 1]
14:01:20.047635 192.168.36.3 > OSPF-ALL.MCAST.NET: OSPFv2-hello 44: backbone dr 
192.168.36.3 [tos 0xc0]  [ttl 1]
14:01:21.007230 192.168.36.1 > OSPF-ALL.MCAST.NET: OSPFv2-hello 48: backbone dr 
192.168.36.1 [tos 0xc0]  [ttl 1]
14:01:29.983184 192.168.36.3 > OSPF-ALL.MCAST.NET: OSPFv2-hello 44: backbone dr 
192.168.36.3 [tos 0xc0]  [ttl 1]
14:01:31.007617 192.168.36.1 > OSPF-ALL.MCAST.NET: OSPFv2-hello 48: backbone dr 
192.168.36.1 [tos 0xc0]  [ttl 1]

On TLS Client:

14:00:29.962852 192.168.36.3 > OSPF-ALL.MCAST.NET: OSPFv2-hello 44: backbone dr 
192.168.36.3 [tos 0xc0]  [ttl 1]
14:00:39.963003 192.168.36.3 > OSPF-ALL.MCAST.NET: OSPFv2-hello 44: backbone dr 
192.168.36.3 [tos 0xc0]  [ttl 1]
14:00:49.963155 192.168.36.3 > OSPF-ALL.MCAST.NET: OSPFv2-hello 44: backbone dr 
192.168.36.3 [tos 0xc0]  [ttl 1]
14:00:59.963306 192.168.36.3 > OSPF-ALL.MCAST.NET: OSPFv2-hello 44: backbone dr 
192.168.36.3 [tos 0xc0]  [ttl 1]
14:01:09.963458 192.168.36.3 > OSPF-ALL.MCAST.NET: OSPFv2-hello 44: backbone dr 
192.168.36.3 [tos 0xc0]  [ttl 1]

As you can see, on the TLS server side, traffic to and from the remote client 
showed up on the TAP interface. However, on the TLS client side, only traffic 
to the server showed up on the TAP interface and all traffic from the server 
never showed up on the TAP interface. 

Then, I tried to do a broadcast ping on both ends with "ping -b 
xxx.xxx.xxx.xxx" and ICMP echo and reply showed up on both ends on the TAP 
interface.

Is this a bug related to OpenVPN or it is a setting issue?

Thanks!


Reply via email to