From owner-freebsd-current@freebsd.org Sun Dec 17 10:59:27 2017 Return-Path: Delivered-To: freebsd-current@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 39B24E85B19; Sun, 17 Dec 2017 10:59:27 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DDDA16C4CB; Sun, 17 Dec 2017 10:59:26 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: by mail-it0-x230.google.com with SMTP id d137so24631392itc.2; Sun, 17 Dec 2017 02:59:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IsRX8m3q8HkLj0DYOG7YFnXmJSWDwlRV1L+Sex6URxE=; b=nO7QYSMBqma3wRuvtc5YMGE7EGh+E+MPjdr2RGEHjlJPIYnjXOa4QxOJcK8STBg2Ut 1ToQgsmUxtCV8MJH9V2anCHGzZ0lqvgei+lq1/zsl8R/3Ha5ddwVlQ1YHkKo94JuIaH+ v8FHYhGbGBgSmmgVSNyKfFseYLlNgWbzDhzgr1nBb+henutsSqIZJVogj0sfz6f+DTFR 2K7wjHbHPzRfXX3b1VAcNiPsUa7lLOJyqtehvTJDNS6BBC8esEhlZHt28JsPjPww6ygP 4QulfNgrGegds4rYpNf08bbD7qtFJYUVF9YGqryUTUFr/Gd5CV3e2J15voGyFnESmIN4 QIeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IsRX8m3q8HkLj0DYOG7YFnXmJSWDwlRV1L+Sex6URxE=; b=KaFCW2O2QvTBk+rt/BnK0uh79EoG+BkMsttGLb/TjKSlD/eunVGQR2ovSqyG1Gdmh4 ejqxsOMAKW0BQCeBoJRZ/LVvBuahyIyrVMzZU7ElNx9IA/qBzQ9DuorJBrgon1zPWbpV 2Ir7uwuKHWuO4oW+sZWsKVc8xJa6L+qGxdWE6XAx+dJ2rIyZeQYRlBQ+4tYUeJxaMkG9 eYKcBeKZmxqXZECDsG0OPk6cqXvlgoV43sFnRBCFQBaYRxHhA3ReRz8JcJzwiAfzC4bs FJrkumJNiYxcmz+6HqroQcyKBaUr20v3BSt3BqPWA2Si8NWI1i7xl8xzvmZgMECyT5YB X+Lw== X-Gm-Message-State: AKGB3mI84VvyPb1OtD9eCNtcQrF9U2gxkJ5NeAR7NuyIQm4YhP1UtQYZ QyqBhZ+pkMawuLCvrUTTFMDQi4zaIaLkXw7CxxM= X-Google-Smtp-Source: ACJfBov5O64XilvXpoQ3tVbY/x0tdGU6VavAyjzl2r2h4dX9l3/j5IA4E2GKX/lvpTZs4Z0LZmAaywhRnFh4phEDKLQ= X-Received: by 10.36.133.135 with SMTP id r129mr16758271itd.69.1513508366204; Sun, 17 Dec 2017 02:59:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.144.71 with HTTP; Sun, 17 Dec 2017 02:59:25 -0800 (PST) Received: by 10.2.144.71 with HTTP; Sun, 17 Dec 2017 02:59:25 -0800 (PST) In-Reply-To: <5A3638E5.6090308@grosbein.net> References: <5A3638E5.6090308@grosbein.net> From: Sami Halabi Date: Sun, 17 Dec 2017 12:59:25 +0200 Message-ID: Subject: Re: need help using ng_patch to modify src/dst packets or alternative way To: Eugene Grosbein Cc: freebsd-net@freebsd.org, FreeBSD Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2017 10:59:27 -0000 Hi Eugene, I'm looking for a solution for IP traffic. in linux iptables its possible but I couldn't find freebsd way yet. bkuncr soulution works for tcp only. Thanks for the hint though, Sami =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A 17 =D7=91=D7=93=D7=A6=D7=9E=D7=B3 2017= 11:29 AM,=E2=80=8F "Eugene Grosbein" =D7=9B=D7=AA=D7= =91: > 17.12.2017 14:52, Sami Halabi =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > hi, > > > > Can you help in my situation? My goal is so Box in my lan 10.1.1.2 to > talk > > to 10.1.1.1 and actually it would be talking to X.X.X.X outside ip usin= g > > one of my public IPs say 1.1.1.1. > > If you need this just for single or several tcp ports, easiest way > is to use any of port forwarders/bouncers like this: > > pkg install bounce > bounce -a 10.1.1.1 -b 1.1.1.1 -p 443 X.X.X.X 443 > > >