From nobody Sun Oct 23 06:52:08 2022 X-Original-To: freebsd-ports@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 4Mw85X23bhz4gL4B for ; Sun, 23 Oct 2022 06:52:16 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from bumble.maple.relay.mailchannels.net (bumble.maple.relay.mailchannels.net [23.83.214.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mw85V6PBDz3vwZ for ; Sun, 23 Oct 2022 06:52:14 +0000 (UTC) (envelope-from graham@menhennitt.com.au) X-Sender-Id: dreamhost|x-authsender|graham@menhennitt.com.au Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8E66C1009EC for ; Sun, 23 Oct 2022 06:52:12 +0000 (UTC) Received: from pdx1-sub0-mail-a308 (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 29D9110075B for ; Sun, 23 Oct 2022 06:52:12 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1666507932; a=rsa-sha256; cv=none; b=CesfkpFy7VaB+K1jEs7G41c+feNxJ0TxLfHZ9Dv8FYTux+/3nmbTIW29PgEV5vdYsNWLYP xg28dzYbUP+7m8IiTfjo5Q/PNV2T5t0XlCP2EHNbeFcEOhnKSl4JYYEOkt3oFbOlNZz30P MhQzdD7o6Pd0M2AQzupCPRQ244UdtjtranhLBn+JqbuFyq1m4o03KPzbN6Yd6GbSqhLO0F pbpRMUfvkPGsFaVfzC2lHpcxZ1iluvpYuSNmyQ4OyfP6aTzDMhTKuq6bFcM8oV3LDsmis1 dOeoL7oVEkR1DiUSY9b9XEpMTPHXSfHdEfEcvmse17liGyNAVbe16YUF5i3ebw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1666507932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=poMEQZS7xfvX1mh2dd88dPwDPmgGBUn63LWJcbUz9e8=; b=FrLMA8L2QEmkqF1gLWYc6AFmt760kApLFWu6Kpp+9Z7YurHY79d33EqVL0kr78Lt6DQFue 1zzk7ibfEjfJvrkZO8LpQ0mkUyAt0c2nBFzGt+GzfKPLBVnb/y4kno2i/oltN0c6f+Xlzk zMKApMCUM9h5h0TswIdWJVgZ6Qaw3+SaD35CfJiZOLvx5xz4Q31DxV/sqiwNsmL4Pej8FA 3bmMf0F4W5y58fTIzdBU/HPsGicVNoC2xm6hEEpuuQjKzywyyik03R/cQOFTao+y8UZvTa YYuaaDWlh1Dg78QEdcmvAuQh4X3GbMJtjwncVk3N4Su2b8hXs7lydc7pjXi6zQ== ARC-Authentication-Results: i=1; rspamd-7fb88f4dd5-crcnf; auth=pass smtp.auth=dreamhost smtp.mailfrom=graham@menhennitt.com.au X-Sender-Id: dreamhost|x-authsender|graham@menhennitt.com.au X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|graham@menhennitt.com.au X-MailChannels-Auth-Id: dreamhost X-Print-Wipe: 478e5764028548dd_1666507932388_2508321726 X-MC-Loop-Signature: 1666507932388:3597131731 X-MC-Ingress-Time: 1666507932388 Received: from pdx1-sub0-mail-a308 (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.122.146.22 (trex/6.7.1); Sun, 23 Oct 2022 06:52:12 +0000 Received: from [203.2.73.19] (110-174-169-53.tpgi.com.au [110.174.169.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: graham@menhennitt.com.au) by pdx1-sub0-mail-a308 (Postfix) with ESMTPSA id 4Mw85R2WNWz32 for ; Sat, 22 Oct 2022 23:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=menhennitt.com.au; s=dreamhost; t=1666507931; bh=poMEQZS7xfvX1mh2dd88dPwDPmgGBUn63LWJcbUz9e8=; h=Content-Type:Date:To:From:Subject; b=ekLOL426CqgDkqRClFiXQk/mKqqdEcuTjfypGbIuYnwIwlWhLUPETylaAXv0uaJ8C Z4F3vFPXhKH5W8knoyeqTSfp22ZGbsh/rzHT3puHvcfvO9cGAQ2yjQqjlaxgNj52wH SePUE0wGHtyg/YWLOyldkZspjlolGcC5L6+K5tAwrXXJZxGzVa7RLlamk4+zjJ7Zc7 MezYHja5jrnsObrGoW56GKtfKRxdLBnCNCKs1nJPHqhfqBUB/uohDzj9TpM3Nfh3E/ RbEMx/jFis8eafiTUO6L+EFKD1A2MelANwYXhe5nkfVCKm/NWYb4dyR0udxKBGf2qn FyFkIJIgRrOIA== Content-Type: multipart/alternative; boundary="------------xBCWpUcAGqkfFy6wqyxwIlPC" Message-ID: Date: Sun, 23 Oct 2022 17:52:08 +1100 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Content-Language: en-US To: freebsd-ports@freebsd.org From: Graham Menhennitt Subject: dnsmasq pushing static route over DHCP X-Rspamd-Queue-Id: 4Mw85V6PBDz3vwZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=menhennitt.com.au header.s=dreamhost header.b=ekLOL426; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none; spf=pass (mx1.freebsd.org: domain of graham@menhennitt.com.au designates 23.83.214.25 as permitted sender) smtp.mailfrom=graham@menhennitt.com.au X-Spamd-Result: default: False [-4.50 / 15.00]; ARC_ALLOW(-1.00)[mailchannels.net:s=arc-2022:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[menhennitt.com.au:s=dreamhost]; R_SPF_ALLOW(-0.20)[+ip4:23.83.208.0/20]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[23.83.214.25:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:36483, ipnet:23.83.208.0/21, country:CA]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[menhennitt.com.au:+]; DMARC_NA(0.00)[menhennitt.com.au]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------xBCWpUcAGqkfFy6wqyxwIlPC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello all, I have a machine running dnsmasq to provide DNS and DHCP services to my small network. All machines are running FreeBSD 13-stable as of a week ago. Dnsmasq is installed from the port and is version 2.87. I use DHCP options to push the default route to the clients. The relevant bit of my dnamasq.conf is: dhcp-authoritative dhcp-range=igb0,XXX.2.73.10,XXX.2.73.99,255.255.255.128,12h dhcp-option=option:router,XXX.2.73.1 That all works correctly. # route get default   route to: default destination: default       mask: default    gateway: XXX.2.73.1 Now I would also like to push a static route to clients to give them access to another network which is connected via OpenVPN. I've added the DHCP option 121: dhcp-option=option:classless-static-route,XXX.3.73.0/24,XXX.2.73.2 That adds the new static route correctly. But it breaks the default route. # route get XXX.3.73.1   route to: XXX.3.73.1 destination: XXX.3.73.0       mask: 255.255.255.0    gateway: XXX.2.73.2 # route get default route: route has not been found I've tried just "option:static-route" instead (option 33). But that doesn't appear to work at all. Can somebody please give me some clues. I'll happily admit that I don't know what I'm doing! Thanks in advance. Graham --------------xBCWpUcAGqkfFy6wqyxwIlPC Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hello all,

I have a machine running dnsmasq to provide DNS and DHCP services to my small network. All machines are running FreeBSD 13-stable as of a week ago. Dnsmasq is installed from the port and is version 2.87.

I use DHCP options to push the default route to the clients. The relevant bit of my dnamasq.conf is:

dhcp-authoritative
dhcp-range=igb0,XXX.2.73.10,XXX.2.73.99,255.255.255.128,12h
dhcp-option=option:router,XXX.2.73.1

That all works correctly.

# route get default
  route to: default
destination: default
      mask: default
   gateway: XXX.2.73.1

Now I would also like to push a static route to clients to give them access to another network which is connected via OpenVPN. I've added the DHCP option 121:

dhcp-option=option:classless-static-route,XXX.3.73.0/24,XXX.2.73.2

That adds the new static route correctly. But it breaks the default route.

# route get XXX.3.73.1
  route to: XXX.3.73.1
destination: XXX.3.73.0
      mask: 255.255.255.0
   gateway: XXX.2.73.2

# route get default            
route: route has not been found

I've tried just "option:static-route" instead (option 33). But that doesn't appear to work at all.

Can somebody please give me some clues. I'll happily admit that I don't know what I'm doing!

Thanks in advance.

Graham

--------------xBCWpUcAGqkfFy6wqyxwIlPC--