From owner-freebsd-ipfw@freebsd.org Tue Oct 18 14:23:00 2016 Return-Path: Delivered-To: freebsd-ipfw@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18A3AC16C1D for ; Tue, 18 Oct 2016 14:23:00 +0000 (UTC) (envelope-from shashaness@hotmail.com) Received: from BLU004-OMC4S23.hotmail.com (blu004-omc4s23.hotmail.com [65.55.111.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD9C8A77 for ; Tue, 18 Oct 2016 14:22:59 +0000 (UTC) (envelope-from shashaness@hotmail.com) Received: from NAM01-SN1-obe.outbound.protection.outlook.com ([65.55.111.136]) by BLU004-OMC4S23.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 18 Oct 2016 07:21:52 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Leg390n0yina5OfQZxqoQ59/xrx/XqlDggsYZc/Vaz8=; b=A+Fk7lG9G/05vYVIsaNfuYzSxmdT44Pnd8quG/V9bz7yeDMuTouEJIGk8taqESu9a4D9ygrWzB8voWDhd7aAIOkJQnKbZ+UnqxzfpQUU9dci0rxsBc/vUlHdIPiZy11PiPN0ka7RkWCGm9kmLuESqCT+3THif5pItQ1833VvaJbkXuriXipforKWTCDbl3JNnb36nlB1vOPZsckA4d7cgMwgo6af8VMZKg0jS2vUy+DbZ2IF5U6tbzsi4v4MGoXjmSjNu9Xg7AVLX953Vv9xYw/GacpndNW9KZRasfm7UfKQcoro3rDYwjwjvIyZayvAIth5UTgsnnRlUQ7zJPOrrA== Received: from SN1NAM01FT045.eop-nam01.prod.protection.outlook.com (10.152.64.60) by SN1NAM01HT022.eop-nam01.prod.protection.outlook.com (10.152.64.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5; Tue, 18 Oct 2016 14:21:51 +0000 Received: from CY1PR14MB0520.namprd14.prod.outlook.com (10.152.64.58) by SN1NAM01FT045.mail.protection.outlook.com (10.152.65.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7 via Frontend Transport; Tue, 18 Oct 2016 14:21:50 +0000 Received: from CY1PR14MB0520.namprd14.prod.outlook.com ([10.164.71.150]) by CY1PR14MB0520.namprd14.prod.outlook.com ([10.164.71.150]) with mapi id 15.01.0659.025; Tue, 18 Oct 2016 14:21:50 +0000 From: Shawn Bakhtiar To: Samira Nazari CC: "freebsd-ipfw@freebsd.org" Subject: Re: change packets with IPFW divert Thread-Topic: change packets with IPFW divert Thread-Index: AQHSKUZ/bSJm7hSjFUab5SLxDG3Eq6CuQ1uA Date: Tue, 18 Oct 2016 14:21:50 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=hotmail.com; x-ms-exchange-messagesentrepresentingtype: 1 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; SN1NAM01HT022; 6:UIFvTLJfnie63IeJE319pA/xWICH18ybCtactdckntejeIVeNraL2uH1/j0TU9jNhpeURs+arC42OC+hS9z40oNYSoAMf+oyyF27CgYUavY07TdVuMP3RFphYf1tJRJcjv9d02+XDctUUj64pTAJRJqqYxjioFZrfhT8e97F41l9i2WxpipDwX9y/cDi1ii5nhsWH1H4UrZI5sBPVRTxH8D0LJNblxuwc0aoi/PjN3F8J4hvFAVJKxp03BVizlXHF/bsHMwirGO30dv/YsglJbifF1q33SA/JsO8Fvb7abY=; 5:ZkAHOL4rT+2TSbanv4WMQCo8CkHKOOFePecCsLNxntRz+5+2JnWGlmJUgbpZj7toSYjk5nNaI9RlZ0Qtr8f0goKyNh9rkpPwrxWgER77csjQZTetiynCKKUDAkbDlVL2qNhtiwCoa3XQGSsIO8b0Ag==; 24:wLXlr7JKY1lJFE7x8w8LQgFDyPFk16UybB2WntLCD5kGm1IOMy9Mscq/H+Se2KHHVGBldreQsdJZn5NxfNNJfVYv5Dyz3BJYCYFWhFnVy1E=; 7:sf7ItBbRnz0A0xCjUZL4BPxC55aIwBNIfQjT2je+Bd6pM3DWZbm4RUmRD6umh4Xey/o9Ont+7WfEU+NgCYxiG/ndCZIkNvtUA18yV9XZNs2tJE1RvAkVGFGf2G+vKg4nkrtTRpZB0L0LL4YOpsdJftyRhsFP/jHFJ45EwF64A9I35QjNpziMuwuKRhhPfVTFaqDhMoj6OMNPVmfTL6j8lauqzqmn8CVjpRhr5iK25eQLBbX1odXNQM8adGVURwtQ3D4vaht1WZoR5LC19qPciag21aDfkbM+QIxQdNTNehPTshs7o38lz5IjQBB4jKrJ0wnzS1O3qB3O5cqzf16gSw== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1NAM01HT022; H:CY1PR14MB0520.namprd14.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: d1637536-e42a-4c85-76df-08d3f7621919 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1603103081)(1603101286)(1601125047); SRVR:SN1NAM01HT022; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046); SRVR:SN1NAM01HT022; BCL:0; PCL:0; RULEID:; SRVR:SN1NAM01HT022; x-forefront-prvs: 00997889E7 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Oct 2016 14:21:50.5609 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM01HT022 X-OriginalArrivalTime: 18 Oct 2016 14:21:52.0809 (UTC) FILETIME=[F8F1F190:01D2294A] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 14:23:00 -0000 On Oct 18, 2016, at 6:49 AM, Samira Nazari > wrote: Hello every one, When we diverte packets to the specified port with "IPFW divert" , we can change it and re-sent to the kernel? _______________________________________________ freebsd-ipfw@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" Not sure what you mean by change it but: "Divert sockets are similar to raw IP sockets, except that they can be boun= d to a specific divert port via the bind(2) system call. The IP address in= the bind is ignored; only the port number is significant. A divert socket= bound to a divert port will receive all packets diverted to that port by s= ome (here unspecified) kernel mechanism(s). Packets may also be written to= a divert port, in which case they re-enter kernel IP packet processing." -- SRC: https://www.freebsd.org/cgi/man.cgi?query=3Ddivert&sektion=3D4&apro= pos=3D0&manpath=3DFreeBSD+10.3-RELEASE+and+Ports