From nobody Sat May 04 18:52:58 2024 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VWxds4zt6z5JNNm for ; Sat, 4 May 2024 18:53:37 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VWxdr4mxKz43v3 for ; Sat, 4 May 2024 18:53:36 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=XcOiQq4J; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-61f2dc31be4so836745a12.1 for ; Sat, 04 May 2024 11:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714848815; x=1715453615; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=X54nZ6xbIkPS3QjzoOM2IHJ8jVPRmYOHMrt52vlnAX0=; b=XcOiQq4J9D2w952MKjfebaBBYF3m5C/RJ2jVOpM6IpHT2Pwx4V2qAj/vUpO1nYgfiX Nbq62UvNaiAHz03TLmvTRdgbEdqqJLdSpN6H5/xWAuFzLXj+K81jdW5W6JZcsbQ4BWq9 3SzQn95QKLfjKaPUPFm2QnssalqIic6wMvMUk1sXa+NBC0YAM21I04av7TFuhqMoZqPD seWsm8JpwD0VTa/YTi1dQpv8NZcNvlhXiT4m6JlYxU4qaXk3+EpLT8RJK0X5+fhOQeoJ 4K+UVxrHGIRE/6LCEe/iMn5eS1wvWFoUU/e/SEoDcIzJUn/IluTjEGgNmESfow7QEw7L Oacg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714848815; x=1715453615; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=X54nZ6xbIkPS3QjzoOM2IHJ8jVPRmYOHMrt52vlnAX0=; b=D/Zeud77OEFM+cbSlvWMDbMOTuUfCKKgmfXrgwPtnBIbK0Aq1VjAYTGVgDMwYAhYrk 3ZuWv5GKbAl+4/KPk9rsv/s0uVaYAGgWjri+zNWIqHtQ7HS/cOM8rrG+g2DvzHtgon1/ tPlcLMZii2bw9r6W5YLdY0wn95hwkfdrbb/g86HgypIGkc3kJ/nW/Dn7f0lQsKUUDFf3 slb0riMvv1QXw1X3RsWV1bgJpn0KVXMLD3ysHLG9CsjxudNudcR+Mupris6vOeS4i1Rm A/x0o/XsjruuR1kFvW8HsN9zzN7S/xoEPkbtQTArz5dg2OZo5FJJEV42Ky84XbTiE+BL ceEw== X-Gm-Message-State: AOJu0YyLv7Uj+vGw69sQcvtCLAB+vna0HagZh0Ng7dUPLwzt8u90VV5c 8BItTivx0/0T461Kf1OX/ycu1m7pycf+KRlMjRyNSdsaWmVFarQt1iTMkHp0hRriBPcJaFoHLBq 5sy93KRPI8rdPk+0ZMLktXMe1PbtiauvdfiNtboGT X-Google-Smtp-Source: AGHT+IHB8RyBKhlEUS6BogbMTHw1YQOiawchSwV1PGJKutKnC060SzH49CQwkZXlVtkJ1hIBNS2s6yjjst/gndESc2Q= X-Received: by 2002:a17:90a:fb52:b0:2a2:f4f4:2c4a with SMTP id iq18-20020a17090afb5200b002a2f4f42c4amr12892089pjb.21.1714848814459; Sat, 04 May 2024 11:53:34 -0700 (PDT) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 From: Mario Marietto Date: Sat, 4 May 2024 20:52:58 +0200 Message-ID: Subject: How to configure the networking on FreeBSD to assign the same IP between host and guest in order to make work CloudFlare Warp on FreeBSD To: "freebsd-net@FreeBSD.org" Content-Type: multipart/alternative; boundary="0000000000006df51d0617a55aa0" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.61 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.61)[-0.614]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_EQ_ADDR_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::531:from] X-Rspamd-Queue-Id: 4VWxdr4mxKz43v3 --0000000000006df51d0617a55aa0 Content-Type: text/plain; charset="UTF-8" Hello. I've just installed the CloudFlare client + GUI on Ubuntu,that I have virtualized with bhyve. Cloudflare does not work on FreeBSD. The instructions that I have followed are located here : https://youtu.be/4JuOUjCSj44 Installing it in this way,it will run only on the IP assigned to Ubuntu inside the VM. For me the IP of FreeBSD is different from the IP assigned to Ubuntu. Configured in this way it's not useful. I want Cloudflare to take the IP address of FreeBSD. To achieve this goal,I should change my network configuration,in a way that I use the same IP for FreeBSD and Ubuntu. That's what I want to do,but I don't know how to do it. But I'm sure that I will be able to do it if someone can give me some advice. I can explain how I have configured my network,so you can explain what I should change to have the same IP. For example,to boot Ubuntu with bhyve,I use the following parameter : -s 13,virtio-net,tap19 \ /etc/rc.conf : ifconfig_em0="DHCP" local_unbound_enable="YES" cloned_interfaces="bridge0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7 tap8 tap9 tap10 tap11 tap12 tap13 tap14 tap15 tap16 tap17 tap18 tap19 tap20 em0" ifconfig_bridge0="addm em0 addm tap0 addm tap1 addm tap2 addm tap3 addm tap4 addm tap5 addm tap6 addm tap7 addm tap8 addm tap9 addm tap10 addm tap11 addm tap12 addm tap13 addm tap14 addm tap15 addm tap16 addm tap17 addm tap18 addm tap19 addm tap20" /boot/loader.conf if_tap_load="YES" if_bridge_load="YES" bridgestp_load="YES" /etc/sysctl.conf net.link.tap.up_on_open=1 net.inet.ip.forwarding=1 net.inet.ip.random_id=1 So,ok. I think you have understood what I want to do. Please help me. Thanks. -- Mario. --0000000000006df51d0617a55aa0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

