From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Nov 1 19:35:10 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D9D2F5D7 for ; Sat, 1 Nov 2014 19:35:09 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C045CC98 for ; Sat, 1 Nov 2014 19:35:09 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sA1JZ9ah088532 for ; Sat, 1 Nov 2014 19:35:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194745] New: security/openvpn: incorrect self route when using subnet topology Date: Sat, 01 Nov 2014 19:35:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vsasjason@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mandree@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2014 19:35:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194745 Bug ID: 194745 Summary: security/openvpn: incorrect self route when using subnet topology Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mandree@FreeBSD.org Reporter: vsasjason@gmail.com Assignee: mandree@FreeBSD.org Flags: maintainer-feedback?(mandree@FreeBSD.org) OpenVPN set the self address route via the tunnel interface instead of correct - loopback. I'm using topology subnet with 192.168.89.0 255.255.255.0 network. Example below: jason@cli0:~ % ifconfig tun0 tun0: flags=8051 metric 0 mtu 1500 options=80000 inet6 fe80::ec4:7aff:fe06:5e%tun0 prefixlen 64 scopeid 0x7 inet 192.168.89.2 --> 192.168.89.2 netmask 0xffffff00 nd6 options=21 Opened by PID 86175 jason@cli0:~ % netstat -rn | fgrep '192.168.89.' 192.168.89.0/24 192.168.89.2 UGS 0 4857954 tun0 192.168.89.2 link#7 UH 0 5 tun0 jason@cli0:~ % ping -c 3 192.168.89.2 PING 192.168.89.2 (192.168.89.2): 56 data bytes --- 192.168.89.2 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss jason@cli0:~ % ping -c 3 192.168.89.1 PING 192.168.89.1 (192.168.89.1): 56 data bytes 64 bytes from 192.168.89.1: icmp_seq=0 ttl=64 time=30.161 ms 64 bytes from 192.168.89.1: icmp_seq=1 ttl=64 time=30.200 ms 64 bytes from 192.168.89.1: icmp_seq=2 ttl=64 time=30.220 ms --- 192.168.89.1 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 30.161/30.194/30.220/0.024 ms jason@cli0:~ % I tried a workaround on the server: ifconfig tun0 inet 192.168.89.1 192.168.89.255 route add -net 192.168.89.0/24 -iface tun0 So the results are: jason@srv0:~$ ifconfig tun0 tun0: flags=8051 metric 0 mtu 1500 options=80000 inet6 fe80::21e:67ff:fead:6ab0%tun0 prefixlen 64 scopeid 0x3 inet 192.168.89.1 --> 192.168.89.255 netmask 0x0 nd6 options=21 Opened by PID 63010 jason@srv0:~$ netstat -rn | fgrep '192.168.89.' 192.168.89.0/24 tun0 US 0 29374111 tun0 192.168.89.1 link#3 UHS 0 213985 lo0 192.168.89.255 link#3 UH 0 0 tun0 jason@srv0:~$ ping -c 3 192.168.89.1 PING 192.168.89.1 (192.168.89.1): 56 data bytes 64 bytes from 192.168.89.1: icmp_seq=0 ttl=64 time=0.050 ms 64 bytes from 192.168.89.1: icmp_seq=1 ttl=64 time=0.093 ms 64 bytes from 192.168.89.1: icmp_seq=2 ttl=64 time=0.016 ms --- 192.168.89.1 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.016/0.053/0.093/0.032 ms jason@srv0:~$ --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer mandree@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.