From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 05:19:33 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1215216A41F; Mon, 29 Aug 2005 05:19:33 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CD9543D46; Mon, 29 Aug 2005 05:19:31 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.47]) (authenticated bits=0) by cain.gsoft.com.au (8.13.4/8.13.4) with ESMTP id j7T5JIg3011697 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 29 Aug 2005 14:49:27 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Julian Elischer Date: Mon, 29 Aug 2005 14:49:14 +0930 User-Agent: KMail/1.8.1 References: <200507290834.10268.doconnor@gsoft.com.au> <42EBD738.2010105@elischer.org> <200507312253.29038.doconnor@gsoft.com.au> In-Reply-To: <200507312253.29038.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1258481.TuLH8vAGg2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508291449.15427.doconnor@gsoft.com.au> X-Spam-Score: -2.82 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.51 on 203.31.81.10 Cc: freebsd-net@freebsd.org Subject: Re: AltQ + ng_iface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 05:19:33 -0000 --nextPart1258481.TuLH8vAGg2 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 31 July 2005 22:53, Daniel O'Connor wrote: > > The calling code must always have a reference on the node to ensure that > > it is not removed while it is running in it. This is sometimes > > done automatically. This is why there is an ng_callout facility to ensu= re > > that the locking andreferences are done automatically and correctly. > > OK, I'll look into that. I see ng_eiface uses ng_send_fn to defer processing until netgraph locking= =20 allows - should I use it? (I'll try it later but a definitive answer would be nice :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1258481.TuLH8vAGg2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDEprT5ZPcIHs/zowRAsMFAKCcnNxn1v9fo41iHHcGmBQCuNYKdQCgqnMr LojdjsJ3RuBXw9GVIizrzm4= =hpi1 -----END PGP SIGNATURE----- --nextPart1258481.TuLH8vAGg2-- From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 05:24:35 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD24516A41F for ; Mon, 29 Aug 2005 05:24:35 +0000 (GMT) (envelope-from donatas@lrtc.net) Received: from mail.lrtc.lt (pegasus.lrtc.lt [217.9.240.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEF8943D46 for ; Mon, 29 Aug 2005 05:24:34 +0000 (GMT) (envelope-from donatas@lrtc.net) Received: (qmail 19677 invoked from network); 29 Aug 2005 05:22:09 -0000 Received: from p2p-241-242-ird.vln0.lrtc.net (HELO donatas) (d.gendvilas@[217.9.241.242]) (envelope-sender ) by mail.lrtc.lt (qmail-ldap-1.03) with SMTP for ; 29 Aug 2005 05:22:09 -0000 Message-ID: <004001c5ac59$eda111b0$9f90a8c0@donatas> From: "Donatas" To: "Julian Elischer" , References: <026001c59e7a$c6ca69c0$9f90a8c0@donatas> <42FBC0AE.8020803@elischer.org> <027701c59f02$0eb808a0$9f90a8c0@donatas> <42FCF148.5010400@elischer.org> <000d01c5a223$53799840$0500a8c0@donatas> <4306C04B.4010008@elischer.org> Date: Mon, 29 Aug 2005 08:24:28 +0300 Organization: AB Lietuvos Radijo ir Televizijos Centras MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Cc: Subject: Re: routing problem (with corrected scheme) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Donatas List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 05:24:35 -0000 Good morning, after comprehensive tests I am glad to inform that your suggestions = works just fine, so - thanks for help solving our problem. Truth, i've got one question realated to the exampel rule below: >ipfw add 1000 fwd ip4 ip from any to any out recv em0 xmit vlan{mumble} After several tests i have recognized that localy generated packets = (like icmp traffic) never matches this rule. The problem is in "xmit = vlan{number}" part. Is it so because of different place of packet input? = Transit packets come to firewall from ether_demux and passes the rule, = while localy generated packets come to firewall from ip_input and fails = on this rule? Using "pass" instead of "fwd" results in the same. ----- Original Message -----=20 From: "Julian Elischer" To: "Donatas" Sent: Saturday, August 20, 2005 8:31 AM Subject: Re: routing problem (with corrected scheme) > did my sugestion work? > From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 05:30:00 2005 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53D8D16A41F for ; Mon, 29 Aug 2005 05:30:00 +0000 (GMT) (envelope-from wsk@gddsn.org.cn) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD8D543D45 for ; Mon, 29 Aug 2005 05:29:59 +0000 (GMT) (envelope-from wsk@gddsn.org.cn) Received: from [192.168.168.138] (unknown [192.168.168.138]) by gddsn.org.cn (Postfix) with ESMTP id 36BF538CB4D for ; Mon, 29 Aug 2005 10:02:11 +0800 (CST) Message-ID: <43126C3E.6030004@gddsn.org.cn> Date: Mon, 29 Aug 2005 10:00:30 +0800 From: wsk User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.7.6) Gecko/20050326 X-Accept-Language: zh-cn,zh MIME-Version: 1.0 To: net@freebsd.org Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Cc: Subject: mpd help X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 05:30:00 -0000 hi,lists: I'm wondering how i can assigned a static IP for multi PCs on mpd?? follow is my situations and problems: my mpd.conf # Default configuration is "myisp" default: load client1 load client2 client1: new -i ng0 pptp pptp # set iface addrs 192.168.1.1 192.168.168.50 set ipcp ranges 192.168.1.1/32 192.168.1.50/32 load pptp # ... # client2: # set iface addrs 192.168.1.1 192.168.1.51 new -i ng1 pptp1 pptp1 set ipcp ranges 192.168.1.1/32 192.168.1.51/32 load pptp pptp: set iface idle 0 set iface enable tcpmssfix set bundle enable multilink set link yes acfcomp protocomp set link enable chap set link keep-alive 10 60 set link mtu 1460 set ipcp yes vjcomp set bundle enable compression set ccp yes mppc set ccp yes mpp-e40 set ccp yes mpp-e128 set ccp yes mpp-stateless and mpd.links: pptp: set link type pptp set pptp self 202.x.x.x set pptp enable incoming set pptp disable originate pptp1: set link type pptp set pptp self 202.x.x.x set pptp enable incoming set pptp disable originate now , the problem is while my client2 pptp to the server with static IP e.g: pptp 202.x.x.x lock persist nodetach name MyLogin remotename MyPassword 192.168.1.51:192.168.1.1 netmask 255.255.255.255 and if the client1's link didn't established ,the client2 always can not establish the links event set iface addrs options. viceversa is not!could anyone help me? TIA From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 06:40:49 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE2F716A41F for ; Mon, 29 Aug 2005 06:40:49 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35E3943D45 for ; Mon, 29 Aug 2005 06:40:48 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id j7T6efhs054732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Aug 2005 10:40:41 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id j7T6ee5I054731; Mon, 29 Aug 2005 10:40:40 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 29 Aug 2005 10:40:40 +0400 From: Gleb Smirnoff To: "Daniel O'Connor" Message-ID: <20050829064040.GB48425@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , Daniel O'Connor , Julian Elischer , Chuck Swiger , freebsd-net@freebsd.org References: <200507290834.10268.doconnor@gsoft.com.au> <42EBD738.2010105@elischer.org> <200507312253.29038.doconnor@gsoft.com.au> <200508291449.15427.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <200508291449.15427.doconnor@gsoft.com.au> User-Agent: Mutt/1.5.6i Cc: freebsd-net@FreeBSD.org, Julian Elischer Subject: Re: AltQ + ng_iface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 06:40:50 -0000 On Mon, Aug 29, 2005 at 02:49:14PM +0930, Daniel O'Connor wrote: D> On Sunday 31 July 2005 22:53, Daniel O'Connor wrote: D> > > The calling code must always have a reference on the node to ensure that D> > > it is not removed while it is running in it. This is sometimes D> > > done automatically. This is why there is an ng_callout facility to ensure D> > > that the locking andreferences are done automatically and correctly. D> > D> > OK, I'll look into that. D> D> I see ng_eiface uses ng_send_fn to defer processing until netgraph locking D> allows - should I use it? D> (I'll try it later but a definitive answer would be nice :) If you have put smth into ng_iface_start(), then you should do this stuff via ng_send_fn(). Sorry, that I haven't yet feedbacked on your patches. I'll probably look at them after 6.0-RELEASE. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 07:26:21 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B62916A41F for ; Mon, 29 Aug 2005 07:26:21 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12BAD43D49 for ; Mon, 29 Aug 2005 07:26:19 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.12.11/8.12.11) with ESMTP id j7T7OPGY013526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 29 Aug 2005 14:24:26 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.1/8.12.11) id j7T7PH6G052232; Mon, 29 Aug 2005 14:25:17 +0700 (ICT) Date: Mon, 29 Aug 2005 14:25:17 +0700 (ICT) Message-Id: <200508290725.j7T7PH6G052232@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd-net@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Subject: Recompute Ethernet header in a bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 07:26:21 -0000 Hi, I am bridging between 2 Eth interfaces. Inside that bridge, I do a packet redirection, so I end up with a different destination address/port in the IP packet, but the Eth frame keeps the same destination. How can i force the bridge to recompute the destination address of the Ethernat frame, to match the new IP destination address? Thanks in advace, Olivier From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 07:42:18 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF16C16A41F; Mon, 29 Aug 2005 07:42:18 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F400343D49; Mon, 29 Aug 2005 07:42:17 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.47]) (authenticated bits=0) by cain.gsoft.com.au (8.13.4/8.13.4) with ESMTP id j7T7g6FQ012944 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 29 Aug 2005 17:12:12 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Gleb Smirnoff Date: Mon, 29 Aug 2005 17:11:47 +0930 User-Agent: KMail/1.8.1 References: <200507290834.10268.doconnor@gsoft.com.au> <200508291449.15427.doconnor@gsoft.com.au> <20050829064040.GB48425@cell.sick.ru> In-Reply-To: <20050829064040.GB48425@cell.sick.ru> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart20461195.PJtWxlt2JW"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508291712.02881.doconnor@gsoft.com.au> X-Spam-Score: -2.82 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.51 on 203.31.81.10 Cc: freebsd-net@freebsd.org, Julian Elischer Subject: Re: AltQ + ng_iface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 07:42:19 -0000 --nextPart20461195.PJtWxlt2JW Content-Type: multipart/mixed; boundary="Boundary-01=_9wrEDOABlgXfhqY" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_9wrEDOABlgXfhqY Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 29 August 2005 16:10, Gleb Smirnoff wrote: > D> (I'll try it later but a definitive answer would be nice :) > > If you have put smth into ng_iface_start(), then you should do this > stuff via ng_send_fn(). OK. > Sorry, that I haven't yet feedbacked on your patches. I'll probably look > at them after 6.0-RELEASE. No problem :) I have attached an updated (untested - but it compiles! version) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Boundary-01=_9wrEDOABlgXfhqY Content-Type: text/x-diff; charset="koi8-r"; name="ng_iface-altq2.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ng_iface-altq2.diff" Index: sys/netgraph/ng_iface.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/CVS-Repository/src/sys/netgraph/ng_iface.c,v retrieving revision 1.44 diff -u -p -r1.44 ng_iface.c =2D-- sys/netgraph/ng_iface.c 9 Aug 2005 10:19:59 -0000 1.44 +++ sys/netgraph/ng_iface.c 29 Aug 2005 06:05:19 -0000 @@ -107,6 +107,14 @@ const static struct iffam gFamilies[] =3D=20 }; #define NUM_FAMILIES (sizeof(gFamilies) / sizeof(*gFamilies)) =20 +#define NGM_MTAG_ID_IFFAM 29 + +/* Tag for mbufs to tell ng_iface_start where to send them */ +struct iffamtag { + struct m_tag tag; + iffam_p iffam_p; +}; + /* Node private data */ struct ng_iface_private { struct ifnet *ifp; /* Our interface */ @@ -118,6 +126,7 @@ typedef struct ng_iface_private *priv_p; =20 /* Interface methods */ static void ng_iface_start(struct ifnet *ifp); +static void ng_iface_start2(node_p node, hook_p hook, void *arg1, int arg2= ); static int ng_iface_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data); static int ng_iface_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst, struct rtentry *rt0); @@ -351,11 +360,11 @@ static int ng_iface_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, struct rtentry *rt0) { =2D const priv_p priv =3D (priv_p) ifp->if_softc; const iffam_p iffam =3D get_iffam_from_af(dst->sa_family); =2D int len, error =3D 0; + int error =3D 0; u_int32_t af; =2D + struct iffamtag *mtag; +=09 /* Check interface flags */ if (!((ifp->if_flags & IFF_UP) && (ifp->if_drv_flags & IFF_DRV_RUNNING))) { @@ -380,28 +389,71 @@ ng_iface_output(struct ifnet *ifp, struc return (EAFNOSUPPORT); } =20 =2D /* Copy length before the mbuf gets invalidated */ =2D len =3D m->m_pkthdr.len; + /* Tag mbuf with hook information */ + /* XXX: kind of dumb that the alloc routine adds the size of + * struct mtag adds to our length, this make it hard to + * allocate the correct size.. */ + mtag =3D (struct iffamtag *)m_tag_alloc(NGM_MTAG_ID_IFFAM, NGM_MTAG_ID_IF= =46AM,=20 + sizeof(struct iffamtag) - sizeof(struct m_tag), M_NOWAIT); + if (mtag =3D=3D NULL) + return (ENOBUFS); + mtag->iffam_p =3D iffam; + m_tag_prepend(m, (struct m_tag *)mtag); +=09 + IFQ_HANDOFF(ifp, m, error); +=09 + return (error); =20 =2D /* Send packet; if hook is not connected, mbuf will get freed. */ =2D NG_SEND_DATA_ONLY(error, *get_hook_from_iffam(priv, iffam), m); =20 =2D /* Update stats */ =2D if (error =3D=3D 0) { =2D ifp->if_obytes +=3D len; =2D ifp->if_opackets++; =2D } =2D return (error); } =20 /* =2D * This routine should never be called + * Called to move queued packets off the interface. + * + * We wait for netgraph to call us back when we can really move the + * data */ =2D static void ng_iface_start(struct ifnet *ifp) { =2D if_printf(ifp, "%s called?", __func__); + const priv_p priv =3D (priv_p)ifp->if_softc; + + ng_send_fn(priv->node, NULL, &ng_iface_start2, ifp, 0); +} + +static void +ng_iface_start2(node_p node, hook_p hook, void *arg1, int arg2) +{ + struct ifnet *ifp =3D arg1; + const priv_p priv =3D (priv_p) ifp->if_softc; + struct iffamtag *mtag; + struct mbuf *m; + int error =3D 0, len; +=09 + if_printf(ifp, "%s called\n", __func__); + while (1) { + IFQ_DRV_DEQUEUE(&ifp->if_snd, m); + if (m =3D=3D NULL) + break; + =20 + mtag =3D (struct iffamtag *)m_tag_locate(m, NGM_MTAG_ID_IFFAM, NGM_MTAG_= ID_IFFAM, NULL); + if (mtag =3D=3D NULL) { /* mbuf with no tag? shouldn't be possible */ + if_printf(ifp, "mbuf found without a tag, discarding\n"); + m_freem(m); /* XXX: does this free tags too? */ + } + =09 + /* Copy length before the mbuf gets invalidated */ + len =3D m->m_pkthdr.len; + + /* Send packet; if hook is not connected, mbuf will get freed. */ + NG_SEND_DATA_ONLY(error, *get_hook_from_iffam(priv, mtag->iffam_p), m); + + /* Update stats */ + if (error =3D=3D 0) { + ifp->if_obytes +=3D len; + ifp->if_opackets++; + } + } } =20 /* @@ -493,13 +545,15 @@ ng_iface_constructor(node_p node) ifp->if_start =3D ng_iface_start; ifp->if_ioctl =3D ng_iface_ioctl; ifp->if_watchdog =3D NULL; =2D ifp->if_snd.ifq_maxlen =3D IFQ_MAXLEN; ifp->if_mtu =3D NG_IFACE_MTU_DEFAULT; ifp->if_flags =3D (IFF_SIMPLEX|IFF_POINTOPOINT|IFF_NOARP|IFF_MULTICAST); ifp->if_type =3D IFT_PROPVIRTUAL; /* XXX */ ifp->if_addrlen =3D 0; /* XXX */ ifp->if_hdrlen =3D 0; /* XXX */ ifp->if_baudrate =3D 64000; /* XXX */ + IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); + ifp->if_snd.ifq_drv_maxlen =3D IFQ_MAXLEN; + IFQ_SET_READY(&ifp->if_snd); =20 /* Give this node the same name as the interface (if possible) */ if (ng_name_node(node, ifp->if_xname) !=3D 0) --Boundary-01=_9wrEDOABlgXfhqY-- --nextPart20461195.PJtWxlt2JW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDErxK5ZPcIHs/zowRAoIsAKCnYjXo4N65AlKpyQtuia9Qtk/khgCfYTAp SrEFAJ/bypozOY8KouvrlNY= =snMo -----END PGP SIGNATURE----- --nextPart20461195.PJtWxlt2JW-- From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 11:02:13 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39C9816A429 for ; Mon, 29 Aug 2005 11:02:13 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7F9243D45 for ; Mon, 29 Aug 2005 11:02:12 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7TB2C1T021569 for ; Mon, 29 Aug 2005 11:02:12 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7TB2C7Z021563 for freebsd-net@freebsd.org; Mon, 29 Aug 2005 11:02:12 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 29 Aug 2005 11:02:12 GMT Message-Id: <200508291102.j7TB2C7Z021563@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 11:02:13 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/11] kern/54383 net [nfs] [patch] NFS root configurations wit 1 problem total. From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 15:56:29 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C021916A41F; Mon, 29 Aug 2005 15:56:29 +0000 (GMT) (envelope-from bart@it-ss.be) Received: from piggy.solidweb.be (piggy.web.bru.it-ss.be [195.28.164.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DE4943D45; Mon, 29 Aug 2005 15:56:28 +0000 (GMT) (envelope-from bart@it-ss.be) Received: from bartwrkstxp (214.120-136-217.adsl.skynet.be [217.136.120.214]) (authenticated bits=0) by piggy.solidweb.be (8.12.9-SW.b/8.12.9-SW) with ESMTP id j7TFuQuM001491; Mon, 29 Aug 2005 17:56:26 +0200 Message-ID: <001301c5acb2$36d8c820$020b000a@bartwrkstxp> From: "Bart Van Kerckhove" To: , Date: Mon, 29 Aug 2005 17:56:25 +0200 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_000E_01C5ACC2.F97C6840" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Scanned-By: MIMEDefang 2.45 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Feature requests / inquiries. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 15:56:29 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C5ACC2.F97C6840 Content-Type: multipart/mixed; boundary="----=_NextPart_001_000F_01C5ACC2.F97C6840" ------=_NextPart_001_000F_01C5ACC2.F97C6840 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Dear Sirs / Fellow Freebsd Freaks, I've been using FreeBSD for a while now as a routing/firewalling platform, but recent developments in our network infrastructure confront me with some lack of features in the IPstack. In a nutshell, i'm looking for support for (in order of importance to me) : (r)STP, ECMP, and LACP. For STP, i have found a patch that contained a port from netbsd code of if_bridge ; but i'm way too insecure about running this on a production system. For ECMP, the only thing i found out was that there used to be a patchset that did something like it, but went defunct after 4.8. LACP: no idea at all, sorry :) As these are features we'll be using some time soon now, i can say we _need_ them. I have even seriously considered moving to NetBSD; the lack of NIC polling support for the intel chipsets i'm using is holding me back at the moment. I do not want to move over to linux, for various reasons. So I figured perhaps some of the freebsd community is also interested in these features, and I might as well sponsor (part of?) its development. Are there any persons interested in developing these features, or do they already exist and am I just plain ignorant (forgive me if that is the case). Please note that i'm not interested in the netgraph approach, as that's (imho) just a hack around it, and it's not functioning with for example gnu/zebra et all. I am looking for short- and long-term solutions, anything that's developed trough sponsoring i'd be happy to contribute to the main tree. As this would be the first time we actually ask for a specific feature in any OSS software, I could be way off the scale with the figures i had in mind. This would be about 200 to 400 euro per feature, the more important ones like STP and ECMP are totally open to discussion. Any takers? Any enlightenment? Thanks for helping out in advance ;) Met vriendelijke groet / With kind regards, Bart Van Kerckhove bart@it-ss.be ------=_NextPart_001_000F_01C5ACC2.F97C6840-- ------=_NextPart_000_000E_01C5ACC2.F97C6840 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIIuzCCAkMw ggGsoAMCAQICAw01XTANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt YWlsIElzc3VpbmcgQ0EwHhcNMDQxMDExMjIzNTM0WhcNMDUxMDExMjIzNTM0WjA/MR8wHQYDVQQD ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMRwwGgYJKoZIhvcNAQkBFg1iYXJ0QGl0LXNzLmJlMIGf MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcXRnz65y7RnzVqshaaMreBgPt64Dbc39xCH8Yl5ge zYC1Z91aL2cvglhZNEdf+LPOzOSjDN2N91RIJdrMHE6I/MSot7+B2KeWfYwCoUhyY4ojbr6XChHS kNqMDL1IO3f3HqJEsmH006rT/ZAE1++wwPQf5Geuaj7kpqPRKajiwQIDAQABoyowKDAYBgNVHREE ETAPgQ1iYXJ0QGl0LXNzLmJlMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEEBQADgYEAeCZFAwf1 hu+mCKdH7rdHBzQO+6nel5FUBiUoeje2N0S00T6psemcwkt0T2YnVecNWZXyk0SZTuSSKoNcUxnJ ZHc9OlqyLVP9a/YyaxfUZ5U+4EAN7Gx2zvGlBtbvlUrtflvRL1Fj0YdrZKhVbhuFeQtolUeR60ir h3J+Yhke7nYwggMtMIIClqADAgECAgEAMA0GCSqGSIb3DQEBBAUAMIHRMQswCQYDVQQGEwJaQTEV MBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xGjAYBgNVBAoTEVRoYXd0 ZSBDb25zdWx0aW5nMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMSQw IgYDVQQDExtUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgQ0ExKzApBgkqhkiG9w0BCQEWHHBlcnNv bmFsLWZyZWVtYWlsQHRoYXd0ZS5jb20wHhcNOTYwMTAxMDAwMDAwWhcNMjAxMjMxMjM1OTU5WjCB 0TELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3du MRowGAYDVQQKExFUaGF3dGUgQ29uc3VsdGluZzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2 aWNlcyBEaXZpc2lvbjEkMCIGA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIENBMSswKQYJ KoZIhvcNAQkBFhxwZXJzb25hbC1mcmVlbWFpbEB0aGF3dGUuY29tMIGfMA0GCSqGSIb3DQEBAQUA A4GNADCBiQKBgQDUadfUsJRkW3HpR9gMUbbqcpGwhF59LQ2PexLfhSV1KHQ6QixjJ5+Ve0vvfhmH HYbqo925zpZkGsIUbkSsfOaP6E0PcR9AOKYAo4d49vmUhl6t6sBeduvZFKNdbnp8DKVLVX8GGSl/ npom1Wq7OCQIapjHsdqjmJH9edvlWsQcuQIDAQABoxMwETAPBgNVHRMBAf8EBTADAQH/MA0GCSqG SIb3DQEBBAUAA4GBAMfskn5O+PWWpWdiKqTwTRFg0G+NYFhhrCa7UjVcCM8w+6hKloofYkIjjBcP 9LpknBesRynfnZhe0mxgcVyirNx54+duAEcftQ0o6AKd5Jr9E/Sm2Xyx+NxfIyYJkYBz0BQb3kOp gyXy5pwvFcr+pquKB3WLDN1RhGvk+NHOd6KBMIIDPzCCAqigAwIBAgIBDTANBgkqhkiG9w0BAQUF ADCB0TELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBU b3duMRowGAYDVQQKExFUaGF3dGUgQ29uc3VsdGluZzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBT ZXJ2aWNlcyBEaXZpc2lvbjEkMCIGA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIENBMSsw KQYJKoZIhvcNAQkBFhxwZXJzb25hbC1mcmVlbWFpbEB0aGF3dGUuY29tMB4XDTAzMDcxNzAwMDAw MFoXDTEzMDcxNjIzNTk1OVowYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0 aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5n IENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEpjxVc1X7TrnKmVoeaMB1BHCd3+n/ox7s vc31W/Iadr1/DDph8r9RzgHU5VAKMNcCY1osiRVwjt3J8CuFWqo/cVbLrzwLB+fxH5E2JCoTzyvV 84J3PQO+K/67GD4Hv0CAAmTXp6a7n2XRxSpUhQ9IBH+nttE8YQRAHmQZcmC3+wIDAQABo4GUMIGR MBIGA1UdEwEB/wQIMAYBAf8CAQAwQwYDVR0fBDwwOjA4oDagNIYyaHR0cDovL2NybC50aGF3dGUu Y29tL1RoYXd0ZVBlcnNvbmFsRnJlZW1haWxDQS5jcmwwCwYDVR0PBAQDAgEGMCkGA1UdEQQiMCCk HjAcMRowGAYDVQQDExFQcml2YXRlTGFiZWwyLTEzODANBgkqhkiG9w0BAQUFAAOBgQBIjNFQg+oL LswNo2asZw9/r6y+whehQ5aUnX9MIbj4Nh+qLZ82L8D0HFAgk3A8/a3hYWLD2ToZfoSxmRsAxRoL gnSeJVCUYsfbJ3FXJY3dqZw5jowgT2Vfldr394fWxghOrvbqNOUQGls1TXfjViF4gtwhGTXeJLHT HUb/XV9lTzGCAcwwggHIAgEBMGkwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25z dWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1 aW5nIENBAgMNNV0wCQYFKw4DAhoFAKCBujAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqG SIb3DQEJBTEPFw0wNTA4MjkxNTU2MjVaMCMGCSqGSIb3DQEJBDEWBBTfB7TizdB/TOp7IQPLWJ+o L4YNxzBbBgkqhkiG9w0BCQ8xTjBMMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDANBggqhkiG 9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDAHBgUrDgMCHTANBgkqhkiG9w0BAQEFAASB gFpmlcj7vdPzGnjAGOhguwbZLSZq+Lem+SMtW83LicqB4ARPK+WgmenKzdHGKPMln+SnCuUG9zLa h7PKWF9xIpcgkqWGgtZKZCNuPs28Y/a9FZThnUdcanptMhwhLC3/LQfgVGT8lV7/VeD2ZXMnuiMH KQlb/JJ4gombEH3O5ku2AAAAAAAA ------=_NextPart_000_000E_01C5ACC2.F97C6840-- From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 17:50:30 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9921C16A420; Mon, 29 Aug 2005 17:50:30 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BFC243D46; Mon, 29 Aug 2005 17:50:30 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j7THoThW024833; Mon, 29 Aug 2005 10:50:29 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7THoTPc024832; Mon, 29 Aug 2005 10:50:29 -0700 Date: Mon, 29 Aug 2005 10:50:29 -0700 From: Brooks Davis To: Bart Van Kerckhove Message-ID: <20050829175029.GC18276@odin.ac.hmc.edu> References: <001301c5acb2$36d8c820$020b000a@bartwrkstxp> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kfjH4zxOES6UT95V" Content-Disposition: inline In-Reply-To: <001301c5acb2$36d8c820$020b000a@bartwrkstxp> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=1.2 required=8.0 tests=DEAR_SOMETHING autolearn=no version=2.63 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Feature requests / inquiries. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 17:50:30 -0000 --kfjH4zxOES6UT95V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 29, 2005 at 05:56:25PM +0200, Bart Van Kerckhove wrote: > Dear Sirs / Fellow Freebsd Freaks, >=20 > I've been using FreeBSD for a while now as a routing/firewalling platform= ,=20 > but recent developments in our network infrastructure confront me with so= me=20 > lack of features in the IPstack. > In a nutshell, i'm looking for support for (in order of importance to me)= :=20 > (r)STP, ECMP, and LACP. >=20 > For STP, i have found a patch that contained a port from netbsd code of= =20 > if_bridge ; but i'm way too insecure about running this on a production= =20 > system. > For ECMP, the only thing i found out was that there used to be a patchset= =20 > that did something like it, but went defunct after 4.8. > LACP: no idea at all, sorry :) >=20 > As these are features we'll be using some time soon now, i can say we _ne= ed_=20 > them. I have even seriously considered moving to NetBSD; the lack of NIC= =20 > polling support for the intel chipsets i'm using is holding me back at th= e=20 > moment. > I do not want to move over to linux, for various reasons. > So I figured perhaps some of the freebsd community is also interested in= =20 > these features, and I might as well sponsor (part of?) its development. > Are there any persons interested in developing these features, or do they= =20 > already exist and am I just plain ignorant (forgive me if that is the cas= e). > Please note that i'm not interested in the netgraph approach, as that's= =20 > (imho) just a hack around it, and it's not functioning with for example= =20 > gnu/zebra et all. >=20 > I am looking for short- and long-term solutions, anything that's develope= d=20 > trough sponsoring i'd be happy to contribute to the main tree. > As this would be the first time we actually ask for a specific feature in= =20 > any OSS software, I could be way off the scale with the figures i had in= =20 > mind. This would be about 200 to 400 euro per feature, the more important= =20 > ones like STP and ECMP are totally open to discussion. >=20 > Any takers? Any enlightenment? Thanks for helping out in advance ;) if_bridge has been imported into FreeBSD 6.0 and I believe will be merged to 5.x before 5.5. I can't speak for ECMP. LACP is supported by ng_fec. The fact that you don't like it is a seperate issue. FWIW, ng_fec only uses netgraph for configuration. It's not really a netgraph node. I'd personally like to see OpenBSD's if_trunk imported and LACP added, but I certainly don't have time. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --kfjH4zxOES6UT95V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDE0rkXY6L6fI4GtQRApefAKDbdyHzzCmHZ7BnZGChhbQLxAVEwACdEW92 iocKsjpSP5AlO5d5xbj5+Mg= =Swf+ -----END PGP SIGNATURE----- --kfjH4zxOES6UT95V-- From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 18:10:09 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FA3416A420; Mon, 29 Aug 2005 18:10:09 +0000 (GMT) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F9FA43D48; Mon, 29 Aug 2005 18:10:08 +0000 (GMT) (envelope-from max@love2party.net) Received: from p54A3D18F.dip.t-dialin.net [84.163.209.143] (helo=donor.laier.local) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKxQS-1E9o56148z-0004Si; Mon, 29 Aug 2005 20:10:04 +0200 From: Max Laier To: freebsd-net@freebsd.org Date: Mon, 29 Aug 2005 20:09:43 +0200 User-Agent: KMail/1.8.2 References: <001301c5acb2$36d8c820$020b000a@bartwrkstxp> <20050829175029.GC18276@odin.ac.hmc.edu> In-Reply-To: <20050829175029.GC18276@odin.ac.hmc.edu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2886264.EKM6Mzy3H5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508292010.02732.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: freebsd-hackers@freebsd.org, Bart Van Kerckhove , thompsa@freebsd.org Subject: Re: Feature requests / inquiries. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 18:10:09 -0000 --nextPart2886264.EKM6Mzy3H5 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 29 August 2005 19:50, Brooks Davis wrote: > On Mon, Aug 29, 2005 at 05:56:25PM +0200, Bart Van Kerckhove wrote: > > Dear Sirs / Fellow Freebsd Freaks, > > > > I've been using FreeBSD for a while now as a routing/firewalling > > platform, but recent developments in our network infrastructure confront > > me with some lack of features in the IPstack. > > In a nutshell, i'm looking for support for (in order of importance to m= e) > > : (r)STP, ECMP, and LACP. > > > > For STP, i have found a patch that contained a port from netbsd code of > > if_bridge ; but i'm way too insecure about running this on a production > > system. > > For ECMP, the only thing i found out was that there used to be a patchs= et > > that did something like it, but went defunct after 4.8. > > LACP: no idea at all, sorry :) > > > > As these are features we'll be using some time soon now, i can say we > > _need_ them. I have even seriously considered moving to NetBSD; the lack > > of NIC polling support for the intel chipsets i'm using is holding me > > back at the moment. > > I do not want to move over to linux, for various reasons. > > So I figured perhaps some of the freebsd community is also interested in > > these features, and I might as well sponsor (part of?) its development. > > Are there any persons interested in developing these features, or do th= ey > > already exist and am I just plain ignorant (forgive me if that is the > > case). Please note that i'm not interested in the netgraph approach, as > > that's (imho) just a hack around it, and it's not functioning with for > > example gnu/zebra et all. > > > > I am looking for short- and long-term solutions, anything that's > > developed trough sponsoring i'd be happy to contribute to the main tree. > > As this would be the first time we actually ask for a specific feature = in > > any OSS software, I could be way off the scale with the figures i had in > > mind. This would be about 200 to 400 euro per feature, the more importa= nt > > ones like STP and ECMP are totally open to discussion. > > > > Any takers? Any enlightenment? Thanks for helping out in advance ;) > > if_bridge has been imported into FreeBSD 6.0 and I believe will be > merged to 5.x before 5.5. A candidate MFC patchset is at:=20 http://people.freebsd.org/~thompsa/if_bridge-5stable.diff and is believed t= o=20 be production quality (judging from the reports for RELENG_6 so far). Ther= e=20 might be minor problems and/or yet undiscovered problems, but only testing= =20 gets it there. Andrew is certainly thankful for any feedback! > I can't speak for ECMP. > > LACP is supported by ng_fec. The fact that you don't like it is a > seperate issue. FWIW, ng_fec only uses netgraph for configuration. > It's not really a netgraph node. I'd personally like to see OpenBSD's > if_trunk imported and LACP added, but I certainly don't have time. It's certainly a good idea to look at if_trunk. I don't have hardware to=20 build a testbed, but I belive there are people out there who do and also ha= ve=20 the skills to make it happen. The main problem is: Whoever does this must= =20 have (physical) access to a reasonable testbed and free time while there=20 (i.e. agreement with employer etc) =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2886264.EKM6Mzy3H5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDE096XyyEoT62BG0RAgv8AJ4tDYC03S7+81PgNVwdX3sLIYpSbwCcCY+X +Vp4qPfdZCumMDFJ+mdmDnY= =XBn3 -----END PGP SIGNATURE----- --nextPart2886264.EKM6Mzy3H5-- From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 18:47:14 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24BA616A41F; Mon, 29 Aug 2005 18:47:14 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3733843D49; Mon, 29 Aug 2005 18:47:13 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j7TIlCgf001027; Mon, 29 Aug 2005 11:47:12 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7TIlCta001026; Mon, 29 Aug 2005 11:47:12 -0700 Date: Mon, 29 Aug 2005 11:47:12 -0700 From: Brooks Davis To: Max Laier Message-ID: <20050829184712.GF18276@odin.ac.hmc.edu> References: <001301c5acb2$36d8c820$020b000a@bartwrkstxp> <20050829175029.GC18276@odin.ac.hmc.edu> <200508292010.02732.max@love2party.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WlEyl6ow+jlIgNUh" Content-Disposition: inline In-Reply-To: <200508292010.02732.max@love2party.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=1.2 required=8.0 tests=DEAR_SOMETHING autolearn=no version=2.63 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-net@freebsd.org, Bart Van Kerckhove , thompsa@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Feature requests / inquiries. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 18:47:14 -0000 --WlEyl6ow+jlIgNUh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 29, 2005 at 08:09:43PM +0200, Max Laier wrote: > On Monday 29 August 2005 19:50, Brooks Davis wrote: > > On Mon, Aug 29, 2005 at 05:56:25PM +0200, Bart Van Kerckhove wrote: > > > Dear Sirs / Fellow Freebsd Freaks, > > > > > > I've been using FreeBSD for a while now as a routing/firewalling > > > platform, but recent developments in our network infrastructure confr= ont > > > me with some lack of features in the IPstack. > > > In a nutshell, i'm looking for support for (in order of importance to= me) > > > : (r)STP, ECMP, and LACP. > > > > > > For STP, i have found a patch that contained a port from netbsd code = of > > > if_bridge ; but i'm way too insecure about running this on a producti= on > > > system. > > > For ECMP, the only thing i found out was that there used to be a patc= hset > > > that did something like it, but went defunct after 4.8. > > > LACP: no idea at all, sorry :) > > > > > > As these are features we'll be using some time soon now, i can say we > > > _need_ them. I have even seriously considered moving to NetBSD; the l= ack > > > of NIC polling support for the intel chipsets i'm using is holding me > > > back at the moment. > > > I do not want to move over to linux, for various reasons. > > > So I figured perhaps some of the freebsd community is also interested= in > > > these features, and I might as well sponsor (part of?) its developmen= t. > > > Are there any persons interested in developing these features, or do = they > > > already exist and am I just plain ignorant (forgive me if that is the > > > case). Please note that i'm not interested in the netgraph approach, = as > > > that's (imho) just a hack around it, and it's not functioning with for > > > example gnu/zebra et all. > > > > > > I am looking for short- and long-term solutions, anything that's > > > developed trough sponsoring i'd be happy to contribute to the main tr= ee. > > > As this would be the first time we actually ask for a specific featur= e in > > > any OSS software, I could be way off the scale with the figures i had= in > > > mind. This would be about 200 to 400 euro per feature, the more impor= tant > > > ones like STP and ECMP are totally open to discussion. > > > > > > Any takers? Any enlightenment? Thanks for helping out in advance ;) > > > > if_bridge has been imported into FreeBSD 6.0 and I believe will be > > merged to 5.x before 5.5. >=20 > A candidate MFC patchset is at:=20 > http://people.freebsd.org/~thompsa/if_bridge-5stable.diff and is believed= to=20 > be production quality (judging from the reports for RELENG_6 so far). Th= ere=20 > might be minor problems and/or yet undiscovered problems, but only testin= g=20 > gets it there. Andrew is certainly thankful for any feedback! >=20 > > I can't speak for ECMP. > > > > LACP is supported by ng_fec. The fact that you don't like it is a > > seperate issue. FWIW, ng_fec only uses netgraph for configuration. > > It's not really a netgraph node. I'd personally like to see OpenBSD's > > if_trunk imported and LACP added, but I certainly don't have time. >=20 > It's certainly a good idea to look at if_trunk. I don't have hardware to= =20 > build a testbed, but I belive there are people out there who do and also = have=20 > the skills to make it happen. The main problem is: Whoever does this mus= t=20 > have (physical) access to a reasonable testbed and free time while there= =20 > (i.e. agreement with employer etc) I've got the equipment access, but lack the time. Untangling the mess in the VLAN and EtherChannel support has been on my like for a couple years now, but I have know idea when or if I'll get to it. FWIW, a Catalyst 2950 series switch will do EtherChannel and they appear to be available on e-bay for under $500 if someone wants to work on this. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --WlEyl6ow+jlIgNUh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDE1gvXY6L6fI4GtQRAp9TAJ0RlklgZ3QtjWSiuCf+AQOwuR/hEQCfaCF8 Jx95l0UzKzXRa96d7DGMVFc= =oYZZ -----END PGP SIGNATURE----- --WlEyl6ow+jlIgNUh-- From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 20:17:25 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C58E516A41F; Mon, 29 Aug 2005 20:17:25 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B56D43D48; Mon, 29 Aug 2005 20:17:25 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from dhcp-168-0-23.packetdesign.com (dns.packetdesign.com [65.192.41.10]) (authenticated bits=0) by a.mail.sonic.net (8.13.3/8.13.3) with ESMTP id j7TKHOt0022985 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 29 Aug 2005 13:17:25 -0700 From: "Bruce A. Mah" To: freebsd-net@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ASgMNpDrq/eLAwSZhbqM" Date: Mon, 29 Aug 2005 13:17:23 -0700 Message-Id: <1125346643.2344.31.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: bmah@freebsd.org Subject: if_bridge and IPv6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 20:17:25 -0000 --=-ASgMNpDrq/eLAwSZhbqM Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi folks-- Can anyone tell me if I should be able to run IPv6 over an if_bridge interface? I'm running RELENG_6 from a few days ago on a Soekris net4801 and have created a bridge0 interface with two of the physical network interfaces (sis0 and sis1) as members. IPv4 seems to work fine over this; I can assign an IPv4 address to bridge0 and everything seems normal. If I assign an IPv6 address to the interface, no IPv6 packets seem to go in or out, and ping6-ing a machine on the same subnet yields: hornet# ping6 other_address PING6(56=3D40+8+8 nbytes) (net4801_address) --> (other_address) _storelladdr: something odd happens ping6: sendmsg: Invalid argument ping6: wrote tomcat.kitchenlab.org 16 chars, ret=3D-1 nd6_storelladdr: something odd happens Note that the output above is slightly mangled; I wonder if this has to do with some buffer related to the net4801's serial console being overrun. Anyways. tcpdump-ing in various places shows that ICMPv6 neighbor solicitation packets aren't leaving the net4801. If I try to ping the net4801 from other machines on the subnet, I can see *their* neighbor solicitation packets arrive at the net4801 with tcpdump, but it never (as far as I can tell) sends a response. I wonder if this has to do with IPv6 ND packets being sent as multicast, but that's just a guess. Googling showed that at least on NetBSD 1.6, this didn't work, but I wasn't able to find anything immediately applicable to FreeBSD 6.0-BETA3. :-) Any ideas? Thanks! Bruce. --=-ASgMNpDrq/eLAwSZhbqM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDE21T2MoxcVugUsMRAp3BAKDjSIAih89Wj13e650alwiqa/ncIgCfb+Tc wPG2fcMHte98NeATE8QqhG4= =PpQD -----END PGP SIGNATURE----- --=-ASgMNpDrq/eLAwSZhbqM-- From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 21:17:31 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5275516A420; Mon, 29 Aug 2005 21:17:31 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DB3E43D6E; Mon, 29 Aug 2005 21:17:26 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 99D5A1CCD6; Tue, 30 Aug 2005 09:17:20 +1200 (NZST) Date: Tue, 30 Aug 2005 09:17:20 +1200 From: Andrew Thompson To: "Bruce A. Mah" Message-ID: <20050829211720.GA55642@heff.fud.org.nz> References: <1125346643.2344.31.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1125346643.2344.31.camel@localhost> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: if_bridge and IPv6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 21:17:31 -0000 On Mon, Aug 29, 2005 at 01:17:23PM -0700, Bruce A. Mah wrote: > Hi folks-- > > Can anyone tell me if I should be able to run IPv6 over an if_bridge > interface? The bridge is layer2 so you should be able to use any layer3 protocol. > IPv4 seems to work fine over this; I can assign an IPv4 address to > bridge0 and everything seems normal. If I assign an IPv6 address to the > interface, no IPv6 packets seem to go in or out, and ping6-ing a machine > on the same subnet yields: > > hornet# ping6 other_address > PING6(56=40+8+8 nbytes) (net4801_address) --> (other_address) > _storelladdr: something odd happens > ping6: sendmsg: Invalid argument > ping6: wrote tomcat.kitchenlab.org 16 chars, ret=-1 > nd6_storelladdr: something odd happens > >From what I can tell this is from the bridge itself, does bridging work between ipv6 hosts on either side of the bridge? I will try and replicate this setup tonight. cheers, Andrew From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 21:38:00 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB70016A41F; Mon, 29 Aug 2005 21:38:00 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from b.mail.sonic.net (b.mail.sonic.net [64.142.19.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BD1943D48; Mon, 29 Aug 2005 21:38:00 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from dhcp-168-0-23.packetdesign.com (dns.packetdesign.com [65.192.41.10]) (authenticated bits=0) by b.mail.sonic.net (8.13.3/8.13.3) with ESMTP id j7TLbx1I009393 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 29 Aug 2005 14:38:00 -0700 From: "Bruce A. Mah" To: Andrew Thompson In-Reply-To: <20050829211720.GA55642@heff.fud.org.nz> References: <1125346643.2344.31.camel@localhost> <20050829211720.GA55642@heff.fud.org.nz> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-veeTo6tCtiBagTo9O2cZ" Date: Mon, 29 Aug 2005 14:37:58 -0700 Message-Id: <1125351478.2344.44.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: freebsd-net@freebsd.org, bmah@freebsd.org Subject: Re: if_bridge and IPv6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 21:38:00 -0000 --=-veeTo6tCtiBagTo9O2cZ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable If memory serves me right, Andrew Thompson wrote: > From what I can tell this is from the bridge itself, does bridging work > between ipv6 hosts on either side of the bridge? Hmm...I haven't tried that yet. Unfortunately I'm not in close proximity to the system in question at the moment, so it'll be a few hours (evening, San Francisco time) until I can try this. I'll test and report back. > I will try and replicate this setup tonight. Many thanks! Bruce. PS. Food for thought: Should bridge devices have IFF_MULTICAST set? Mine doesn't. hornet# ifconfig bridge0 bridge0: flags=3D41 mtu 1500 inet (foo) netmask 0xffffff00 inet6 (bar) prefixlen 64 ether ac:de:48:cd:e2:32 priority 32768 hellotime 2 fwddelay 15 maxage 20 member: sis1 flags=3D3 member: sis0 flags=3D3 --=-veeTo6tCtiBagTo9O2cZ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDE4A22MoxcVugUsMRAm/tAJ4o14GC6cnHsrXCrf7nn+WUcmkzJACgmS9e iFaAHwI1+581cMTKvlarMNU= =SRnF -----END PGP SIGNATURE----- --=-veeTo6tCtiBagTo9O2cZ-- From owner-freebsd-net@FreeBSD.ORG Mon Aug 29 23:01:24 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31E0816A41F; Mon, 29 Aug 2005 23:01:24 +0000 (GMT) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B91243D48; Mon, 29 Aug 2005 23:01:23 +0000 (GMT) (envelope-from max@love2party.net) Received: from p54A3D18F.dip.t-dialin.net [84.163.209.143] (helo=donor.laier.local) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0ML25U-1E9sd00I6l-0007jy; Tue, 30 Aug 2005 01:01:22 +0200 From: Max Laier To: freebsd-net@freebsd.org Date: Tue, 30 Aug 2005 01:01:06 +0200 User-Agent: KMail/1.8.2 References: <1125346643.2344.31.camel@localhost> <20050829211720.GA55642@heff.fud.org.nz> <1125351478.2344.44.camel@localhost> In-Reply-To: <1125351478.2344.44.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1291326.3aUZrXWtef"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508300101.20432.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: "Bruce A. Mah" , Andrew Thompson Subject: Re: if_bridge and IPv6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 23:01:24 -0000 --nextPart1291326.3aUZrXWtef Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 29 August 2005 23:37, Bruce A. Mah wrote: > If memory serves me right, Andrew Thompson wrote: > > From what I can tell this is from the bridge itself, does bridging work > > between ipv6 hosts on either side of the bridge? > > Hmm...I haven't tried that yet. Unfortunately I'm not in close > proximity to the system in question at the moment, so it'll be a few > hours (evening, San Francisco time) until I can try this. I'll test and > report back. > > > I will try and replicate this setup tonight. > > Many thanks! Just a quick note: if_bridge does IPv6 filtering (in contrast to the old=20 bridge code). So you may want to check your settings there. > Bruce. > > PS. Food for thought: Should bridge devices have IFF_MULTICAST set? > Mine doesn't. > > hornet# ifconfig bridge0 > bridge0: flags=3D41 mtu 1500 > inet (foo) netmask 0xffffff00 > inet6 (bar) prefixlen 64 > ether ac:de:48:cd:e2:32 > priority 32768 hellotime 2 fwddelay 15 maxage 20 > member: sis1 flags=3D3 > member: sis0 flags=3D3 =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1291326.3aUZrXWtef Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDE5PAXyyEoT62BG0RAnVvAJwIfIOr38v3QOEPx1azWB2QOYGLmwCfcOUE IUf4rAOL9Mhy191N+YyzesY= =F1QS -----END PGP SIGNATURE----- --nextPart1291326.3aUZrXWtef-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 30 01:12:02 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E6C616A41F for ; Tue, 30 Aug 2005 01:12:02 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B388B43D45 for ; Tue, 30 Aug 2005 01:12:01 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.31]) (authenticated bits=0) by cain.gsoft.com.au (8.13.4/8.13.4) with ESMTP id j7U1Btqj049437 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 30 Aug 2005 10:42:00 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-net@freebsd.org Date: Tue, 30 Aug 2005 10:41:45 +0930 User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3927419.jtR8YKCd8Q"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508301041.52092.doconnor@gsoft.com.au> X-Spam-Score: -2.82 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.51 on 203.31.81.10 Subject: Routing problem (sort of) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 01:12:02 -0000 --nextPart3927419.jtR8YKCd8Q Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I have this problem trying to get a FreeBSD 4.x router to work with my ISP = =2D=20 it pretty much works except for one thing. We have a business DSL connection which is bridged ethernet (dc1), we also= =20 have a class C routed via gif. Recently the ISP changed things slightly and= =20 now all our out bound traffic has to travel over the gif tunnel instead of= =20 dc1 like it used to. The problem is that because gif0 has no address assigned to it any packets= =20 originating from the machine that are not specifically bound to an IP don't= =20 get assigned an IP before they travel over the tunnel (since it has no=20 address). I am wondering what the "right" solution is here - I guess I could assign a= n=20 IP to the tunnel but it seems like a bit of a waste.. Anyone have any suggestions? Please CC me as I'm not on -net. Thanks. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart3927419.jtR8YKCd8Q Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDE7JY5ZPcIHs/zowRAoLwAJ9zybHr9EFJpOE1pT15hMs1wpTZmQCeJNdF O//SyHtJG+0DJ9lSZL8i2kI= =jhk1 -----END PGP SIGNATURE----- --nextPart3927419.jtR8YKCd8Q-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 30 01:19:44 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DB0A16A41F; Tue, 30 Aug 2005 01:19:44 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47B5843D46; Tue, 30 Aug 2005 01:19:44 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from tomcat.kitchenlab.org (tomcat.kitchenlab.org [64.142.31.107]) by a.mail.sonic.net (8.13.3/8.13.3) with ESMTP id j7U1Jh9P026526 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 29 Aug 2005 18:19:44 -0700 Received: from tomcat.kitchenlab.org (localhost.kitchenlab.org [127.0.0.1]) by tomcat.kitchenlab.org (8.13.3/8.13.1) with ESMTP id j7U1JhjS019136; Mon, 29 Aug 2005 18:19:43 -0700 (PDT) (envelope-from bmah@freebsd.org) Received: (from bmah@localhost) by tomcat.kitchenlab.org (8.13.3/8.13.1/Submit) id j7U1JhEP019135; Mon, 29 Aug 2005 18:19:43 -0700 (PDT) (envelope-from bmah@freebsd.org) X-Authentication-Warning: tomcat.kitchenlab.org: bmah set sender to bmah@freebsd.org using -f From: "Bruce A. Mah" To: Andrew Thompson In-Reply-To: <1125351478.2344.44.camel@localhost> References: <1125346643.2344.31.camel@localhost> <20050829211720.GA55642@heff.fud.org.nz> <1125351478.2344.44.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-qcyfLhfSfLi5x0EIeh5h" Date: Mon, 29 Aug 2005 18:19:42 -0700 Message-Id: <1125364782.19062.3.camel@tomcat.kitchenlab.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: freebsd-net@freebsd.org, bmah@freebsd.org Subject: Re: if_bridge and IPv6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 01:19:44 -0000 --=-qcyfLhfSfLi5x0EIeh5h Content-Type: text/plain Content-Transfer-Encoding: quoted-printable If memory serves me right, Bruce A. Mah wrote: > If memory serves me right, Andrew Thompson wrote: >=20 > > From what I can tell this is from the bridge itself, does bridging work > > between ipv6 hosts on either side of the bridge? >=20 > Hmm...I haven't tried that yet. Unfortunately I'm not in close > proximity to the system in question at the moment, so it'll be a few > hours (evening, San Francisco time) until I can try this. I'll test and > report back. Bridging of IPv6 packets going between two hosts on either side of the bridge appears to work just fine (to the point where I can do ping6 and ssh across the bridge). > PS. Food for thought: Should bridge devices have IFF_MULTICAST set? > Mine doesn't. >=20 > hornet# ifconfig bridge0 > bridge0: flags=3D41 mtu 1500 > inet (foo) netmask 0xffffff00 > inet6 (bar) prefixlen 64 > ether ac:de:48:cd:e2:32 > priority 32768 hellotime 2 fwddelay 15 maxage 20 > member: sis1 flags=3D3 > member: sis0 flags=3D3 This looks more and more suspicious to me. IPv6 ND requires multicast to work and there are several explicit checks for IFF_MULTICAST in the IPv6 output path and neighbor discovery code. Bruce. --=-qcyfLhfSfLi5x0EIeh5h Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDE7Qu2MoxcVugUsMRAmlAAKDEnodIAhiNurXc8JyUi5K/5dglugCffD80 0MqTDOS/oBsCVvZP/FJIwVU= =7Oqu -----END PGP SIGNATURE----- --=-qcyfLhfSfLi5x0EIeh5h-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 30 01:22:47 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8675416A41F; Tue, 30 Aug 2005 01:22:47 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from b.mail.sonic.net (b.mail.sonic.net [64.142.19.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C01943D45; Tue, 30 Aug 2005 01:22:47 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from tomcat.kitchenlab.org (tomcat.kitchenlab.org [64.142.31.107]) by b.mail.sonic.net (8.13.3/8.13.3) with ESMTP id j7U1Mk4Q013203 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 29 Aug 2005 18:22:46 -0700 Received: from tomcat.kitchenlab.org (localhost.kitchenlab.org [127.0.0.1]) by tomcat.kitchenlab.org (8.13.3/8.13.1) with ESMTP id j7U1MkuP019159; Mon, 29 Aug 2005 18:22:46 -0700 (PDT) (envelope-from bmah@freebsd.org) Received: (from bmah@localhost) by tomcat.kitchenlab.org (8.13.3/8.13.1/Submit) id j7U1MjFC019158; Mon, 29 Aug 2005 18:22:45 -0700 (PDT) (envelope-from bmah@freebsd.org) X-Authentication-Warning: tomcat.kitchenlab.org: bmah set sender to bmah@freebsd.org using -f From: "Bruce A. Mah" To: Max Laier In-Reply-To: <200508300101.20432.max@love2party.net> References: <1125346643.2344.31.camel@localhost> <20050829211720.GA55642@heff.fud.org.nz> <1125351478.2344.44.camel@localhost> <200508300101.20432.max@love2party.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-2GbOrua8tnzPU+evydUU" Date: Mon, 29 Aug 2005 18:22:45 -0700 Message-Id: <1125364965.19062.6.camel@tomcat.kitchenlab.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: freebsd-net@freebsd.org, Andrew Thompson , bmah@freebsd.org Subject: Re: if_bridge and IPv6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 01:22:47 -0000 --=-2GbOrua8tnzPU+evydUU Content-Type: text/plain Content-Transfer-Encoding: quoted-printable If memory serves me right, Max Laier wrote: > On Monday 29 August 2005 23:37, Bruce A. Mah wrote: > > If memory serves me right, Andrew Thompson wrote: > > > From what I can tell this is from the bridge itself, does bridging wo= rk > > > between ipv6 hosts on either side of the bridge? > > > > Hmm...I haven't tried that yet. Unfortunately I'm not in close > > proximity to the system in question at the moment, so it'll be a few > > hours (evening, San Francisco time) until I can try this. I'll test an= d > > report back. > > > > > I will try and replicate this setup tonight. > > > > Many thanks! >=20 > Just a quick note: if_bridge does IPv6 filtering (in contrast to the old=20 > bridge code). So you may want to check your settings there. Thanks, that's a good point, and in fact I'll be depending on this functionality eventually. But I haven't gotten around to the point of configuring any filtering yet (am planning on using PF eventually). Just for good measure I tried setting net.link.bridge.pfil_bridge to 0 but that didn't have any effect I could see. Bruce. --=-2GbOrua8tnzPU+evydUU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDE7Tl2MoxcVugUsMRAvZqAKDWdhAzeSTOfMmWi+wDKCS908Yk6wCg6lIs okcyOB2OL8CVSWvl1gPybv8= =YD/J -----END PGP SIGNATURE----- --=-2GbOrua8tnzPU+evydUU-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 30 01:26:57 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35C9216A41F; Tue, 30 Aug 2005 01:26:57 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF32543D5D; Tue, 30 Aug 2005 01:26:55 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id B17BA1CCD4; Tue, 30 Aug 2005 13:26:50 +1200 (NZST) Date: Tue, 30 Aug 2005 13:26:50 +1200 From: Andrew Thompson To: "Bruce A. Mah" Message-ID: <20050830012650.GC55642@heff.fud.org.nz> References: <1125346643.2344.31.camel@localhost> <20050829211720.GA55642@heff.fud.org.nz> <1125351478.2344.44.camel@localhost> <1125364782.19062.3.camel@tomcat.kitchenlab.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1125364782.19062.3.camel@tomcat.kitchenlab.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: if_bridge and IPv6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 01:26:57 -0000 On Mon, Aug 29, 2005 at 06:19:42PM -0700, Bruce A. Mah wrote: > If memory serves me right, Bruce A. Mah wrote: > > If memory serves me right, Andrew Thompson wrote: > > > > > From what I can tell this is from the bridge itself, does bridging work > > > between ipv6 hosts on either side of the bridge? > > > > Hmm...I haven't tried that yet. Unfortunately I'm not in close > > proximity to the system in question at the moment, so it'll be a few > > hours (evening, San Francisco time) until I can try this. I'll test and > > report back. > > Bridging of IPv6 packets going between two hosts on either side of the > bridge appears to work just fine (to the point where I can do ping6 and > ssh across the bridge). Good to hear something works :) > > PS. Food for thought: Should bridge devices have IFF_MULTICAST set? > > Mine doesn't. > > > > hornet# ifconfig bridge0 > > bridge0: flags=41 mtu 1500 > > inet (foo) netmask 0xffffff00 > > inet6 (bar) prefixlen 64 > > ether ac:de:48:cd:e2:32 > > priority 32768 hellotime 2 fwddelay 15 maxage 20 > > member: sis1 flags=3 > > member: sis0 flags=3 > > This looks more and more suspicious to me. IPv6 ND requires multicast > to work and there are several explicit checks for IFF_MULTICAST in the > IPv6 output path and neighbor discovery code. I think you are right, i'll look into it. Andrew From owner-freebsd-net@FreeBSD.ORG Tue Aug 30 05:24:58 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5AD216A446; Tue, 30 Aug 2005 05:24:57 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from b.mail.sonic.net (b.mail.sonic.net [64.142.19.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 578A643D45; Tue, 30 Aug 2005 05:24:57 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from tomcat.kitchenlab.org (tomcat.kitchenlab.org [64.142.31.107]) by b.mail.sonic.net (8.13.3/8.13.3) with ESMTP id j7U5OuM6001669 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 29 Aug 2005 22:24:57 -0700 Received: from tomcat.kitchenlab.org (localhost.kitchenlab.org [127.0.0.1]) by tomcat.kitchenlab.org (8.13.3/8.13.1) with ESMTP id j7U5Ou63019682; Mon, 29 Aug 2005 22:24:56 -0700 (PDT) (envelope-from bmah@freebsd.org) Received: (from bmah@localhost) by tomcat.kitchenlab.org (8.13.3/8.13.1/Submit) id j7U5OuGj019681; Mon, 29 Aug 2005 22:24:56 -0700 (PDT) (envelope-from bmah@freebsd.org) X-Authentication-Warning: tomcat.kitchenlab.org: bmah set sender to bmah@freebsd.org using -f From: "Bruce A. Mah" To: Andrew Thompson In-Reply-To: <20050830012650.GC55642@heff.fud.org.nz> References: <1125346643.2344.31.camel@localhost> <20050829211720.GA55642@heff.fud.org.nz> <1125351478.2344.44.camel@localhost> <1125364782.19062.3.camel@tomcat.kitchenlab.org> <20050830012650.GC55642@heff.fud.org.nz> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ebODyPjOwScrEmcyCHPR" Date: Mon, 29 Aug 2005 22:24:55 -0700 Message-Id: <1125379495.19062.37.camel@tomcat.kitchenlab.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: freebsd-net@freebsd.org, bmah@freebsd.org Subject: Re: if_bridge and IPv6? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 05:24:58 -0000 --=-ebODyPjOwScrEmcyCHPR Content-Type: text/plain Content-Transfer-Encoding: quoted-printable If memory serves me right, Andrew Thompson wrote: > On Mon, Aug 29, 2005 at 06:19:42PM -0700, Bruce A. Mah wrote: > > Bridging of IPv6 packets going between two hosts on either side of the > > bridge appears to work just fine (to the point where I can do ping6 and > > ssh across the bridge). > =20 > Good to hear something works :) Well, just for the record (maybe I mentioned this before) ARP and unicast IPv4 work as advertised. So yeah, something works. :-) > > > PS. Food for thought: Should bridge devices have IFF_MULTICAST set? > > > Mine doesn't. > > >=20 > > > hornet# ifconfig bridge0 > > > bridge0: flags=3D41 mtu 1500 > > > inet (foo) netmask 0xffffff00 > > > inet6 (bar) prefixlen 64 > > > ether ac:de:48:cd:e2:32 > > > priority 32768 hellotime 2 fwddelay 15 maxage 20 > > > member: sis1 flags=3D3 > > > member: sis0 flags=3D3 > >=20 > > This looks more and more suspicious to me. IPv6 ND requires multicast > > to work and there are several explicit checks for IFF_MULTICAST in the > > IPv6 output path and neighbor discovery code. >=20 > I think you are right, i'll look into it. Thanks! If I had some hacking time right now, my first attempt would be to stick this... ifp->if_flags |=3D IFF_MULTICAST; ...somewhere in bridge_clone_create(). Given how little I actually have worked with FreeBSD's network drivers, this would really be the "Hail Mary" approach and I wasn't feeling quite up to it this evening... :-p Cheers, Bruce. --=-ebODyPjOwScrEmcyCHPR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDE+2n2MoxcVugUsMRAqvbAKDLzyjF6EUgJijrViJIWcYPZoEP3gCgyrqv 3gZjhVnanx++CYna6cZqeS8= =FeHA -----END PGP SIGNATURE----- --=-ebODyPjOwScrEmcyCHPR-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 30 21:31:42 2005 Return-Path: X-Original-To: freebsd-net@www.freebsd.org Delivered-To: freebsd-net@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A41916A41F for ; Tue, 30 Aug 2005 21:31:42 +0000 (GMT) (envelope-from bart@it-ss.be) Received: from piggy.solidweb.be (piggy.web.bru.it-ss.be [195.28.164.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA71743D46 for ; Tue, 30 Aug 2005 21:31:41 +0000 (GMT) (envelope-from bart@it-ss.be) Received: from bartwrkstxp (214.120-136-217.adsl.skynet.be [217.136.120.214]) (authenticated bits=0) by piggy.solidweb.be (8.12.9-SW.b/8.12.9-SW) with ESMTP id j7ULVe27005922 for ; Tue, 30 Aug 2005 23:31:40 +0200 Message-ID: <000201c5adaa$362a8910$020b000a@bartwrkstxp> From: "Bart Van Kerckhove" To: Date: Tue, 30 Aug 2005 23:31:41 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Scanned-By: MIMEDefang 2.45 Cc: Subject: Re: Feature requests / inquiries. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 21:31:42 -0000 Hi,> > if_bridge has been imported into FreeBSD 6.0 and I believe will be > > merged to 5.x before 5.5. > A candidate MFC patchset is at: > http://people.freebsd.org/~thompsa/if_bridge-5stable.diff and is believed > to > be production quality (judging from the reports for RELENG_6 so far). > There > might be minor problems and/or yet undiscovered problems, but only testing > gets it there. Andrew is certainly thankful for any feedback! Ok, that's great info. Thanks guys.> > I can't speak for ECMP. That's a pity, we've had lots of issues when running redundant setups with VRRP, where VRRP tried to add the same route (on another interface) before the failed/old one got deleted (by OSPFd). This resulted in a faillure to add the new route, afterwards OSPF deletes the 'old' route, and you end up with no valid route at all.This is one of the major problems people are experiencing when running GNU/Zebra/Quagga in a redundant setup afaik. Current fixes in those circles consist of dirty hacks, such as shutting down and restarting OSPFd whenever VRRP acts. I feel it should be possible to resolve this at kernel level, eliminating the need for userlevel hacks.So i'll simply repeat the proposal: anyone willing to develop support for ECMP (or just routes with metrics on them, not doing ECMP, but allowing multiple routes to the same prefix, on different/the same interface, with unique metrics)?As stated before, I'm very much willing to sponsor its development.> > > > LACP is supported by ng_fec. The fact that you don't like it is a > > seperate issue. FWIW, ng_fec only uses netgraph for configuration. > > It's not really a netgraph node. I'd personally like to see OpenBSD's > > if_trunk imported and LACP added, but I certainly don't have time. Well, when referring to not liking the NetGraph approach, i was specifically talking about NG_ONE2MANY(4) - which is a dirty hack (imho) to have some of the goodies of ECMP support.I'm not seeing ng_fec on freebsd4.11, but 5.x is an option, so problem solved with regards to LACP.Kind regards,Met vriendelijke groet / With kind regards,Bart Van Kerckhovebart@it-ss.be From owner-freebsd-net@FreeBSD.ORG Wed Aug 31 08:26:23 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD03B16A41F for ; Wed, 31 Aug 2005 08:26:23 +0000 (GMT) (envelope-from julian@elischer.org) Received: from smirk.idiom.com (smirk.idiom.com [216.240.32.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D98043D48 for ; Wed, 31 Aug 2005 08:26:23 +0000 (GMT) (envelope-from julian@elischer.org) Received: from squirrelmail.idiom.com (smirk [127.0.0.1]) by smirk.idiom.com (Postfix) with ESMTP id 54EB0AEA759; Wed, 31 Aug 2005 01:26:23 -0700 (PDT) Received: from 216.240.32.1 (proxying for 62.68.178.236) (SquirrelMail authenticated user julian) by smirk.idiom.com with HTTP; Wed, 31 Aug 2005 01:26:23 -0700 (PDT) Message-ID: <3604.216.240.32.1.1125476783.squirrel@smirk.idiom.com> In-Reply-To: <004001c5ac59$eda111b0$9f90a8c0@donatas> References: <026001c59e7a$c6ca69c0$9f90a8c0@donatas> <42FBC0AE.8020803@elischer.org> <027701c59f02$0eb808a0$9f90a8c0@donatas> <42FCF148.5010400@elischer.org> <000d01c5a223$53799840$0500a8c0@donatas> <4306C04B.4010008@elischer.org> <004001c5ac59$eda111b0$9f90a8c0@donatas> Date: Wed, 31 Aug 2005 01:26:23 -0700 (PDT) From: "Julian Elischer" To: "Donatas" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-net@freebsd.org, Julian Elischer Subject: Re: routing problem (with corrected scheme) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 08:26:24 -0000 > Good morning, > after comprehensive tests I am glad to inform that your suggestions works > just fine, so - thanks for help solving our problem. > > Truth, i've got one question realated to the exampel rule below: >>ipfw add 1000 fwd ip4 ip from any to any out recv em0 xmit vlan{mumble} > > After several tests i have recognized that localy generated packets (like > icmp traffic) never matches this rule. The problem is in "xmit > vlan{number}" part. Is it so because of different place of packet input? > Transit packets come to firewall from ether_demux and passes the rule, > while localy generated packets come to firewall from ip_input and fails locally generated packets do not match recv em0 > this rule? Using "pass" instead of "fwd" results in the same. > > > ----- Original Message ----- > From: "Julian Elischer" > To: "Donatas" > Sent: Saturday, August 20, 2005 8:31 AM > Subject: Re: routing problem (with corrected scheme) > > >> did my sugestion work? >> > From owner-freebsd-net@FreeBSD.ORG Wed Aug 31 09:43:55 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0619A16A41F for ; Wed, 31 Aug 2005 09:43:55 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from hotmail.com (bay101-f28.bay101.hotmail.com [64.4.56.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id A318D43D4C for ; Wed, 31 Aug 2005 09:43:54 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 31 Aug 2005 02:43:54 -0700 Message-ID: Received: from 64.4.56.200 by by101fd.bay101.hotmail.msn.com with HTTP; Wed, 31 Aug 2005 09:43:54 GMT X-Originating-IP: [64.4.56.200] X-Originating-Email: [digitalbrain@hotmail.com] X-Sender: digitalbrain@hotmail.com From: "Digital Brain" To: freebsd-net@freebsd.org Date: Wed, 31 Aug 2005 09:43:54 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 31 Aug 2005 09:43:54.0471 (UTC) FILETIME=[80460770:01C5AE10] Subject: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 09:43:55 -0000 Hi! I'm setting up a gateway server on FreeBSD 5.3-RELEASE but I'm having problems getting FreeBSD to work with my ADSL modem (provided by ISP, no documentation, nothing on the net :-( ). The problem is I'm trying to get my private IP via "dhclient -v ed0" and all I observe is a series of "DHCPDISCOVER on ed0 to xxxxxx port 67 interval x" and in the end a message saying "No DHCPOFFER received". I've also used tcpdump to figure out what's going on with dhclient -- all I can see is the dhcp requests from my machine and *no* replies whatsoever. As if the ISP's DHCP server never received a request. The bpf device is included in the kernel config and I don't think it's a NIC problem (it works OK when I manually set the IP and ISP gateway). It's also not a network cable problem or ADSL modem problem (pls see below). Linux machines with dhcpcd and other Windows machines I've tried, all work OK and receive a private IP from my ISP. While monitoring the dhcp exchange with Ethereal, I can see 1 dhcp request and shortly after a dhcp reply with an assigned IP. Is there a problem with the particular version of dhclient in FreeBSD 5.3? Are there any solutions to this problem (preferably using FBSD-5.3)? --- Thanks in advance. From owner-freebsd-net@FreeBSD.ORG Wed Aug 31 15:04:18 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BE4516A41F for ; Wed, 31 Aug 2005 15:04:18 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id C235943D46 for ; Wed, 31 Aug 2005 15:04:17 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 398D55F6B; Wed, 31 Aug 2005 11:04:17 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 35615-02; Wed, 31 Aug 2005 11:04:14 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-79-217.ny325.east.verizon.net [68.161.79.217]) by pi.codefab.com (Postfix) with ESMTP id A000C5F4C; Wed, 31 Aug 2005 11:04:14 -0400 (EDT) Message-ID: <4315C6EF.1020200@mac.com> Date: Wed, 31 Aug 2005 11:04:15 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050801 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Digital Brain References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-net@freebsd.org Subject: Re: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 15:04:18 -0000 Digital Brain wrote: > I'm setting up a gateway server on FreeBSD 5.3-RELEASE but I'm having > problems getting FreeBSD to work with my ADSL modem (provided by ISP, no > documentation, nothing on the net :-( ). > > The problem is I'm trying to get my private IP via "dhclient -v ed0" and > all I observe is > a series of "DHCPDISCOVER on ed0 to xxxxxx port 67 interval x" and in > the end a > message saying "No DHCPOFFER received". You probably need to include a hostname with your DHCP request (update /etc/dhclient.conf. For some reason, some ISPs require that before granting a lease... -- -Chuck From owner-freebsd-net@FreeBSD.ORG Wed Aug 31 19:59:47 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E80C16A41F for ; Wed, 31 Aug 2005 19:59:47 +0000 (GMT) (envelope-from emaste@phaedrus.sandvine.ca) Received: from mailserver.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 119B543D46 for ; Wed, 31 Aug 2005 19:59:46 +0000 (GMT) (envelope-from emaste@phaedrus.sandvine.ca) Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by mailserver.sandvine.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 31 Aug 2005 15:59:45 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id 5F9F213646; Wed, 31 Aug 2005 15:59:45 -0400 (EDT) Date: Wed, 31 Aug 2005 15:59:45 -0400 From: Ed Maste To: freebsd-net@freebsd.org Message-ID: <20050831195945.GA22805@sandvine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 31 Aug 2005 19:59:45.0609 (UTC) FILETIME=[88DE3B90:01C5AE66] Subject: BIOCSSEESENT ioctl not honoured for single-mbuf packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 19:59:47 -0000 A coworker of mine discovered a bug in bpf with BIOCSEESENT. In sys/net/bpf.c, bpf_mtap() does if (pktlen == m->m_len) { bpf_tap(bp, mtod(m, u_char *), pktlen); return; } BPFIF_LOCK(bp); LIST_FOREACH(d, &bp->bif_dlist, bd_next) { if (!d->bd_seesent && (m->m_pkthdr.rcvif == NULL)) continue; [...] The pktlen == m->m_len is an optimization for the case where the entire packet is in a single mbuf, added in version 1.95. However, bd_seesent then isn't checked so all packets will be seen. In order to make bpf_tap work correctly with BIOCSEESENT for both this case and the few drivers that use it, I think it needs another argument to indicate if the packet is being sent or not. Is it possible to change the API for bpf_tap? Or add a bpf_tap2 that includes the flag, and make bpf_tap call it (for any third party drivers using bpf_tap)? -- Ed Maste Sandvine Incorporated From owner-freebsd-net@FreeBSD.ORG Wed Aug 31 20:53:24 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 316D116A41F for ; Wed, 31 Aug 2005 20:53:24 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from hotmail.com (bay101-f26.bay101.hotmail.com [64.4.56.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id F321343D45 for ; Wed, 31 Aug 2005 20:53:23 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 31 Aug 2005 13:53:23 -0700 Message-ID: Received: from 64.4.56.200 by by101fd.bay101.hotmail.msn.com with HTTP; Wed, 31 Aug 2005 20:53:23 GMT X-Originating-IP: [64.4.56.200] X-Originating-Email: [digitalbrain@hotmail.com] X-Sender: digitalbrain@hotmail.com In-Reply-To: <4315C6EF.1020200@mac.com> From: "Digital Brain" To: cswiger@mac.com Date: Wed, 31 Aug 2005 20:53:23 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 31 Aug 2005 20:53:23.0894 (UTC) FILETIME=[071D8D60:01C5AE6E] Cc: freebsd-net@freebsd.org Subject: Re: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 20:53:24 -0000 Hi Chuck and thanks for your reply -- unfortunately dhclient still fails to get an IP... Here's a copy of my dhclient.conf: ---- #dhclient config for interface ed0 interface "ed0" { send host-name "my.gateway.com"; send dhcp-client-identifier "my.client.com"; request subnet-mask, broadcast-address, routers, domain-name-servers, domain-name, time-servers; require domain-name-servers; media "media autoselect"; } ---- I've tried a program called "dhcping" which supposedly tries to ping the dhcp server. All I get is "No answer". Any idea why linux's dhcpd and Windows work :-| ? And, any other ideas? Thanks From owner-freebsd-net@FreeBSD.ORG Wed Aug 31 22:52:01 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44B0316A41F for ; Wed, 31 Aug 2005 22:52:01 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: from seddon.ca (seddon.ca [203.209.212.18]) by mx1.FreeBSD.org (Postfix) with SMTP id 6FC7843D45 for ; Wed, 31 Aug 2005 22:52:00 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: (qmail 52500 invoked by uid 89); 31 Aug 2005 22:51:58 -0000 Received: by seddon.ca (tmda-sendmail, from uid 89); Thu, 01 Sep 2005 08:51:56 +1000 (EST) References: In-Reply-To: To: "Digital Brain" Date: Thu, 01 Sep 2005 08:51:55 +1000 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <1125528716.52476.TMDA@seddon.ca> X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Dave+Seddon Cc: freebsd-net@freebsd.org Subject: Re: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dave+Seddon List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 22:52:01 -0000 What ISP is it? You sure the ISP doesn't use PPPeE? Dave Digital Brain writes: > Hi Chuck and thanks for your reply -- unfortunately dhclient still fails > to get an IP... > > Here's a copy of my dhclient.conf: > > ---- > > #dhclient config for interface ed0 > > interface "ed0" { > send host-name "my.gateway.com"; > send dhcp-client-identifier "my.client.com"; > request subnet-mask, broadcast-address, routers, > domain-name-servers, domain-name, time-servers; > > require domain-name-servers; > media "media autoselect"; > } > > ---- > > I've tried a program called "dhcping" which supposedly tries to ping the > dhcp server. > All I get is "No answer". Any idea why linux's dhcpd and Windows work :-| > ? > > And, any other ideas? > > Thanks > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 04:49:22 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98CEB16A41F; Thu, 1 Sep 2005 04:49:22 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3A5B43D45; Thu, 1 Sep 2005 04:49:21 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.43 (FreeBSD)) id 1EAhN2-000K4c-2Z; Thu, 01 Sep 2005 14:12:16 +0900 Message-Id: <6.2.1.2.2.20050901133026.03582b30@202.179.0.80> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Thu, 01 Sep 2005 13:49:16 +0900 To: freebsd-net@freebsd.org From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: glebius@FreeBSD.org Subject: ng_netflow/ipfw/bridge problems and Netflow best practices X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 04:49:22 -0000 Hi, I'm newbie to Netflow and I'm trying to use ng_netflow because it is fast and uses less CPU. I'm trying to collect Netflow traffic from FreeBSD 5.4 machine. Collector (flow-tools) runs on same machine. This FreeBSD has 3 interfaces and it acts as bridging firewall using IPFW2. It also uses dummynet. host# uname -an FreeBSD machine.mng.net 5.4-STABLE FreeBSD 5.4-STABLE #4: Fri Aug 12 09:58:18 ULAST 2005 tsgan@machine.mng.net:/usr/obj/usr/src/sys/PRXY i386 host# ifconfig xl0: flags=8943 mtu 1500 media: Ethernet 100baseTX status: active xl1: flags=8943 mtu 1500 media: Ethernet 100baseTX status: active vr0: flags=8843 mtu 1500 inet x.x.x.x netmask 0xffffffe0 broadcast x.x.x.x media: Ethernet autoselect (100baseTX ) status: active I'm running ng_netflow module and ngctl with following parameters to catch both incoming and outgoing traffic: ngctl mkpeer xl1: tee lower right ngctl connect xl1: xl1:lower upper left ngctl name xl1:lower xl1_tee ngctl mkpeer xl1_tee: netflow left2right iface0 ngctl name xl1:lower.left2right netflow ngctl connect xl1_tee: netflow: right2left iface1 ngctl msg netflow: setifindex { iface=0 index=2 } ngctl msg netflow: setifindex { iface=1 index=1 } ngctl mkpeer netflow: ksocket export inet/dgram/udp ngctl msg netflow:export connect inet/127.0.0.1:8818 ngctl mkpeer xl0: tee lower right ngctl connect xl0: xl0:lower upper left ngctl name xl0:lower xl0_tee ngctl mkpeer xl0_tee: netflow left2right iface2 ngctl name xl0:lower.left2right netflow0 ngctl msg netflow0: setifindex { iface=2 index=4 } ngctl connect xl0_tee: netflow0: right2left iface3 ngctl msg netflow0: setifindex { iface=3 index=3 } ngctl mkpeer netflow0: ksocket export inet/dgram/udp ngctl msg netflow0:export connect inet/127.0.0.1:8818 However I have 2 issues. 1. Firewall dynamic rules count almost doubles when starts ng_netflow traffic. 2. Firewall behaves abnormally, customers complained that they couldn't connect to Internet. Is this known issue? How can I fix those? I rebooted firewall and I tried following: ngctl mkpeer xl1: tee lower left ngctl connect xl1: xl1:lower upper right ngctl mkpeer xl1:lower one2many left2right many0 ngctl connect xl1:lower.left2right xl1:lower many1 right2left ngctl name xl1:lower.right2left o2m ngctl mkpeer o2m: netflow one iface0 ngctl name o2m:one netflow ngctl mkpeer netflow: ksocket export inet/dgram/udp ngctl msg netflow:export connect inet/127.0.0.1:8818 Same problems as before I had after that. I don't know yet how to solve these problems. Can somebody in this list help me to solve above problems? Maybe somebody already had these issues and solved already. Afterwards I tried softflowd and it is working fine except it adds 5% overhead to CPU. That is why I prefer ng_netfow instead of softflowd. I'm using flow-tools and flowscan to collect traffic and make report using CUflow. Is there any better way to make nice graphs and reports? What other tools should I try? What is the best practice? I appreciate if somebody can give me some hints and advices. It would be great if someone can share configuration samples and best practices. thanks in advance, Ganbold From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 06:00:25 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8301516A41F for ; Thu, 1 Sep 2005 06:00:25 +0000 (GMT) (envelope-from bikrant_ml@wlink.com.np) Received: from krishna.wlink.com.np (krishna.wlink.com.np [202.79.32.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id B396843D46 for ; Thu, 1 Sep 2005 06:00:22 +0000 (GMT) (envelope-from bikrant_ml@wlink.com.np) Received: from bikrant.org.np (bikrant.wlink.com.np [202.79.36.168]) by krishna.wlink.com.np (Postfix) with ESMTP id 7EEA8625D6 for ; Thu, 1 Sep 2005 11:47:37 +0545 (NPT) From: Bikrant Neupane To: freebsd-net@freebsd.org User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Disposition: inline Date: Thu, 1 Sep 2005 11:44:56 +0545 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200509011144.56768.bikrant_ml@wlink.com.np> Subject: Maximum tun devices X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 06:00:25 -0000 Hi, I am using FreeBSD 4.9 as PPPoE Concentrator. This system has to server 500+ pppoe clients. Initially there were only four tun devices in the system. I added more tun devices. However I could not add more than 255 tunnel devices. mknod /dev/tun256 c 52 256 mknod: major or minor number too large Do I need to add support for more than 255 tun devices in kernel or do I need to use some other major number for tunnels higher than 255 ? Please suggest. Thanking you, Bikrant From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 06:20:54 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21DC116A41F for ; Thu, 1 Sep 2005 06:20:54 +0000 (GMT) (envelope-from bikrant_ml@wlink.com.np) Received: from krishna.wlink.com.np (krishna.wlink.com.np [202.79.32.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40DD943D45 for ; Thu, 1 Sep 2005 06:20:53 +0000 (GMT) (envelope-from bikrant_ml@wlink.com.np) Received: from bikrant.org.np (bikrant.wlink.com.np [202.79.36.168]) by krishna.wlink.com.np (Postfix) with ESMTP id EC2F6625D6 for ; Thu, 1 Sep 2005 12:08:17 +0545 (NPT) From: Bikrant Neupane To: freebsd-net@freebsd.org Date: Thu, 1 Sep 2005 12:05:37 +0545 User-Agent: KMail/1.8.1 References: <200509011144.56768.bikrant_ml@wlink.com.np> In-Reply-To: <200509011144.56768.bikrant_ml@wlink.com.np> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509011205.37877.bikrant_ml@wlink.com.np> Subject: Re: Maximum tun devices X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 06:20:54 -0000 Well, I found the answer :) sh /dev/MAKEDEV tun256 tun500 Bikrant On Thursday 01 September 2005 11:44, Bikrant Neupane wrote: > Hi, > > I am using FreeBSD 4.9 as PPPoE Concentrator. This system has to server > 500+ pppoe clients. Initially there were only four tun devices in the > system. I added more tun devices. However I could not add more than 255 > tunnel devices. > > mknod /dev/tun256 c 52 256 > mknod: major or minor number too large > > Do I need to add support for more than 255 tun devices in kernel or do I > need to use some other major number for tunnels higher than 255 ? > Please suggest. > > Thanking you, > Bikrant > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 07:54:51 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 157BD16A41F for ; Thu, 1 Sep 2005 07:54:51 +0000 (GMT) (envelope-from vanhu@zeninc.net) Received: from corwin.easynet.fr (smarthost162.mail.easynet.fr [212.180.1.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0B3E43D49 for ; Thu, 1 Sep 2005 07:54:49 +0000 (GMT) (envelope-from vanhu@zeninc.net) Received: from easyconnect2121135-233.clients.easynet.fr ([212.11.35.233] helo=smtp.zeninc.net) by corwin.easynet.fr with esmtp (Exim 4.50) id 1EAjuG-0000mv-3k for freebsd-net@freebsd.org; Thu, 01 Sep 2005 09:54:44 +0200 Received: by smtp.zeninc.net (smtpd, from userid 1000) id E5A273F61; Thu, 1 Sep 2005 09:54:42 +0200 (CEST) Date: Thu, 1 Sep 2005 09:54:42 +0200 From: VANHULLEBUS Yvan To: freebsd-net@freebsd.org Message-ID: <20050901075442.GA18666@zen.inc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: All mail clients suck. This one just sucks less. Subject: sbspace() / sbappendaddr() problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 07:54:51 -0000 Hi all. I have some reccurent problems with PFKey interafce for a while, whith ENOBUFS errors. While tracking down the problem, I found that a test goes wrong in sbappendaddr(), in kern_uipc_socket2.c, because the "space" variable (an int) gets "bigger" than the result of sbspace(sb), which shlould not happen. After having a deeper look at sbspace() macro, I noticed that there are some potential cast/sign problems with this macro (this is specified in the comments of the macro). So I wrote a new version of the macro, which should avoir all problems: #define sbspace(sb) \ (ulmin( ( (sb)->sb_hiwat > (sb)->sb_cc ? (sb)->sb_hiwat - (sb)->sb_cc : 0), \ (sb)->sb_mbmax > (sb)->sb_mbcnt ? (sb)->sb_mbmax - (sb)->sb_mbcnt : 0))) Then I set up the type of "space" variable in sbappendaddr() as u_long, and I have no more problems for now. But as this function and this macro are used on some other parts of the kernel, I don't know if I solved all problems, or if I generated new problems elsewhere while solving one. Does someone have any comments on this new sbspace() ? Yvan. -- NETASQ - Secure Internet Connectivity http://www.netasq.com From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 08:24:15 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DEBC16A41F for ; Thu, 1 Sep 2005 08:24:15 +0000 (GMT) (envelope-from donatas@lrtc.net) Received: from mail.lrtc.lt (pegasus.lrtc.lt [217.9.240.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C15D43D45 for ; Thu, 1 Sep 2005 08:24:13 +0000 (GMT) (envelope-from donatas@lrtc.net) Received: (qmail 20042 invoked from network); 1 Sep 2005 08:21:27 -0000 Received: from p2p-241-242-ird.vln0.lrtc.net (HELO donatas) (d.gendvilas@[217.9.241.242]) (envelope-sender ) by mail.lrtc.lt (qmail-ldap-1.03) with SMTP for ; 1 Sep 2005 08:21:27 -0000 Message-ID: <020f01c5aece$8764e6c0$9f90a8c0@donatas> From: "Donatas" To: Date: Thu, 1 Sep 2005 11:24:10 +0300 Organization: AB Lietuvos Radijo ir Televizijos Centras MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-4" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: carp and reserved channles X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Donatas List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 08:24:15 -0000 hello, is it possible to use carp to create reserve(and/or load-balanced) = ethernet channel between two machines? basic idea looks like: machine-1 (em0)------------eth------------(em0)machine-2 machine-1 (em1)----eth(reserved)------(em1)machine-2 as far as i know carp cannot allow to share the same IP's on one machine = because of no possibility to set same IP's on physical ethernet = interfaces... in IP level this problem can be easily solved with certain routing = daemons, but i must do it on layer-2. of course i could write a script for monitorig interface activity = status, on it's failure automaticaly rise-up reserve adapter, but maybe = someone has allready done this? any other suggestions are welcome... From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 08:32:52 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA7AE16A41F for ; Thu, 1 Sep 2005 08:32:52 +0000 (GMT) (envelope-from vanhu@zeninc.net) Received: from corwin.easynet.fr (smarthost162.mail.easynet.fr [212.180.1.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C3DF43D45 for ; Thu, 1 Sep 2005 08:32:52 +0000 (GMT) (envelope-from vanhu@zeninc.net) Received: from easyconnect2121135-233.clients.easynet.fr ([212.11.35.233] helo=smtp.zeninc.net) by corwin.easynet.fr with esmtp (Exim 4.50) id 1EAkV3-0003ir-SG for freebsd-net@freebsd.org; Thu, 01 Sep 2005 10:32:47 +0200 Received: by smtp.zeninc.net (smtpd, from userid 1000) id 41AFE3F61; Thu, 1 Sep 2005 10:32:49 +0200 (CEST) Date: Thu, 1 Sep 2005 10:32:49 +0200 From: VANHULLEBUS Yvan To: freebsd-net@freebsd.org Message-ID: <20050901083249.GA18990@zen.inc> References: <20050901075442.GA18666@zen.inc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050901075442.GA18666@zen.inc> User-Agent: All mail clients suck. This one just sucks less. Subject: Re: sbspace() / sbappendaddr() problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 08:32:52 -0000 On Thu, Sep 01, 2005 at 09:54:42AM +0200, VANHULLEBUS Yvan wrote: > Hi all. > [....] > #define sbspace(sb) \ > (ulmin( ( (sb)->sb_hiwat > (sb)->sb_cc ? (sb)->sb_hiwat - (sb)->sb_cc : 0), \ > (sb)->sb_mbmax > (sb)->sb_mbcnt ? (sb)->sb_mbmax - (sb)->sb_mbcnt : 0))) Copy/paste error, there is one missing parenthesis, the "good" define is: #define sbspace(sb) \ (ulmin( ( (sb)->sb_hiwat > (sb)->sb_cc ? (sb)->sb_hiwat - (sb)->sb_cc : 0), \ ((sb)->sb_mbmax > (sb)->sb_mbcnt ? (sb)->sb_mbmax - (sb)->sb_mbcnt : 0))) Yvan. -- NETASQ - Secure Internet Connectivity http://www.netasq.com From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 09:45:45 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4FA816A41F for ; Thu, 1 Sep 2005 09:45:45 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from hotmail.com (bay101-f20.bay101.hotmail.com [64.4.56.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id B105D43D53 for ; Thu, 1 Sep 2005 09:45:45 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Sep 2005 02:45:45 -0700 Message-ID: Received: from 64.4.56.200 by by101fd.bay101.hotmail.msn.com with HTTP; Thu, 01 Sep 2005 09:45:45 GMT X-Originating-IP: [64.4.56.200] X-Originating-Email: [digitalbrain@hotmail.com] X-Sender: digitalbrain@hotmail.com In-Reply-To: <1125528716.52476.TMDA@seddon.ca> From: "Digital Brain" To: dave-dated-1125960717.3955a5@seddon.ca Date: Thu, 01 Sep 2005 09:45:45 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 01 Sep 2005 09:45:45.0598 (UTC) FILETIME=[ECEC69E0:01C5AED9] Cc: freebsd-net@freebsd.org Subject: Re: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 09:45:46 -0000 >You sure the ISP doesn't use PPPeE? The modem acts as a bridge. All I have to do is turn it on; it then synchronizes with the ISP's network (PPPoA). Then I just execute dhcpcd eth0 from the linux machine (connected to the modem) and I'm assigned an IP and a default gateway in mere seconds. Unfortunately, as simple as it is in linux, it doesn't seem to work with freebsd... It should have worked with dhclient ed0, but the dhcp server's reply gets lost somewhere. From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 10:21:27 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB3D816A41F for ; Thu, 1 Sep 2005 10:21:27 +0000 (GMT) (envelope-from is@rambler-co.ru) Received: from yam.park.rambler.ru (yam.park.rambler.ru [81.19.64.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44AD743D49 for ; Thu, 1 Sep 2005 10:21:26 +0000 (GMT) (envelope-from is@rambler-co.ru) Received: from is.park.rambler.ru (is.park.rambler.ru [81.19.64.102]) by yam.park.rambler.ru (8.13.3/8.13.3) with ESMTP id j81ALOEE060799 for ; Thu, 1 Sep 2005 14:21:24 +0400 (MSD) (envelope-from is@rambler-co.ru) Date: Thu, 1 Sep 2005 14:21:24 +0400 (MSD) From: Igor Sysoev X-X-Sender: is@is.park.rambler.ru To: freebsd-net@freebsd.org Message-ID: <20050901140051.G11484@is.park.rambler.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: strange timeout error returned by kevent() in 6.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 10:21:28 -0000 I found strange timeout errors returned by kevent() in 6.0 using my http server named nginx. The nginx's run on three machines: two 4.10-RELEASE and one 6.0-BETA3. All machines serve the same content (simple cluster) and each handles about 200 requests/second. On 6.0 sometimes (2 or 3 times per hour) in the daytime kevent() returns EV_EOF in flags and ETIMEDOUT in fflags, nevertheless: 1) nginx does not set any kernel timeout for sockets; 2) the total request time for such failed requests is small, 30 and so seconds. Igor Sysoev http://sysoev.ru/en/ From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 10:27:17 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88FE516A41F for ; Thu, 1 Sep 2005 10:27:17 +0000 (GMT) (envelope-from net@dino.sk) Received: from bsd.dino.sk (bsd.dino.sk [213.215.72.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE70243D45 for ; Thu, 1 Sep 2005 10:27:16 +0000 (GMT) (envelope-from net@dino.sk) Received: from tablet.dino.sk ([213.215.74.194]) (AUTH: PLAIN milan, SSL: TLSv1/SSLv3,128bits,RC4-MD5) by bsd.dino.sk with esmtp; Thu, 01 Sep 2005 12:29:45 +0200 id 00000157.4316D819.0001193D From: Milan Obuch To: freebsd-net@freebsd.org Date: Thu, 1 Sep 2005 12:26:00 +0200 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509011226.02803.net@dino.sk> Subject: Re: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 10:27:17 -0000 On Thursday 01 September 2005 11:45, Digital Brain wrote: > >You sure the ISP doesn't use PPPeE? > > The modem acts as a bridge. All I have to do is turn it on; it then > synchronizes with the ISP's network (PPPoA). Then I just execute dhcpcd > eth0 from the linux machine (connected to the modem) and I'm assigned an IP > and a default gateway in mere seconds. > > Unfortunately, as simple as it is in linux, it doesn't seem to work with > freebsd... > It should have worked with dhclient ed0, but the dhcp server's reply gets > lost somewhere. Do you have any possibility to sniff working linux/windows packet exchange as well as non-working freebsd's? While I am no network/dhcp guru, I think this way you could get more hints/help or maybe even patches to fix this issue... Milan From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 10:43:20 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF5AA16A41F for ; Thu, 1 Sep 2005 10:43:20 +0000 (GMT) (envelope-from dionch@freemail.gr) Received: from mail.bug.gr (vdp2010.ath03.dsl.hol.gr [62.38.169.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AFB943D48 for ; Thu, 1 Sep 2005 10:43:18 +0000 (GMT) (envelope-from dionch@freemail.gr) Received: (qmail 32634 invoked by uid 98); 1 Sep 2005 10:43:16 -0000 Received: from dionch@freemail.gr by mail.bug.gr by uid 89 with qmail-scanner-1.22 (clamscan: 0.74. spamassassin: 2.63. Clear:RC:0(10.0.0.1):SA:0(-2.8/5.0):. Processed in 12.397132 secs); 01 Sep 2005 10:43:16 -0000 X-Spam-Status: No, hits=-2.8 required=5.0 Received: from unknown (HELO ?10.0.0.1?) (chdio@bug.gr@10.0.0.1) by 10.0.0.2 with SMTP; 1 Sep 2005 10:43:03 -0000 Message-ID: <4316DB17.5000601@freemail.gr> Date: Thu, 01 Sep 2005 13:42:31 +0300 From: Chris Dionissopoulos User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Digital Brain References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Cc: dave-dated-1125960717.3955a5@seddon.ca, freebsd-net@freebsd.org Subject: Re: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dionch@freemail.gr List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 10:43:20 -0000 Digital Brain wrote: >> You sure the ISP doesn't use PPPeE? > > > The modem acts as a bridge. All I have to do is turn it on; it then > synchronizes with the ISP's network (PPPoA). Then I just execute > dhcpcd eth0 from the linux machine (connected to the modem) and I'm > assigned an IP and a default gateway in mere seconds. > > Unfortunately, as simple as it is in linux, it doesn't seem to work > with freebsd... > It should have worked with dhclient ed0, but the dhcp server's reply > gets lost somewhere. > Linux and freebsd you re trying, running on same hardware (nic) ? I'm saying that cause some ISPs lock their "IP-offering" with each client's hardware address (which is defined at first use). Chris. From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 11:31:21 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C4FF16A41F for ; Thu, 1 Sep 2005 11:31:21 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from hotmail.com (bay101-f34.bay101.hotmail.com [64.4.56.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4958143D46 for ; Thu, 1 Sep 2005 11:31:21 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Sep 2005 04:31:21 -0700 Message-ID: Received: from 64.4.56.200 by by101fd.bay101.hotmail.msn.com with HTTP; Thu, 01 Sep 2005 11:31:20 GMT X-Originating-IP: [64.4.56.200] X-Originating-Email: [digitalbrain@hotmail.com] X-Sender: digitalbrain@hotmail.com In-Reply-To: <4316DB17.5000601@freemail.gr> From: "Digital Brain" To: dionch@freemail.gr Date: Thu, 01 Sep 2005 11:31:20 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 01 Sep 2005 11:31:21.0216 (UTC) FILETIME=[AD3F0000:01C5AEE8] Cc: freebsd-net@freebsd.org Subject: Re: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 11:31:21 -0000 Hi Chris, >Linux and freebsd you re trying, running on same hardware (nic) ? >I'm saying that cause some ISPs lock their "IP-offering" >with each client's hardware address (which is defined at first use). Linux is on my laptop (and works ok), while freebsd is on another machine. I had thought of that and so I tried the following: 1. while I had a connection from the laptop with an assigned ip, I pulled out the cable and connected it to the freebsd machine. 2. I changed the IP to the one assigned on the laptop (ed0 interface) 3. I added the gateway via /sbin/route and modified /etc/resolv.conf. --> Now, this works ok, so I know the ISP is not locking the session based on the MAC address (since I didn't spoof that on FreeBSD). So, the problem remains: dhcp doesn't work from the freebsd machine... From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 11:50:45 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC64B16A41F for ; Thu, 1 Sep 2005 11:50:45 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from hotmail.com (bay101-f36.bay101.hotmail.com [64.4.56.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F63F43D4C for ; Thu, 1 Sep 2005 11:50:45 +0000 (GMT) (envelope-from digitalbrain@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Sep 2005 04:50:45 -0700 Message-ID: Received: from 64.4.56.200 by by101fd.bay101.hotmail.msn.com with HTTP; Thu, 01 Sep 2005 11:50:45 GMT X-Originating-IP: [64.4.56.200] X-Originating-Email: [digitalbrain@hotmail.com] X-Sender: digitalbrain@hotmail.com In-Reply-To: <4316DB17.5000601@freemail.gr> From: "Digital Brain" To: dionch@freemail.gr Date: Thu, 01 Sep 2005 11:50:45 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 01 Sep 2005 11:50:45.0321 (UTC) FILETIME=[631B5390:01C5AEEB] Cc: freebsd-net@freebsd.org Subject: Re: dhclient and ADSL modem trouble... [solved] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 11:50:45 -0000 Hi Chris and thanks for your reply. >I'm saying that cause some ISPs lock their "IP-offering" >with each client's hardware address (which is defined at first use). Turns out this was right. The problem was that I didn't properly "release" the session. As far as the ``spoofing'' in the previous post is concerned, it's not really related to MAC-based locking and works anyway. Thanks everyone. From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 14:26:07 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41E8716A41F for ; Thu, 1 Sep 2005 14:26:07 +0000 (GMT) (envelope-from is@rambler-co.ru) Received: from yam.park.rambler.ru (yam.park.rambler.ru [81.19.64.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9817F43D4C for ; Thu, 1 Sep 2005 14:26:05 +0000 (GMT) (envelope-from is@rambler-co.ru) Received: from is.park.rambler.ru (is.park.rambler.ru [81.19.64.102]) by yam.park.rambler.ru (8.13.3/8.13.3) with ESMTP id j81EQ3CC076292 for ; Thu, 1 Sep 2005 18:26:03 +0400 (MSD) (envelope-from is@rambler-co.ru) Date: Thu, 1 Sep 2005 18:26:03 +0400 (MSD) From: Igor Sysoev X-X-Sender: is@is.park.rambler.ru To: freebsd-net@freebsd.org In-Reply-To: <20050901140051.G11484@is.park.rambler.ru> Message-ID: <20050901182115.F11484@is.park.rambler.ru> References: <20050901140051.G11484@is.park.rambler.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: strange timeout error returned by kevent() in 6.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 14:26:07 -0000 On Thu, 1 Sep 2005, Igor Sysoev wrote: > I found strange timeout errors returned by kevent() in 6.0 using > my http server named nginx. The nginx's run on three machines: > two 4.10-RELEASE and one 6.0-BETA3. All machines serve the same > content (simple cluster) and each handles about 200 requests/second. > > On 6.0 sometimes (2 or 3 times per hour) in the daytime kevent() > returns EV_EOF in flags and ETIMEDOUT in fflags, nevertheless: > > 1) nginx does not set any kernel timeout for sockets; > 2) the total request time for such failed requests is small, 30 and so > seconds. I have changed code to ignore the ETIMEDOUT error returned by kevent() and found that subsequent sendfile() returned the ENOTCONN. By the way, why sendfile() may return ENOTCONN ? I saw this error code on 4.x too. Igor Sysoev http://sysoev.ru/en/ From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 14:36:07 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7620716A41F for ; Thu, 1 Sep 2005 14:36:07 +0000 (GMT) (envelope-from jonathan.ames@lmco.com) Received: from mailgw3a.lmco.com (mailgw3a.lmco.com [192.35.35.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 085E643D45 for ; Thu, 1 Sep 2005 14:36:06 +0000 (GMT) (envelope-from jonathan.ames@lmco.com) Received: from emss04g01.ems.lmco.com (relay4.ems.lmco.com [166.17.13.122]) by mailgw3a.lmco.com (8.12.10/8.12.10) with ESMTP id j81Ea6je028178 for ; Thu, 1 Sep 2005 10:36:06 -0400 (EDT) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1X6 #30884) id <0IM50000178515@lmco.com> for freebsd-net@freebsd.org; Thu, 01 Sep 2005 10:36:05 -0400 (EDT) Received: from EMSS04I00.us.lmco.com ([166.17.13.135]) by lmco.com (PMDF V6.1-1X6 #30884) with ESMTP id <0IM500MFW7833N@lmco.com> for freebsd-net@freebsd.org; Thu, 01 Sep 2005 10:36:05 -0400 (EDT) Received: from EMSS35M05.us.lmco.com ([158.187.107.141]) by EMSS04I00.us.lmco.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 01 Sep 2005 10:36:04 -0400 Date: Thu, 01 Sep 2005 10:36:04 -0400 From: "Ames, Jonathan (N-ENSCO)" To: freebsd-net@freebsd.org Message-id: <9D2DBC148E2B4146BCC36C41DE9DFBFD066624E1@emss35m05.us.lmco.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Thread-Topic: Testing Ethernet Ports Thread-Index: AcWvAnuNWLYElt/7RxiAwhbyryz4Cw== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 01 Sep 2005 14:36:05.0030 (UTC) FILETIME=[7BB6CC60:01C5AF02] Subject: Testing Ethernet Ports X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 14:36:07 -0000 Hi, Can someone give me a hand with this? A PC has two ethernet ports, both directly on the motherboard. Can I connect them externally with an ethernet cable and ping from one port to the other to test them both? How? Another PC has the two ports listed above, plus an additional ethernet port in a PCI card. Can I connect externally with the same cable from any port to any port to test them? How? Any help will be really appreciated. Thanks. -Jon From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 14:58:16 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A8FC16A41F for ; Thu, 1 Sep 2005 14:58:16 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E860E43D45 for ; Thu, 1 Sep 2005 14:58:15 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 29AFACCBF19 for ; Thu, 1 Sep 2005 10:58:14 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Thu, 01 Sep 2005 10:58:14 -0400 X-Sasl-enc: RU0fMqXlguLdrF44x3koMRKungIaDcn83Ys1o3eUCKxg 1125586693 Received: from merkur (host-66-202-74-42.choiceone.net [66.202.74.42]) by frontend2.messagingengine.com (Postfix) with ESMTP id 0CE72570326 for ; Thu, 1 Sep 2005 10:58:12 -0400 (EDT) Received: by merkur (nbSMTP-1.00) for uid 1000 willmaier@ml1.net; Thu, 1 Sep 2005 09:58:16 -0500 (CDT) Date: Thu, 1 Sep 2005 09:58:14 -0500 From: Will Maier To: freebsd-net@freebsd.org Message-ID: <20050901145814.GQ31769@localhost.localdomain> Mail-Followup-To: freebsd-net@freebsd.org References: <9D2DBC148E2B4146BCC36C41DE9DFBFD066624E1@emss35m05.us.lmco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9D2DBC148E2B4146BCC36C41DE9DFBFD066624E1@emss35m05.us.lmco.com> User-Agent: Mutt/1.5.6+20040907i Subject: Re: Testing Ethernet Ports X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 14:58:16 -0000 On Thu, Sep 01, 2005 at 10:36:04AM -0400, Ames, Jonathan (N-ENSCO) wrote: > Can someone give me a hand with this? Here goes... > A PC has two ethernet ports, both directly on the motherboard. > Can I connect them externally with an ethernet cable and ping from > one port to the other to test them both? How? Lemme see if I parsed your question correctly: * box.A.nic.1 --cable--> box.A.nic.2 Is that what you're talking about? Sure. Use a crossover cable, assign each interface a different IP on the same subnet (eg 10.0.0.1 and 10.0.0.2) and ping from one to the other: $ ping 10.0.0.1 Just as I can ping my (one) network interface from the box it's running on, you can ping each of them. To be sure that packets are going from one interface to the other, try the following (untested but based off `man ping`): $ ping -S 10.0.0.1 10.0.0.2 That'll ping from (-S) 10.0.0.1 to 10.0.0.2. Or, if you really want to be sure... $ traceroute -s 10.0.0.1 10.0.0.2 That'll also show you the route taken by the packets, although I don't expect that to be *too* much help (in this scenario), as there aren't really any devices between the interfaces. Still, it can be a handy trick. > Another PC has the two ports listed above, plus an additional > ethernet port in a PCI card. Can I connect externally with the > same cable from any port to any port to test them? How? So... * box.A.nic.1 --cable--> box.B.nic.3 * box.A.nic.2 --cable--> box.B.nic.2 ...etc... See above. > Any help will be really appreciated. Thanks. What is it you're actually trying to do? Something more than ping yourself, I imagine... -- o--------------------------{ Will Maier }--------------------------o | jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net | | \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu | *------------------[ BSD Unix: Live Free or Die ]------------------* From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 15:27:19 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D71016A41F for ; Thu, 1 Sep 2005 15:27:19 +0000 (GMT) (envelope-from barney@pit.databus.com) Received: from pit.databus.com (p72-0-224-2.acedsl.com [72.0.224.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AB1B43D4C for ; Thu, 1 Sep 2005 15:27:15 +0000 (GMT) (envelope-from barney@pit.databus.com) Received: from pit.databus.com (localhost [127.0.0.1]) by pit.databus.com (8.13.3/8.13.3) with ESMTP id j81FREJd064878 for ; Thu, 1 Sep 2005 11:27:14 -0400 (EDT) (envelope-from barney@pit.databus.com) Received: (from barney@localhost) by pit.databus.com (8.13.3/8.13.3/Submit) id j81FREkN064877 for freebsd-net@freebsd.org; Thu, 1 Sep 2005 11:27:14 -0400 (EDT) (envelope-from barney) Date: Thu, 1 Sep 2005 11:27:14 -0400 From: Barney Wolff To: freebsd-net@freebsd.org Message-ID: <20050901152714.GA62606@pit.databus.com> References: <9D2DBC148E2B4146BCC36C41DE9DFBFD066624E1@emss35m05.us.lmco.com> <20050901145814.GQ31769@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050901145814.GQ31769@localhost.localdomain> User-Agent: Mutt/1.5.9i Subject: Re: Testing Ethernet Ports X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 15:27:19 -0000 On Thu, Sep 01, 2005 at 09:58:14AM -0500, Will Maier wrote: > On Thu, Sep 01, 2005 at 10:36:04AM -0400, Ames, Jonathan (N-ENSCO) wrote: > > Can someone give me a hand with this? > > Here goes... > > > A PC has two ethernet ports, both directly on the motherboard. > > Can I connect them externally with an ethernet cable and ping from > > one port to the other to test them both? How? > > Lemme see if I parsed your question correctly: > * box.A.nic.1 --cable--> box.A.nic.2 > > Is that what you're talking about? Sure. Use a crossover cable, > assign each interface a different IP on the same subnet (eg 10.0.0.1 > and 10.0.0.2) and ping from one to the other: I don't believe this will do what's wanted - the packets will not actually go thru the NICs, as the OS is smart enough to realize that the dest is internal. With a crossover cable (not required with gigabit nics) you can't tell, so if you try it use a switch and look at the lights. -- Barney Wolff http://www.databus.com/bwresume.pdf I never met a computer I didn't like. From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 20:57:48 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4BDA16A41F for ; Thu, 1 Sep 2005 20:57:48 +0000 (GMT) (envelope-from peter@alastria.net) Received: from nebula.thdo.uk.alastria.net (nebula.thdo.uk.alastria.net [212.13.198.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 185C543D48 for ; Thu, 1 Sep 2005 20:57:47 +0000 (GMT) (envelope-from peter@alastria.net) Received: from [10.3.0.5] (shuttle.cw9.co.uk [83.67.74.97]) (authenticated bits=0) by nebula.thdo.uk.alastria.net (8.13.3/8.13.3) with ESMTP id j81KvfB3055871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 1 Sep 2005 20:57:42 GMT (envelope-from peter@alastria.net) Message-ID: <43176B4E.8080006@alastria.net> Date: Thu, 01 Sep 2005 21:57:50 +0100 From: Peter Wood Organization: Alastria Networks User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Flag: NO X-Virus-Status: No X-Spam-Score: 0 () X-Spam-Ultra-Flag: NO X-Spam-Low-Flag: NO X-Spam-Flag: NO X-Spam-High-Flag: NO X-Scanned-By: MIMEDefang 2.51 on 212.13.198.8 Subject: VLANs / Bridging / BPDU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 20:57:48 -0000 Evening, I'm having an issue with using vlans and bridging. The issue is probably something that can be fixed in either FreeBSD or in the Cisco IOS. I'll explain what I have. I've got a external router that's sitting on vlan 20, also on 20 is a FreeBSD gateway which I intend to use as a firewall for the raw internet. The gateway also sits on 10 to pass the data to the machines protected by it. Or that was the plan anyway, a shortened (snipped media/mac) version of my ifconfig is as follows: raw0: flags=8842 mtu 1500 status: active vlan: 20 parent interface: em0 dmz0: flags=8843 mtu 1500 inet 10.3.0.101 netmask 0xfff80000 broadcast 10.7.255.255 status: active vlan: 10 parent interface: em0 So the idea is raw0 (renamed vlan interface) accepts the traffic from the router, lets ipfw do it's work and then spits it back out via dmz0. As you can see both cloned vlan interfaces are on em0 on a 802.1Q trunk to a Cisco 2950. I am however having an issue with BPDU, the Cisco recognizes what it considers to be a loop in the topology. What I assume is that the Cisco is sending a BPDU packet out on VLAN10, the FreeBSD machine is passing that packet back out via VLAN20 (as I guess the bridge should), which the Cisco receives again, assumes a switch loop and blocks both of the vlan interfaces. Cisco errors are as follows: %SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 20 on GigabitEthernet0/1 VLAN10. %SPANTREE-2-BLOCK_PVID_PEER: Blocking GigabitEthernet0/1 on VLAN0020. Inconsistent peer vlan. %SPANTREE-2-BLOCK_PVID_LOCAL: Blocking GigabitEthernet0/1 on VLAN0010. Inconsistent local vlan. Now after writing this I'm thinking it's more a switch issue then a FreeBSD one, especially as the only other hit for the first Cisco message (apart from Cisco docs) is a thread for linux describing exactly the same problem with their bridging. Of which can be seen at: http://www.mail-archive.com/bridge@lists.osdl.org/msg00147.html However if anyone has any suggestions or has seen this issue, I'd be very greatful. Would it be possible to get the bridge to block BPDU (ugly hack I'm sure). Cheers, Pete. -- Peter Wood BSc (Hons) :: :: Tel +44 1606 828010 From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 21:56:32 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7701716A41F for ; Thu, 1 Sep 2005 21:56:32 +0000 (GMT) (envelope-from peter@alastria.net) Received: from nebula.thdo.uk.alastria.net (nebula.thdo.uk.alastria.net [212.13.198.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id B680E43D45 for ; Thu, 1 Sep 2005 21:56:31 +0000 (GMT) (envelope-from peter@alastria.net) Received: from [10.3.0.5] (shuttle.cw9.co.uk [83.67.74.97]) (authenticated bits=0) by nebula.thdo.uk.alastria.net (8.13.3/8.13.3) with ESMTP id j81LuPwb058604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 1 Sep 2005 21:56:25 GMT (envelope-from peter@alastria.net) Message-ID: <43177911.7000407@alastria.net> Date: Thu, 01 Sep 2005 22:56:33 +0100 From: Peter Wood Organization: Alastria Networks User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <43176B4E.8080006@alastria.net> In-Reply-To: <43176B4E.8080006@alastria.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Flag: NO X-Virus-Status: No X-Spam-Score: 0 () X-Spam-Ultra-Flag: NO X-Spam-Low-Flag: NO X-Spam-Flag: NO X-Spam-High-Flag: NO X-Scanned-By: MIMEDefang 2.51 on 212.13.198.8 Subject: Re: VLANs / Bridging / BPDU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 21:56:32 -0000 Sods law, after working on this for two weeks I ask for help, then 20 minutes later I figure it out. The easiest solution was to disable BPDU on the machines port on the Cisco. interface GigabitEthernet0/1 switchport mode trunk spanning-tree bpdufilter enable Thought I'd post it for reference, so it'll appear somewhere in a archive if others need it. Pete. -- Peter Wood BSc (Hons) :: :: Tel +44 1606 828010 From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 00:04:25 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CFFE16A41F for ; Fri, 2 Sep 2005 00:04:25 +0000 (GMT) (envelope-from drgenio@hotmail.com) Received: from hotmail.com (bay103-f41.bay103.hotmail.com [65.54.174.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A35B43D45 for ; Fri, 2 Sep 2005 00:04:25 +0000 (GMT) (envelope-from drgenio@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Sep 2005 17:04:24 -0700 Message-ID: Received: from 65.54.174.200 by by103fd.bay103.hotmail.msn.com with HTTP; Fri, 02 Sep 2005 00:04:24 GMT X-Originating-IP: [65.54.174.200] X-Originating-Email: [drgenio@hotmail.com] X-Sender: drgenio@hotmail.com From: "Dr. Genio" To: freebsd-net@freebsd.org Date: Fri, 02 Sep 2005 00:04:24 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 02 Sep 2005 00:04:24.0912 (UTC) FILETIME=[E0D3DD00:01C5AF51] Subject: routing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 00:04:25 -0000 Hi everyone. I'm trying to do some strange things to the routing table, and I can't get them to work. Our ISP assigned us a /26 subnet. xxx.xxx.xx.1 is the main router, a Cisco 2511. xx.xx.xx.2 is the main server, and there are a few machines. This server, a FreeBSD is an access server, which allowed our Wireless customers to access the internet. The BSD server has 2 NICs: one to the public internet, and the other to the Access Point. We had to move from a PPTP setup to a DHCP setup because PPTP keeps disconnecting the customers. With PPTP, the machine did Proxy-ARP so I could give the customers public addresses via PPTP. Now with DHCP we moved the customers to a NAT setup, and reserve public addresses for special customers. The problem is, I can't route the public addresses to the second NIC. What I did was this: nic 1: xl0, xxx.xxx.xxx.2 netmask 255.255.255.192 nic 2: xl1, 10.5.5.10 netmask 255.255.255.0 nic 2: xl1, xxx.xxx.xxx.4 netmask 255.255.255.255 alias on the main router, I added static route of xxx.xxx.xxx.4/32 via xxx.xxx.xxx.2, and it worked, I get pings from the public internet. so I added a machine on the private LAN and set it an IP of xxx.xxx.xxx.5/24 gateway xx.xxx.xx.4, and a static route on the BSD server of "xxx.xxx.xxx.5/32 via xxx.xxx.xx.4", trying to route packets to .5 via .4 instead of .2, so packets would go via xl1 rather than xl0. But it doesn't seem to work. I get TTL exceeded, even from inside the BSD server. Also on the main router to the public internet i added a route to .5/32 via .4. How can I make this work? Thanks in advance, Hernán From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 00:19:59 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A057416A41F for ; Fri, 2 Sep 2005 00:19:59 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: from seddon.ca (seddon.ca [203.209.212.18]) by mx1.FreeBSD.org (Postfix) with SMTP id CA4E643D46 for ; Fri, 2 Sep 2005 00:19:58 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: (qmail 33085 invoked by uid 89); 2 Sep 2005 00:19:56 -0000 Received: by seddon.ca (tmda-sendmail, from uid 89); Fri, 02 Sep 2005 10:19:55 +1000 (EST) References: <9D2DBC148E2B4146BCC36C41DE9DFBFD066624E1@emss35m05.us.lmco.com> <20050901145814.GQ31769@localhost.localdomain> <20050901152714.GA62606@pit.databus.com> In-Reply-To: <20050901152714.GA62606@pit.databus.com> To: Barney Wolff Date: Fri, 02 Sep 2005 10:19:54 +1000 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <1125620395.33064.TMDA@seddon.ca> X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Dave+Seddon Cc: freebsd-net@freebsd.org Subject: Re: Testing Ethernet Ports X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dave+Seddon List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 00:19:59 -0000 Greetings, You need a seperate routing table. Try using Xen (http://www.cl.cam.ac.uk/Research/SRG/netos/xen/), or there's a patch floating around for FreeBSD4.9. Dave Barney Wolff writes: > On Thu, Sep 01, 2005 at 09:58:14AM -0500, Will Maier wrote: >> On Thu, Sep 01, 2005 at 10:36:04AM -0400, Ames, Jonathan (N-ENSCO) wrote: >> > Can someone give me a hand with this? >> >> Here goes... >> >> > A PC has two ethernet ports, both directly on the motherboard. >> > Can I connect them externally with an ethernet cable and ping from >> > one port to the other to test them both? How? >> >> Lemme see if I parsed your question correctly: >> * box.A.nic.1 --cable--> box.A.nic.2 >> >> Is that what you're talking about? Sure. Use a crossover cable, >> assign each interface a different IP on the same subnet (eg 10.0.0.1 >> and 10.0.0.2) and ping from one to the other: > > I don't believe this will do what's wanted - the packets will not actually > go thru the NICs, as the OS is smart enough to realize that the dest is > internal. With a crossover cable (not required with gigabit nics) you > can't tell, so if you try it use a switch and look at the lights. > > -- > Barney Wolff http://www.databus.com/bwresume.pdf > I never met a computer I didn't like. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 00:25:32 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D16316A41F for ; Fri, 2 Sep 2005 00:25:32 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: from seddon.ca (seddon.ca [203.209.212.18]) by mx1.FreeBSD.org (Postfix) with SMTP id 4E67F43D46 for ; Fri, 2 Sep 2005 00:25:31 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: (qmail 33679 invoked by uid 89); 2 Sep 2005 00:25:30 -0000 Received: by seddon.ca (tmda-sendmail, from uid 89); Fri, 02 Sep 2005 10:25:29 +1000 (EST) References: <43176B4E.8080006@alastria.net> <43177911.7000407@alastria.net> In-Reply-To: <43177911.7000407@alastria.net> To: Peter Wood Date: Fri, 02 Sep 2005 10:25:27 +1000 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <1125620729.33658.TMDA@seddon.ca> X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Dave+Seddon Cc: freebsd-net@freebsd.org Subject: Re: VLANs / Bridging / BPDU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dave+Seddon List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 00:25:32 -0000 Or just interface GigabitEthernet0/1 spanning-tree portfast Or disable spanning tree no spanning-tree vlan 1-100 You could also do some MAC address filtering as the BPDUs are ethernet multicast, but that smacks of hard work. :) Peter Wood writes: > Sods law, after working on this for two weeks I ask for help, then 20 > minutes later I figure it out. The easiest solution was to disable BPDU on > the machines port on the Cisco. > > interface GigabitEthernet0/1 > switchport mode trunk > spanning-tree bpdufilter enable > > Thought I'd post it for reference, so it'll appear somewhere in a archive > if others need it. > > Pete. > -- > Peter Wood BSc (Hons) :: :: Tel +44 1606 828010 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 00:55:23 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B218D16A41F for ; Fri, 2 Sep 2005 00:55:23 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1829C43D45 for ; Fri, 2 Sep 2005 00:55:20 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.31]) (authenticated bits=0) by cain.gsoft.com.au (8.13.4/8.13.4) with ESMTP id j820t2kK055081 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 2 Sep 2005 10:25:09 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Paul Schenkeveld Date: Fri, 2 Sep 2005 10:24:50 +0930 User-Agent: KMail/1.8.1 References: <200508301041.52092.doconnor@gsoft.com.au> <20050830121325.GA56752@psconsult.nl> In-Reply-To: <20050830121325.GA56752@psconsult.nl> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4139502.G6vqTvlqcn"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200509021024.58621.doconnor@gsoft.com.au> X-Spam-Score: -2.82 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.51 on 203.31.81.10 Cc: freebsd-net@freebsd.org Subject: Re: Routing problem (sort of) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 00:55:23 -0000 --nextPart4139502.G6vqTvlqcn Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 30 August 2005 21:43, Paul Schenkeveld wrote: > > I am wondering what the "right" solution is here - I guess I could assi= gn > > an IP to the tunnel but it seems like a bit of a waste.. > > You could assign the same IP address as dc1 to your gif0 interface but > with a /32 netmask. Hmm, I tried this but I can't work out the magic incantation to get it to d= o=20 it.. Here is what it currently is set to metatron# ifconfig gif0 gif0: flags=3D8051 mtu 1452 tunnel inet 150.101.23.134 --> 203.16.215.227 inet6 fe80::240:c7ff:fe99:3a7c%gif0 prefixlen 64 scopeid 0x6 metatron# ifconfig dc1 dc1: flags=3D8843 mtu 1500 inet 150.101.23.134 netmask 0xfffffffc broadcast 150.101.23.135 inet6 fe80::240:c7ff:fe9a:1420%dc1 prefixlen 64 scopeid 0x2 inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:40:c7:9a:14:20 media: Ethernet autoselect (10baseT/UTP) status: active If I try and assign an IP to the tunnel I get.. metatron# ifconfig gif0 alias 150.101.23.134 netmask 255.255.255.255 ifconfig: ioctl (SIOCAIFADDR): Destination address required metatron# ifconfig gif0 150.101.23.134 netmask 255.255.255.255 ifconfig: ioctl (SIOCAIFADDR): Destination address required metatron# ifconfig gif0 150.101.23.134/32 203.16.215.227 ifconfig: ioctl (SIOCAIFADDR): File exists metatron# ifconfig gif0 alias 150.101.23.134/32 203.16.215.227 ifconfig: ioctl (SIOCAIFADDR): File exists =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart4139502.G6vqTvlqcn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDF6Li5ZPcIHs/zowRAn5qAJ9IunYDY3hFRggarsJn+lsOU1GQLgCglPUT BwrPuTWXC8cAtJO74MXecuA= =f7cw -----END PGP SIGNATURE----- --nextPart4139502.G6vqTvlqcn-- From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 01:14:04 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E61B16A41F for ; Fri, 2 Sep 2005 01:14:04 +0000 (GMT) (envelope-from babolo@cicuta.babolo.ru) Received: from ints.mail.pike.ru (ints.mail.pike.ru [85.30.199.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95F9D43D45 for ; Fri, 2 Sep 2005 01:14:03 +0000 (GMT) (envelope-from babolo@cicuta.babolo.ru) Received: (qmail 457 invoked from network); 2 Sep 2005 01:14:01 -0000 Received: from cicuta.babolo.ru (194.135.49.133) by ints.mail.pike.ru with SMTP; 2 Sep 2005 01:14:01 -0000 Received: (nullmailer pid 13350 invoked by uid 136); Fri, 02 Sep 2005 01:17:03 -0000 X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: To: "Dr. Genio" Date: Fri, 2 Sep 2005 05:17:02 +0400 (MSD) From: .@babolo.ru X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <1125623823.002201.13349.nullmailer@cicuta.babolo.ru> Cc: freebsd-net@freebsd.org Subject: Re: routing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 01:14:04 -0000 [ Charset ISO-8859-1 unsupported, converting... ] > Hi everyone. I'm trying to do some strange things to the routing table, and > I can't get them to work. > Our ISP assigned us a /26 subnet. xxx.xxx.xx.1 is the main router, a Cisco > 2511. xx.xx.xx.2 is the main server, and there are a few machines. This > server, a FreeBSD is an access server, which allowed our Wireless customers > to access the internet. The BSD server has 2 NICs: one to the public > internet, and the other to the Access Point. We had to move from a PPTP > setup to a DHCP setup because PPTP keeps disconnecting the customers. With > PPTP, the machine did Proxy-ARP so I could give the customers public > addresses via PPTP. > Now with DHCP we moved the customers to a NAT setup, and reserve public > addresses for special customers. The problem is, I can't route the public > addresses to the second NIC. > What I did was this: > > nic 1: xl0, xxx.xxx.xxx.2 netmask 255.255.255.192 > nic 2: xl1, 10.5.5.10 netmask 255.255.255.0 > nic 2: xl1, xxx.xxx.xxx.4 netmask 255.255.255.255 alias > > on the main router, I added static route of xxx.xxx.xxx.4/32 via > xxx.xxx.xxx.2, and it worked, I get pings from the public internet. > so I added a machine on the private LAN and set it an IP of xxx.xxx.xxx.5/24 > gateway xx.xxx.xx.4, and a static route on the BSD server of > "xxx.xxx.xxx.5/32 via xxx.xxx.xx.4", trying to route packets to .5 via .4 > instead of .2, so packets would go via xl1 rather than xl0. But it doesn't > seem to work. I get TTL exceeded, even from inside the BSD server. Also on > the main router to the public internet i added a route to .5/32 via .4. > > How can I make this work? ifconfig xl1 xxx.xxx.xxx.63/27 sysctl net.link.ether.inet.proxyall=1 And use xxx.xxx.xxx.32/27 in internal net for the customers with default gateway xxx.xxx.xxx.63. Swap masks if you want more then /27 for customers: nic 1: xl0, xxx.xxx.xxx.2/30 nic 2: xl1, xxx.xxx.xxx.63/27 and net.link.ether.inet.proxyall=1 From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 01:35:59 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4765916A41F for ; Fri, 2 Sep 2005 01:35:59 +0000 (GMT) (envelope-from chrismcc@pricegrabber.com) Received: from ronno.pricegrabber.com (ronno.pricegrabber.com [64.156.13.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id E892A43D48 for ; Fri, 2 Sep 2005 01:35:58 +0000 (GMT) (envelope-from chrismcc@pricegrabber.com) Received: from wednesday.pricegrabber.com (wednesday.pricegrabber.com [192.168.10.19]) (authenticated bits=0) by ronno.pricegrabber.com (8.12.11/8.12.11) with ESMTP id j821Zgf4002145; Thu, 1 Sep 2005 18:35:42 -0700 From: Christopher McCrory To: Peter Wood In-Reply-To: <43177911.7000407@alastria.net> References: <43176B4E.8080006@alastria.net> <43177911.7000407@alastria.net> Content-Type: text/plain Date: Thu, 01 Sep 2005 18:35:42 -0700 Message-Id: <1125624942.10839.6.camel@wednesday.pricegrabber.com> Mime-Version: 1.0 X-Mailer: Evolution 2.3.8 (2.3.8-3) Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on localhost X-Virus-Status: Clean Cc: freebsd-net@freebsd.org Subject: Re: VLANs / Bridging / BPDU X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 01:35:59 -0000 On Thu, 2005-09-01 at 22:56 +0100, Peter Wood wrote: > Sods law, after working on this for two weeks I ask for help, then 20 > minutes later I figure it out. The easiest solution was to disable BPDU > on the machines port on the Cisco. > > interface GigabitEthernet0/1 > switchport mode trunk > spanning-tree bpdufilter enable > you can also do this by default for the whole switch: (config)#spanning-tree portfast bpdufilter default > Thought I'd post it for reference, so it'll appear somewhere in a > archive if others need it. > > Pete. -- Christopher McCrory "The^W One of the guys that keeps the servers running" chrismcc@pricegrabber.com http://www.pricegrabber.com Let's face it, there's no Hollow Earth, no robots, and no 'mute rays.' And even if there were, waxed paper is no defense. I tried it. Only tinfoil works. From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 03:04:55 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B696C16A41F for ; Fri, 2 Sep 2005 03:04:55 +0000 (GMT) (envelope-from drgenio@hotmail.com) Received: from hotmail.com (bay103-f3.bay103.hotmail.com [65.54.174.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 660D443D48 for ; Fri, 2 Sep 2005 03:04:53 +0000 (GMT) (envelope-from drgenio@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Sep 2005 20:04:52 -0700 Message-ID: Received: from 65.54.174.200 by by103fd.bay103.hotmail.msn.com with HTTP; Fri, 02 Sep 2005 03:04:52 GMT X-Originating-IP: [65.54.174.200] X-Originating-Email: [drgenio@hotmail.com] X-Sender: drgenio@hotmail.com From: "Dr. Genio" To: freebsd-net@freebsd.org Date: Fri, 02 Sep 2005 03:04:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 02 Sep 2005 03:04:52.0960 (UTC) FILETIME=[16D8DE00:01C5AF6B] Subject: Re: routing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 03:04:55 -0000 ifconfig xl1 xxx.xxx.xxx.63/27 sysctl net.link.ether.inet.proxyall=1 And use xxx.xxx.xxx.32/27 in internal net for the customers with default gateway xxx.xxx.xxx.63. Swap masks if you want more then /27 for customers: nic 1: xl0, xxx.xxx.xxx.2/30 nic 2: xl1, xxx.xxx.xxx.63/27 and net.link.ether.inet.proxyall=1 I can't subnet. the public static addresses are arbitrary, and there are also other servers which I have no control of. that's why I'm trying to use static routes with /32's. can it be done that way? From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 08:36:30 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B004316A41F for ; Fri, 2 Sep 2005 08:36:30 +0000 (GMT) (envelope-from babolo@cicuta.babolo.ru) Received: from ints.mail.pike.ru (ints.mail.pike.ru [85.30.199.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5F2D43D4C for ; Fri, 2 Sep 2005 08:36:27 +0000 (GMT) (envelope-from babolo@cicuta.babolo.ru) Received: (qmail 12611 invoked from network); 2 Sep 2005 08:36:26 -0000 Received: from cicuta.babolo.ru (194.135.49.133) by ints.mail.pike.ru with SMTP; 2 Sep 2005 08:36:26 -0000 Received: (nullmailer pid 13799 invoked by uid 136); Fri, 02 Sep 2005 08:39:25 -0000 X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: To: "Dr. Genio" Date: Fri, 2 Sep 2005 12:39:25 +0400 (MSD) From: .@babolo.ru X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <1125650365.655125.13798.nullmailer@cicuta.babolo.ru> Cc: freebsd-net@freebsd.org Subject: Re: routing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 08:36:30 -0000 [ Charset ISO-8859-1 unsupported, converting... ] > ifconfig xl1 xxx.xxx.xxx.63/27 > sysctl net.link.ether.inet.proxyall=1 > > And use xxx.xxx.xxx.32/27 in internal net for the customers > with default gateway xxx.xxx.xxx.63. > > Swap masks if you want more then /27 for customers: > > nic 1: xl0, xxx.xxx.xxx.2/30 > nic 2: xl1, xxx.xxx.xxx.63/27 > > and net.link.ether.inet.proxyall=1 > > I can't subnet. the public static addresses are arbitrary, and there are > also other servers which I have no control of. that's why I'm trying to use > static routes with /32's. can it be done that way? Sorry, may be my English is bad, but I do not untestand. Are all that servers with public static addresses in xxx.xxx.xxx.0/26 ? If yes, then second method works. Try to guess. You had net without router, directly connected to ISP? And try to put router into working environment? Then second method works exluding xxx.xxx.xxx.3 From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 09:39:06 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 226D116A41F for ; Fri, 2 Sep 2005 09:39:06 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE48143D45 for ; Fri, 2 Sep 2005 09:39:05 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from 217-13-2-82.dd.nextgentel.com ([217.13.2.82] helo=h311r4z3r) by mail.yazzy.org with esmtps (TLSv1:AES256-SHA:256) (YazzY.org) id 1EB80N-0005qV-Ub; Fri, 02 Sep 2005 11:38:40 +0200 Date: Fri, 2 Sep 2005 11:39:01 +0200 From: Marcin Jessa To: "Digital Brain" Message-Id: <20050902113901.309a46bc.lists@yazzy.org> In-Reply-To: References: <4316DB17.5000601@freemail.gr> Organization: YazzY.org X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) Cc: dionch@freemail.gr, freebsd-net@freebsd.org Subject: Re: dhclient and ADSL modem trouble... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 09:39:06 -0000 On Thu, 01 Sep 2005 11:31:20 +0000 "Digital Brain" wrote: > Hi Chris, > > >Linux and freebsd you re trying, running on same hardware (nic) ? > >I'm saying that cause some ISPs lock their "IP-offering" > >with each client's hardware address (which is defined at first use). > > Linux is on my laptop (and works ok), while freebsd is on another machine. > I had thought of that and so I tried the following: > 1. while I had a connection from the laptop with an assigned ip, I pulled > out > the cable and connected it to the freebsd machine. > 2. I changed the IP to the one assigned on the laptop (ed0 interface) > 3. I added the gateway via /sbin/route and modified /etc/resolv.conf. > > --> Now, this works ok, so I know the ISP is not locking the session > based > on the MAC address (since I didn't spoof that on FreeBSD). > > So, the problem remains: dhcp doesn't work from the freebsd machine... > Those are two different things. MAC address can be blocked for new DHCP offer but firewall does not need to block MAC addresses that do not exist in the DHCP lease. The firewall may be blocking an IP which is not existing in the DHCP lease and in your case it's propably there. Check the lease time for your client. Also try to assign an IP to your PC that's not the same one as the one handed you out by DHCP server and see if you can still ping outside. Try to upgrade to 6.0 and see if the new DHCP client works. Cheers Marcin From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 15:37:47 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7536B16A41F for ; Fri, 2 Sep 2005 15:37:47 +0000 (GMT) (envelope-from popescu.mircea@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FD5543D45 for ; Fri, 2 Sep 2005 15:37:44 +0000 (GMT) (envelope-from popescu.mircea@gmail.com) Received: by zproxy.gmail.com with SMTP id z6so297180nzd for ; Fri, 02 Sep 2005 08:37:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=qkjOFPdGXkw/One539ZacHS8LGr1gwLiH3YfeOyQjaHexykU3MdrmYf36h9Sy559SlIwN/JA1QED00ojl6MEf8K4Kt/YmPSXRsV4yMf/OwOufUXhYPXUGRUdxa0ws9pph7JyhsSZvq7jXRaJViAEVG5G6Gp0vCJgmDIG9S1FQhQ= Received: by 10.36.91.1 with SMTP id o1mr2259416nzb; Fri, 02 Sep 2005 08:37:44 -0700 (PDT) Received: by 10.37.18.3 with HTTP; Fri, 2 Sep 2005 08:37:43 -0700 (PDT) Message-ID: Date: Fri, 2 Sep 2005 18:37:43 +0300 From: Mircea Popescu To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: poptop problem ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 15:37:47 -0000 Hi! I followed the instructions listed at http://linux-bsd-central.com/index.php/content/view/8/ and I've adapted= =20 the configuration files to my situation. Also, the firewall is totally down= ,=20 every port is accessible (this is verified). I get the following error message in /var/log/messages: GRE: read(fd=3D8,buffer=3D804d520,len=3D8196) from PTY failed: status =3D = 0 error =3D=20 No error CTRL: PTY read or GRE write failed (pty,gre)=3D(8,6) On the windows side, when I try to establish a connection I get "Verifying= =20 name and password ..." after which the following error message is displayed= :=20 "ERROR 619: a connection to the remote computer cannot be established, so= =20 the port used for connection was closed." Can anyone help? thx From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 20:05:47 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 340DD16A41F for ; Fri, 2 Sep 2005 20:05:47 +0000 (GMT) (envelope-from oleksandr@samoylyk.sumy.ua) Received: from smtp.chereda.net (share.chereda.net [193.110.16.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EEB743D58 for ; Fri, 2 Sep 2005 20:05:45 +0000 (GMT) (envelope-from oleksandr@samoylyk.sumy.ua) Received: from [193.110.16.206] (port=1457 helo=localhost) (auth=goldfish) by smtp.chereda.net with asmtp (Chereda.Net MTA) id 1EBHn9-0007Cc-1b; Fri, 02 Sep 2005 23:05:43 +0300 X-AntiVirus: Checked by Dr.Web [version: 4.32b, engine: 4.32b, virus records: 86018, updated: 2.09.2005] Date: Fri, 2 Sep 2005 23:02:45 +0300 From: Oleksandr Samoylyk X-Priority: 3 (Normal) Message-ID: <1736720621.20050902230245@samoylyk.sumy.ua> To: freebsd-net@freebsd.org, freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Chereda-SMTP-helo: localhost X-Chereda-SMTP-host: 193.110.16.206 X-Chereda-SMTP-MAIL: X-Chereda-SMTP-RCPT: X-Chereda-RBL-Score: 0 X-Chereda-Spam-Score: 0.3 X-Chereda-Spam-Report: Spam detection software, running on the system "kva.chereda.net", has identified this incoming email as possible spam. If you have any questions, please contact postmaster@chereda.net for details. Content analysis details: (0.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Did not pass through any untrusted hosts -0.1 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 1.1 PRIORITY_NO_NAME Message has priority, but no X-Mailer/User-Agent 0.3 AWL AWL: From: address is in the auto white-list Subject: Compressing/decompressing traffic & cache & unchanged ip X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oleksandr Samoylyk List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 20:05:47 -0000 Hello World! I've a "strange" idea. Here I've outlined the plan: ======================================================== Compress traffic Uncompress traffic Compress traffic here & cache here ___________ _________ ___________ | | | | | | --| Router | | Our | | Router |-- --| in city1 |-------->| ROUTER |<--------| in city2 |-- |__________| |________| |__________| | | ________________|________________ | | | | | Our clients ======================================================== So, let me describe the situation. We have our central router and several router in different places. Unfortunately, we haven't got a good connection to them. Our physical "link" to them is quite "narrow". Nevertheless, our "external" routers are good connected to the "world" (they have megabit uplinks). We can't at the moment got a better connection between them and our central router :(. The ultimate aim is to speed up bandwidth for our clients by means of software :) We had been using a transparent cache-server (Squid) for some time, but it has the problem (as all proxies have). It changes ips of clients. I'd a sort of brain-wave :) and thought out the following: - On those routers we compress traffic (how?) - On our main router we decompress it and cache it (how?) - Moreover, it should be done transparently and without substitution of ip for client. So client even don't "feel" that he/she is behind proxy or so... So everywhere should be ip of user not Squid one. (how?) - In addition to that it would be good to do this with HTTP and FTP as well... I've heard about Layer 7 switches that IMHO can do this things... I'd like to realize something like that on Unix. I'll appreciate any help. Thanks! -- Oleksandr Samoylyk OVS-RIPE From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 20:49:43 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E017F16A41F for ; Fri, 2 Sep 2005 20:49:43 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A35F43D53 for ; Fri, 2 Sep 2005 20:49:43 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id j82Kng2F069999; Fri, 2 Sep 2005 13:49:42 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id j82KnfRf069998; Fri, 2 Sep 2005 13:49:41 -0700 (PDT) (envelope-from jmg) Date: Fri, 2 Sep 2005 13:49:41 -0700 From: John-Mark Gurney To: Oleksandr Samoylyk Message-ID: <20050902204941.GJ61824@funkthat.com> Mail-Followup-To: Oleksandr Samoylyk , freebsd-net@freebsd.org References: <1736720621.20050902230245@samoylyk.sumy.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1736720621.20050902230245@samoylyk.sumy.ua> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p1 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-net@freebsd.org Subject: Re: Compressing/decompressing traffic & cache & unchanged ip X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 20:49:44 -0000 Oleksandr Samoylyk wrote this message on Fri, Sep 02, 2005 at 23:02 +0300: > I've a "strange" idea. Here I've outlined the plan: > > ======================================================== > > Compress traffic Uncompress traffic Compress traffic > here & cache here > ___________ _________ ___________ > | | | | | | > --| Router | | Our | | Router |-- > --| in city1 |-------->| ROUTER |<--------| in city2 |-- > |__________| |________| |__________| > | > | > ________________|________________ > | | | | | > Our clients > > ======================================================== > > So, let me describe the situation. We have our central router and > several router in different places. Unfortunately, we haven't got a good > connection to them. Our physical "link" to them is quite "narrow". > Nevertheless, our "external" routers are good connected to the "world" > (they have megabit uplinks). We can't at the moment got a better > connection between them and our central router :(. > The ultimate aim is to speed up bandwidth for our clients by means of > software :) > We had been using a transparent cache-server (Squid) for some time, but > it has the problem (as all proxies have). It changes ips of clients. > I'd a sort of brain-wave :) and thought out the following: > - On those routers we compress traffic (how?) > - On our main router we decompress it and cache it (how?) > - Moreover, it should be done transparently and without substitution of ip for client. So client even don't "feel" that he/she is behind proxy or so... So everywhere should be ip of user not Squid one. (how?) > - In addition to that it would be good to do this with HTTP and FTP as well... ipsec has a layer that will do packet compression... look at -C calgo parameter to setkey(8), one of which is deflate.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 21:53:34 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B75C516A41F for ; Fri, 2 Sep 2005 21:53:34 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D70B43D45 for ; Fri, 2 Sep 2005 21:53:34 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from lapdance.yazzy.net (unknown [192.168.99.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yazzy.org (Postfix) with ESMTP id 7BA7539825; Fri, 2 Sep 2005 23:53:29 +0200 (CEST) Date: Fri, 2 Sep 2005 21:53:17 +0000 From: Marcin Jessa To: Oleksandr Samoylyk Message-Id: <20050902215317.40da8320.lists@yazzy.org> In-Reply-To: <1736720621.20050902230245@samoylyk.sumy.ua> References: <1736720621.20050902230245@samoylyk.sumy.ua> Organization: YazzY.org X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.9; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Compressing/decompressing traffic & cache & unchanged ip X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 21:53:34 -0000 Hi Oleksandr. Maybe SCPS is something for you. It's originally designed for satellite links with latency problems. I gathered some info about it. I suggest you to start reading http://www.yazzy.org/docs/SCPS/SCPS_GATEWAY_v1.2.1.doc It was originally designed for FreeBSD and compiles cleanly on FreeBSD 6.x and 7.x (CURRENT) with a few simple patches I made, which I can provide. Cheers, Marcin. On Fri, 2 Sep 2005 23:02:45 +0300 Oleksandr Samoylyk wrote: > Hello World! > > I've a "strange" idea. Here I've outlined the plan: > > ======================================================== > > Compress traffic Uncompress traffic Compress traffic > here & cache here > ___________ _________ ___________ > | | | | | | > --| Router | | Our | | Router |-- > --| in city1 |-------->| ROUTER |<--------| in city2 |-- > |__________| |________| |__________| > | > | > ________________|________________ > | | | | | > Our clients > > ======================================================== > > So, let me describe the situation. We have our central router and > several router in different places. Unfortunately, we haven't got a good > connection to them. Our physical "link" to them is quite "narrow". > Nevertheless, our "external" routers are good connected to the "world" > (they have megabit uplinks). We can't at the moment got a better > connection between them and our central router :(. > The ultimate aim is to speed up bandwidth for our clients by means of > software :) > We had been using a transparent cache-server (Squid) for some time, but > it has the problem (as all proxies have). It changes ips of clients. > I'd a sort of brain-wave :) and thought out the following: > - On those routers we compress traffic (how?) > - On our main router we decompress it and cache it (how?) > - Moreover, it should be done transparently and without substitution of ip for client. So client even don't "feel" that he/she is behind proxy or so... So everywhere should be ip of user not Squid one. (how?) > - In addition to that it would be good to do this with HTTP and FTP as well... > > I've heard about Layer 7 switches that IMHO can do this things... > I'd like to realize something like that on Unix. > > I'll appreciate any help. > > Thanks! > > -- > Oleksandr Samoylyk > OVS-RIPE > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Sat Sep 3 15:35:05 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 070D916A41F for ; Sat, 3 Sep 2005 15:35:05 +0000 (GMT) (envelope-from hoyimtang@yahoo.com) Received: from web35801.mail.mud.yahoo.com (web35801.mail.mud.yahoo.com [66.163.179.170]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E12743D48 for ; Sat, 3 Sep 2005 15:35:04 +0000 (GMT) (envelope-from hoyimtang@yahoo.com) Received: (qmail 5223 invoked by uid 60001); 3 Sep 2005 15:35:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=2tyIilpLl2Xyi4J3lOe9n3yJV+pGak8y6G459gxtsMDwoIzPwkmPVxeW+DphdoEBLqrUi9KBuOwbnvPNeX6KZDIQxkwqeQ4mr5IqJ7o/izmnW2ahDzvEloT0qukWucNNEP/0F/xbgQOxNAt0iD+TAmX5XYpJ7HfIyY5cph+s2gg= ; Message-ID: <20050903153504.5221.qmail@web35801.mail.mud.yahoo.com> Received: from [221.126.232.119] by web35801.mail.mud.yahoo.com via HTTP; Sat, 03 Sep 2005 08:35:03 PDT Date: Sat, 3 Sep 2005 08:35:03 -0700 (PDT) From: Tang Ho Yim To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: pppoe with "session in wrong state" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2005 15:35:05 -0000 Hi, I just install FreeBSD 5.4, follow the handbook to setup pppoe. The rc.conf & ppp.conf just as same the handbook..... After reboot, I get error with "session in wrong state"...but the internet connect work just fine even my LAN can get the internet. Any one can help please since I am new in FreeBSD....Thanks ! --------------------------------- Start your day with Yahoo! - make it your home page