I've just installed the CloudFlare client + GUI on Ubuntu,that I have= =20 virtualized with bhyve. Cloudflare does not work on FreeBSD. The=20 instructions that I have followed are located here :

https://youtu.be/4JuOUjCSj44

=

I want Cloudflare to take the IP address of FreeBSD.

To achieve this goal,I should change my network configuration,in a way that= I use the same IP for FreeBSD and Ubuntu.

That's what I want to do,but I don't know= how to do it. But I'm sure=20 that I will be able to do it if someone can give me some advice.
=

I can explain how I have configured my network,so you can explain what I sh= ould change to have the same IP.

For example,to boot Ubuntu with bhyve,I use the following parameter :

=09 =09
=09
-s 13,virtio-net,tap19 =
\

/etc/rc.conf :
=09 =09
=09
ifconfig_em0=3D"DH=
CP"
local_unbound_enable=3D"YES"
cloned_interfaces=3D"bridge0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7 t=
ap8 tap9 tap10 tap11 tap12 tap13 tap14 tap15 tap16 tap17 tap18 tap19 tap20 =
em0"
ifconfig_bridge0=3D"addm em0 addm tap0 addm tap1 addm tap2 addm tap3 a=
ddm tap4 addm tap5 addm tap6 addm tap7 addm tap8 addm tap9 addm tap10 addm =
tap11 addm tap12 addm tap13 addm tap14 addm tap15 addm tap16 addm tap17 add=
m tap18 addm tap19 addm tap20"

/boot/loader.conf
=09 =09
=09
if_tap_load=3D"YES=
"
if_bridge_load=3D"YES"
bridgestp_load=3D"YES"

/etc/sysctl.conf
=09 =09
=09
net.link.tap.up_on_open=
=3D1
net.inet.ip.forwarding=3D1
net.inet.ip.random_id=3D1

So,ok. I think you have understood what I want to do. Please help me. Thank= s.

--
Mario= .
--0000000000006df51d0617a55aa0--