<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Hierobot Reader</title>
    <link>https://blog.hierobot.com</link>
    <description>Read the latest posts from Hierobot.</description>
    <pubDate>Wed, 15 Apr 2026 08:13:58 -0400</pubDate>
    <item>
      <title>The most basic VyOS configuration possible</title>
      <link>https://blog.hierobot.com/tech/the-most-basic-vyos-configuration-possible</link>
      <description>&lt;![CDATA[Here is the bare minimum configuration necessary to make VyOS a functional, minimally-secure router.&#xA;&#xA;Strictly speaking, there are are only a few configurations necessary to use VyOS home router.&#xA;&#xA;Set interface IP addresses&#xA;Block traffic coming from the internet&#xA;NAT outgoing traffic&#xA;Give out IPs by DHCP&#xA;&#xA;For the sake of this tutorial, I&#39;ll assume the interface connected to the internet is eth0 and the interface connected to the home network is eth1&#xA;&#xA;Interface IPs&#xA;&#xA;The LAN interface absolutely needs a static IP that will not change&#xA;&#xA;Enter configuration mode&#xA;&#xA;conf&#xA;&#xA;Set interface IP address (The IP can be changed to something else if wanted)&#xA;&#xA;set interface ethernet eth1 address 192.168.10.1/24&#xA;&#xA;The configuration of the WAN interface will depend on your ISP. If you have a static address, you can use the same command as the LAN interface for the interface eth0. If the address is dynamic (not PPPoE) you can use this command:&#xA;&#xA;set interface ethernet eth0 address dhcp&#xA;&#xA;After making changes, make sure to apply and save the changes.&#xA;&#xA;commit&#xA;save&#xA;&#xA;Blocking traffic&#xA;&#xA;These three commands will make it so traffic trying to come into your network from the internet will be blocked.&#xA;&#xA;set firewall ipv4 forward filter rule 1000 inbound-interface name eth0&#xA;set firewall ipv4 forward filter rule 1000 action drop&#xA;set firewall ipv4 forward filter rule 1000 state new&#xA;&#xA;These three command will make it so traffic destined to your router from the internet will be blocked.&#xA;&#xA;set firewall ipv4 input filter rule 1000 inbound-interface name eth0&#xA;set firewall ipv4 input filter rule 1000 action drop&#xA;set firewall ipv4 input filter rule 1000 state new&#xA;&#xA;After making changes, make sure to apply and save the changes.&#xA;&#xA;commit&#xA;save&#xA;&#xA;NAT-ing traffic&#xA;&#xA;The following two commands will make it so traffic leaving your router towards the internet will have the internet address of your router as it&#39;s source address.&#xA;&#xA;set nat source rule 1000 outbound-interface name eth0&#xA;set nat source rule 1000 translation address masquerade&#xA;&#xA;After making changes, make sure to apply and save the changes.&#xA;&#xA;commit&#xA;save&#xA;&#xA;DHCP Server&#xA;&#xA;The following commands will configure your router to give out IP addresses to your clients between 100 and 200. If you chose a different subnet when addressing your LAN interface earlier, it is important that the IP values here reflect the same subnet.&#xA;&#xA;set service dhcp-server listen-interface eth1&#xA;set service dhcp-server shared-network-name home authoritative&#xA;set service dhcp-server shared-network-name home subnet 192.168.10.0/24 subnet-id 10&#xA;set service dhcp-server shared-network-name home subnet 192.168.10.0/24 range 100-200 start 192.168.10.100&#xA;set service dhcp-server shared-network-name home subnet 192.168.10.0/24 range 100-200 stop 192.168.10.200&#xA;set service dhcp-server shared-network-name home subnet 192.168.10.0/24 range 100-200 option default-router 192.168.10.1&#xA;set service dhcp-server shared-network-name home subnet 192.168.10.0/24 range 100-200 option name-server 8.8.8.8&#xA;&#xA;After making changes, make sure to apply and save the changes.&#xA;&#xA;commit&#xA;save&#xA;&#xA;You are now ready to start using your router.&#xA;&#xA;Notes&#xA;&#xA;If your ISP requires PPPoE, you can refer to this documentation:&#xA;https://docs.vyos.io/en/latest/configuration/interfaces/pppoe.html]]&gt;</description>
      <content:encoded><![CDATA[<p>Here is the bare minimum configuration necessary to make VyOS a functional, minimally-secure router.</p>

<p>Strictly speaking, there are are only a few configurations necessary to use VyOS home router.</p>
<ul><li>Set interface IP addresses</li>
<li>Block traffic coming from the internet</li>
<li>NAT outgoing traffic</li>
<li>Give out IPs by DHCP</li></ul>

<p><em>For the sake of this tutorial, I&#39;ll assume the interface connected to the internet is</em> <strong><em>eth0</em></strong> <em>and the interface connected to the home network is</em> <strong><em>eth1</em></strong></p>

<h2 id="interface-ips" id="interface-ips">Interface IPs</h2>

<p>The LAN interface absolutely needs a static IP that will not change</p>

<p>Enter configuration mode</p>

<p><code>conf</code></p>

<p>Set interface IP address (<em>The IP can be changed to something else if wanted</em>)</p>

<p><code>set interface ethernet eth1 address 192.168.10.1/24</code></p>

<p>The configuration of the WAN interface will depend on your ISP. If you have a static address, you can use the same command as the LAN interface for the interface eth0. If the address is dynamic (not PPPoE) you can use this command:</p>

<p><code>set interface ethernet eth0 address dhcp</code></p>

<p>After making changes, make sure to apply and save the changes.</p>

<p><code>commit</code>
<code>save</code></p>

<h2 id="blocking-traffic" id="blocking-traffic">Blocking traffic</h2>

<p>These three commands will make it so traffic trying to come into your network from the internet will be blocked.</p>

<p><code>set firewall ipv4 forward filter rule 1000 inbound-interface name eth0</code>
<code>set firewall ipv4 forward filter rule 1000 action drop</code>
<code>set firewall ipv4 forward filter rule 1000 state new</code></p>

<p>These three command will make it so traffic destined to your router from the internet will be blocked.</p>

<p><code>set firewall ipv4 input filter rule 1000 inbound-interface name eth0</code>
<code>set firewall ipv4 input filter rule 1000 action drop</code>
<code>set firewall ipv4 input filter rule 1000 state new</code></p>

<p>After making changes, make sure to apply and save the changes.</p>

<p><code>commit</code>
<code>save</code></p>

<h2 id="nat-ing-traffic" id="nat-ing-traffic">NAT-ing traffic</h2>

<p>The following two commands will make it so traffic leaving your router towards the internet will have the internet address of your router as it&#39;s source address.</p>

<p><code>set nat source rule 1000 outbound-interface name eth0</code>
<code>set nat source rule 1000 translation address masquerade</code></p>

<p>After making changes, make sure to apply and save the changes.</p>

<p><code>commit</code>
<code>save</code></p>

<h2 id="dhcp-server" id="dhcp-server">DHCP Server</h2>

<p>The following commands will configure your router to give out IP addresses to your clients between 100 and 200. If you chose a different subnet when addressing your LAN interface earlier, it is important that the IP values here reflect the same subnet.</p>

<p><code>set service dhcp-server listen-interface eth1</code>
<code>set service dhcp-server shared-network-name home authoritative</code>
<code>set service dhcp-server shared-network-name home subnet 192.168.10.0/24 subnet-id 10</code>
<code>set service dhcp-server shared-network-name home subnet 192.168.10.0/24 range 100-200 start 192.168.10.100</code>
<code>set service dhcp-server shared-network-name home subnet 192.168.10.0/24 range 100-200 stop 192.168.10.200</code>
<code>set service dhcp-server shared-network-name home subnet 192.168.10.0/24 range 100-200 option default-router 192.168.10.1</code>
<code>set service dhcp-server shared-network-name home subnet 192.168.10.0/24 range 100-200 option name-server 8.8.8.8</code></p>

<p>After making changes, make sure to apply and save the changes.</p>

<p><code>commit</code>
<code>save</code></p>

<p>You are now ready to start using your router.</p>

<h2 id="notes" id="notes">Notes</h2>

<p>If your ISP requires PPPoE, you can refer to this documentation:
<a href="https://docs.vyos.io/en/latest/configuration/interfaces/pppoe.html" rel="nofollow">https://docs.vyos.io/en/latest/configuration/interfaces/pppoe.html</a></p>
]]></content:encoded>
      <author>Tech</author>
      <guid>https://blog.hierobot.com/read/a/8jzue515w2</guid>
      <pubDate>Wed, 11 Jun 2025 09:44:16 -0400</pubDate>
    </item>
  </channel>
</rss>