From owner-freebsd-questions@freebsd.org Tue Oct 29 00:32:35 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E7A531617F4 for ; Tue, 29 Oct 2019 00:32:35 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472CGW17PZz3ClZ for ; Tue, 29 Oct 2019 00:32:34 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pg1-x544.google.com with SMTP id w3so8206498pgt.5 for ; Mon, 28 Oct 2019 17:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=We+rBibVeRbuQSMC13SVi1ce6uFL6DCBaCCu/0Zlvpc=; b=oKMszgnQWwtmoKV9LldjYEjsPN34kJfhdqqANJ092ZLQ10iT54vyX/JP4dFA/qAGa8 G8P0uKrZfaYG8JBw/pNK3tZRsIOwnfWsZbUxXz/yg2TR4e/nd1CxcyXLJTlo07x+oWxi D64icquoeOyXSSq7TUBlS6Ko9gumhmkwho8Dlm2SEaWqp/d1GxfI1199qw1i7IR/aFZ5 wV49axcPpcN3D5AaSLYkg5+sjGJN9KUebVfIQVCbJ0lMioyilKflrN09OvCaKw7KsB6C Kt5yJYqZRvFvmk8eAc4zpueq9ittVS5K57Fkw8XJnscvohjqlhlfW1bLJx8ojBony5cn RDuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=We+rBibVeRbuQSMC13SVi1ce6uFL6DCBaCCu/0Zlvpc=; b=M3ttWTelxRZB3TSHAP0Mzt3moL/Y2eEymGEjwG7ISIxtJec00KiIAsCVACR5Rc7aQ4 yb+JyOGJ8iA9KANdUmliz2+v0SYDTTxXUr0G5lJYJtxZVyOhEP0ggVe8prn5sPHrJ3tI wIqbPSpMo/B126VObSMEnx7/vL5go9wStAbQRd3hphVQys5YH1V6f2B1pJftEXIqv5sI AJUJWzXBPTgxPaUHsGUtYlmC21qph4/IyCT6Un+E7GJ+hX1MLW4O7dj1L/DYL4i4jRnL VogF5BK98u3x5e9Lappnlx4zE/deapgN5GfSfa0XXkUlSeNm2sOKIiboQzEnqktZwn0H GPpA== X-Gm-Message-State: APjAAAXBSfwJhyoetiE/6z6Wj/bzDumi6P91kYYuOnFZ7656dVDgWB/Q CSU1Ha3LGyTiPOeGJf8V89uXiCeg X-Google-Smtp-Source: APXvYqwhuYnLII44s9dS7Wqfmna8sJrlYkLwjfCK4BR+1+Qje48s4/HCaI37nZ/5hB/uNMZ9tibMAQ== X-Received: by 2002:a63:6cf:: with SMTP id 198mr23530934pgg.259.1572309153575; Mon, 28 Oct 2019 17:32:33 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id h9sm666902pjh.8.2019.10.28.17.32.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2019 17:32:33 -0700 (PDT) Subject: Re: Masquerading MAC addresses To: Nathan Robertson , freebsd-questions@freebsd.org References: From: MJ Message-ID: Date: Tue, 29 Oct 2019 11:31:36 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 472CGW17PZz3ClZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=oKMszgnQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::544 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-0.40), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.05), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 00:32:36 -0000 On 29/10/2019 10:57 am, Nathan Robertson wrote: > Hi, > > I have an interesting issue that I'm hoping that somebody might be able to > point me in the right direction on. Even just a pointer or two, or where to > go ask. I've got a situation where my VPS provider is packet filtering my > traffic based on MAC address, and as a result are dropping my jail traffic > (as FreeBSD bridges traffic from the jail to the network using the jail's > MAC address). I need a way to essentially masquerade the MAC address for > outbound traffic on the host interface to get past the VPS vendors firewall. > > Basically, I need vnet jails with IP addresses to use the host adapters MAC > address for outbound connections (think of it as masquerading / NAT of MAC > addresses). On Linux, it looks like ebtables can do it (MAC NAT - > https://ebtables.netfilter.org/documentation/features.html). I can see ipfw > supports packet filtering based on MAC address, but I can't find anything > on packet mangling. > > Any idea of where I should look or who I could ask about MAC NAT on FreeBSD? > > Thanks for any help provided. This one's really starting to do my head in. > > Nathan. Sounds like you need some sort of ARP proxy? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >