Date: Wed, 13 Jan 2010 08:39:04 GMT From: Sergey Chernikov <s.bilberry@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/142774: Problem with outgoing connections on interface with multiple aliases Message-ID: <201001130839.o0D8d43H002048@www.freebsd.org> Resent-Message-ID: <201001130840.o0D8e3Yr086364@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 142774 >Category: misc >Synopsis: Problem with outgoing connections on interface with multiple aliases >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 13 08:40:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Sergey Chernikov >Release: 8.0-STABLE >Organization: >Environment: FreeBSD appserv 8.0-STABLE FreeBSD 8.0-STABLE #1: Wed Dec 30 16:21:27 MSK 2009 sc@appserv:/usr/src/sys/amd64/compile/APPSERV amd64 >Description: (a side note: unfortunately there is no "net" category available on http://www.freebsd.org/send-pr.html) I have network setup with 3 aliases on one of the interfaces. When trying to establish an outgoing connection to a host on other network, it fails (wait for connection until a timeout expires). Corresponding ipfw counter (rule 100 or 200 below) for policy route grows during this attempt. All incoming connections to addresses 10.12.12.0/24 can be established. ifconfig: bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 536 options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4> ether 18:a9:05:3b:3a:38 inet 172.23.31.27 netmask 0xffffff00 broadcast 172.23.31.255 media: Ethernet autoselect (1000baseT <full-duplex>) status: active bce1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4> ether 18:a9:05:3b:3a:3a inet 10.12.12.1 netmask 0xffffff00 broadcast 10.12.12.255 inet 10.12.12.4 netmask 0xffffffff broadcast 10.12.12.4 inet 10.12.12.6 netmask 0xffffffff broadcast 10.12.12.6 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 nd6 options=3<PERFORMNUD,ACCEPT_RTADV> Relevant portion of ipfw: 00100 6725 430586 fwd 10.12.12.254 ip from 10.12.12.0/24 to 172.23.31.34 00200 16016 1037707 fwd 10.12.12.254 ip from 10.12.12.0/24 to 10.10.10.2 00300 42 8124 allow tcp from 10.12.12.6 to 172.23.31.27 dst-port 25 00400 40 2552 allow udp from 10.12.12.6 to 172.23.31.27 dst-port 53 00500 40 8122 allow tcp from 10.12.12.4 to 172.23.31.27 dst-port 25 00600 80 5192 allow udp from 10.12.12.4 to 172.23.31.27 dst-port 53 00700 56 8426 allow tcp from 10.12.12.1 to 172.23.31.27 dst-port 25 00800 8484 822360 allow udp from 10.12.12.1 to 172.23.31.27 dst-port 53 00900 0 0 nat 1 ip from 10.12.12.6 to 10.10.10.1 01000 0 0 nat 1 ip from 10.12.12.4 to 10.10.10.1 01100 3692 192157 nat 1 ip from 10.12.12.1 to 10.10.10.1 01200 6587 3008474 nat 1 ip from 10.10.10.1 to 172.23.31.27 in 01300 0 0 deny log ip from 10.12.12.6 to 172.23.31.0/24 01400 0 0 deny log ip from 10.12.12.4 to 172.23.31.0/24 01500 0 0 deny log ip from 10.12.12.1 to 172.23.31.0/24 netstat -rn: Internet: Destination Gateway Flags Refs Use Netif Expire default 10.12.12.254 UGS 6 15898 bce1 10.10.10.0/24 172.23.31.62 UGS 1 20994 bce0 10.12.12.0/24 link#2 U 23164 427546 bce1 10.12.12.1 link#2 UHS 0 4630 lo0 10.12.12.4 link#2 UHS 0 108 lo0 => 10.12.12.6 link#2 UHS 0 56 lo0 => 10.12.12.4/32 link#2 U 0 0 bce1 10.12.12.6/32 link#2 U 0 89 bce1 10.214.0.0/16 172.23.31.62 UGS 0 106841 bce0 127.0.0.1 link#3 UH 0 669 lo0 172.23.31.0/24 link#1 U 9 8946135 bce0 172.23.31.27 link#1 UHS 0 4517 lo0 >How-To-Repeat: >Fix: When I remove routes for 10.12.12.6 ("route delete 10.12.12.6") everything starts to work, including outgoing connections from 10.12.12.6 to 172.23.31.34. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001130839.o0D8d43H002048>