Re: Cannot connect two ospf-instances over tun-interface

2018-04-05 Thread dawid k
Hello, I got the server to work. The issue was, that I didn't disable iptables correct. Now two client and the server are exchanging own routes. I connected to one client another one over a router and the router is connected to the ospf-network as well. But somehow I cannot contact the new clien

Re: Cannot connect two ospf-instances over tun-interface

2018-04-04 Thread dawid k
2018-04-04 12:31 GMT+02:00 Ondrej Zajicek : > On Wed, Apr 04, 2018 at 11:35:03AM +0200, dawid k wrote: > > 2018-04-04 10:59 GMT+02:00 Jan Maria Matejka : > > > > > Hello, > > > > > > please could you enable 'debug all' for the ospf protocol at server? > > > It should tell you whether it receives t

Re: Cannot connect two ospf-instances over tun-interface

2018-04-04 Thread Ondrej Zajicek
On Wed, Apr 04, 2018 at 11:35:03AM +0200, dawid k wrote: > 2018-04-04 10:59 GMT+02:00 Jan Maria Matejka : > > > Hello, > > > > please could you enable 'debug all' for the ospf protocol at server? > > It should tell you whether it receives the packets and what is it doing > > with them. > > > > It

Re: Cannot connect two ospf-instances over tun-interface

2018-04-04 Thread Jan Maria Matejka
Hmmm ... will try it on my own network some time this week. If I don't send any report until Monday (April 9th), please ping me. M. On 04/04/2018 11:35 AM, dawid k wrote: > > > 2018-04-04 10:59 GMT+02:00 Jan Maria Matejka >: > > Hello, > > please could you

Re: Cannot connect two ospf-instances over tun-interface

2018-04-04 Thread dawid k
2018-04-04 10:59 GMT+02:00 Jan Maria Matejka : > Hello, > > please could you enable 'debug all' for the ospf protocol at server? > It should tell you whether it receives the packets and what is it doing > with them. > It is enabled, Here the logs: 2018-04-04 11:22:42 myOSPF3: Initializing 2018

Re: Cannot connect two ospf-instances over tun-interface

2018-04-04 Thread Jan Maria Matejka
Hello, please could you enable 'debug all' for the ospf protocol at server? It should tell you whether it receives the packets and what is it doing with them. OpenVPN in TUN mode does quite strange things with routing. Have you tried routing by static routes first (to see whether it works or not)

Re: Cannot connect two ospf-instances over tun-interface

2018-04-04 Thread dawid k
Additional info: bird show ospf state on server: area 0.0.0.0 router 10.29.0.1 distance 0 stubnet 10.29.0.0/22 metric 10 external 1.1.1.1/32 metric 33 external 10.29.0.0/22 metric 33 I wonder, why my netowrk is marked as st

Re: Cannot connect two ospf-instances over tun-interface

2018-04-04 Thread dawid k
Hi Chris, Thank you for your advice, I got a little bit forward. I expended my topology with another pc - another vpn client - and I got these two vpn clients working, but somehow I cannot get the server to work properly. The server remains always in state Init/Other. I can see with tcpdump, th

Cannot connect two ospf-instances over tun-interface

2018-04-03 Thread Chris Boot
[re-sending to the list with the correct From address] Hi, You should be able to do this with 'topology subnet' on your server end. It doesn't work with net30 (the default) or p2p, but I can confirm that OSPFv2 for IPv4 works in broadcast mode with 'topology subnet'. I think there are issues wit

Re: Cannot connect two ospf-instances over tun-interface

2018-04-03 Thread dawid k
Therefore I tried running ospf in broadcast mode as well, but then it changed automatically: myOSPF3: Cannot use interface tun0 as broadcast, forcing ptp I tried the tap-Interface and it's working (or at least the neighbours were detected) but as said, my system has to use tun and I cannot chang

Re: Cannot connect two ospf-instances over tun-interface

2018-04-03 Thread Ondrej Zajicek
On Tue, Apr 03, 2018 at 08:05:41AM -0600, Michael McConnell wrote: > OpenVPN won’t do multicast over TUN, only TAP. Well, that would be silly from OpenVPN. But tcpdump output from Dawid K shows that multicast packets are propagated throught TUN: > 06:59:00.439738 IP (tos 0xc0, ttl 1, id 15270, o

Re: Cannot connect two ospf-instances over tun-interface

2018-04-03 Thread Michael McConnell
OpenVPN won’t do multicast over TUN, only TAP. -- Michael McConnell WINK Streaming; email: mich...@winkstreaming.com toll free: 877-GO-4-WINK x 7400 direct: +1 312 281-5434 cell: +506 8706-2389 skype: wink-michael web: http://winkstreaming.com > On Apr 3, 2018, at 1:23 AM, dawid k wrote: > > i

Re: Cannot connect two ospf-instances over tun-interface

2018-04-03 Thread Ondrej Zajicek
On Tue, Apr 03, 2018 at 09:23:34AM +0200, dawid k wrote: > ip addr list: > server: > > eth0, lo and > 5: tun0: mtu 1500 qdisc > pfifo_fast state UNKNOWN qlen 100 > link/[65534] > inet 10.29.0.1 peer 10.29.0.2/32 scope global tun0 > > client: > > 977: tun0: mtu 1500 qdisc > pfifo_fast q

Re: Cannot connect two ospf-instances over tun-interface

2018-04-03 Thread dawid k
ip addr list: server: eth0, lo and 5: tun0: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100 link/[65534] inet 10.29.0.1 peer 10.29.0.2/32 scope global tun0 client: 977: tun0: mtu 1500 qdisc pfifo_fast qlen 100 link/[65534] inet 10.29.0.6 peer 10.29.0.5/32 scope global tun0

Re: Cannot connect two ospf-instances over tun-interface

2018-03-29 Thread Michael McConnell
Hello Dawid, I fought with this one for some time, I did get it working with OpenVPN but threw it out in favor of Tinc in the end… Here is are the couple gotchas I ran into for OenVPN; 1. Use tap instead of tun 2. Ensure you have an interface (show interfaces) If you do not have interfaces on t

Re: Cannot connect two ospf-instances over tun-interface

2018-03-29 Thread Ondrej Zajicek
On Thu, Mar 29, 2018 at 03:02:52PM +0200, dawid k wrote: > Here my configuration (client): > > ifconfig tun0: > tun0 Link encap:UNSPEC HWaddr > 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 > inet addr:10.29.0.10 P-t-P:10.29.0.9 Mask:255.255.255.255 > > bird_ospf.conf (include

Re: Cannot connect two ospf-instances over tun-interface

2018-03-29 Thread dawid k
Here my configuration (client): ifconfig tun0: tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.29.0.10 P-t-P:10.29.0.9 Mask:255.255.255.255 bird_ospf.conf (included in bird.conf) : protocol ospf myOSPF { area 0.0.0.0 {

Cannot connect two ospf-instances over tun-interface

2018-03-29 Thread dawid k
I'm trying to set up pretty simply configuration consisting of two linux machines connected over tun-interface created by OpenVPN. The VPN-connection is working fine - I can send data over this interface. Now I installed bird and configured ospf on both devices. I can see that both bird instances