From owner-freebsd-questions@freebsd.org Thu Jul 11 14:30:48 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 579A615D4CCE for ; Thu, 11 Jul 2019 14:30:48 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (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 3AF6881968 for ; Thu, 11 Jul 2019 14:30:47 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-lf1-x133.google.com with SMTP id 62so4221888lfa.8 for ; Thu, 11 Jul 2019 07:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nVWeUnXa0mQbCY7RT6zVrioGOwdCePDkOs0wcX5B3Hc=; b=ODIG1oPMFzo2IYHBiw2ajVj9isMWGTat9UP/9KHSNzH+TyyPMqpCE1GSeOLdqRcaPZ VmZF+ZNyX5CDRedK6VXxUaMcJJJz6jdIqdMHj2JzxGoB3+NeLWNUb/EkOdWgsBMav8xq 5zMcwGZUkosj2wM1JFkcD2n59xl/ka9xljbrUhIQSYpXx7fapDDg1MRRf013IgW4DDAh WmyhT85L8+42bjXSweuwW6uE35HcuGeqqtlmuEd2fl+o5QFsKvK8s1efYK76GAJ9w6fZ uzRNcqE1d72apz/3BCubs9oT3TcXnSK5JAitlrz+gp7R7oMVxoJ4vlmDYLXpXEKOR9qI j4Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nVWeUnXa0mQbCY7RT6zVrioGOwdCePDkOs0wcX5B3Hc=; b=CzAh3vtTC1RY/haXV9OzFAMZ54xf/9B8spQ5SoRrf2ZJt0dXpIfJxSWbhGRO1U37Wk e1vTUzxpRqKnjJmOPpPGouUEuDhDvEvYrQaz1IoVe/D/EqWRC/s5krfNVmLDSvNKpWFH Ah8z5b/RazxQ4qHLKotoPNABgLakGkPcNAQGUTaIKVYrdBrKl+KKmc6mGfjtVhJtFdaF xjzx42rg71XUu5Ek4cVZfP6nOZBq5lkToWbKQe4ULf3vS8mL5SQ9d3G/MWdasIFE9JMO W1rZkmxHqv5fpiHYd1vmMUP+1mkGGWmlKT/U8gWCi/9Yn7DKW3rh7+R88YwtudMIZEGm u3zQ== X-Gm-Message-State: APjAAAXkvXHoBTZKiMqeZB6k+XsBZwi+Grzez6lvvKWOY0POGbtZSj3e NXavv7esfSiWJV0B1S/Kkrjb7mFB6GrvQWlU7nUP4HNO X-Google-Smtp-Source: APXvYqzUL06QsTx8U7XAP7FXtS4lYXos1so8HvXdK2HJiaqHAtF6JHlcYLMP4RaQjReX5K6WoUQUv1O/CcHTVH12u6A= X-Received: by 2002:a05:6512:21e:: with SMTP id a30mr2066753lfo.107.1562855445460; Thu, 11 Jul 2019 07:30:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Odhiambo Washington Date: Thu, 11 Jul 2019 17:30:08 +0300 Message-ID: Subject: Re: Configuring as Router To: Vishwas Sabbani Cc: User Questions X-Rspamd-Queue-Id: 3AF6881968 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ODIG1oPM; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::133 as permitted sender) smtp.mailfrom=odhiambo@gmail.com X-Spamd-Result: default: False [-6.87 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.87)[-0.871,0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; 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)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.99)[ip: (-9.56), ipnet: 2a00:1450::/32(-2.87), asn: 15169(-2.44), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Thu, 11 Jul 2019 14:30:48 -0000 On Thu, 11 Jul 2019 at 07:47, Vishwas Sabbani wrote: > I am using FreeBSD 12.0 release. I want to configure it as a router. I've > been trying it and searched in various sites but nothing works for me. It > will be really helpful if you explain me the overall process. Waiting for > your reply. > Thank you Install two networks cards, one for the WAN, another for the LAN 1. Configure WAN with IP address/subnet mask 2. Configure default route 3. Configure LAN with IP/subnet mask 4. In rc.conf add gateway_enable="YES" That is about all you need to do.Connect the WAN port to your cable modem and LAN port to your switch. Reboot. Test whether the FreeBSD box can reach the Internet. Point your LAN hosts to the LAN IP of the FreeBSD box as the GATEWAY IP either manually or using your DHCP server. That is all. You may need a firewall on the FreeBSD box, but if your cable modem has firewall capabilities, then use it. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)