Skip to content

Commit 5edf1c6

Browse files
committed
updated about section. Minor update to a post
1 parent 5b6896a commit 5edf1c6

File tree

11 files changed

+181
-62
lines changed

11 files changed

+181
-62
lines changed

content/about.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Hello world
22

3-
Welcome to my blog. My name is Kapil Agrawal (pronunciation: `cup-ill`) and I am a *Security Engineer* by profession. My current role mostly focuses on Network security, DevSecOps and developing security tools and automating workflows for security operations. Prior to moving into a Cybersecurity role, I was a Network Engineer and had several years of experience working in service provider and HPC data center networking and automation. I have many interests most of which involve Linux, networking, security, software, Infrastucture as code. In my downtime I enjoy hiking, kayaking or working out (HIIT), gaming, traveling or playing with Juniper (my cat).
3+
Welcome to my blog. My name is Kapil Agrawal (pronunciation: `cup-ill`) and I am a *Security Engineer* by profession. These days I mostly focus on things involving Kubernetes networking and security. I also have an extensive background in network operations and infrastructure automation. Generally speaking, I like to live at the intersection of networking, systems, software & security. In my downtime I go hiking or kayaking, traveling or staying home gaming, working in my homelab or playing with Juniper (my cat).
44

55
## Motivation
66

7-
Since I rely heavily on Open source and the work that others put out online for free, I wanted to do my due diligence and share some of the cool stuff that I get to learn and work on which I usually end up documenting somewhere in my notes anyway. My hope is that someone on the internet could benefit from the information here plus it helps me work on my technical writing skills and also gives me a good reason to finally start using this domain that I have been squatting on for so long.
7+
Since I rely heavily on Open source and the work that others put out online for free, I wanted to do my due diligence and share some of the cool stuff that I get to learn and work on which I usually end up documenting somewhere in my notes anyway. My hope is that someone on the internet could benefit from the information here and it also gives me a good reason to finally start using this domain that I have been squatting on for so long. I am super passionate about learning and sharing.
88

99
Thanks for stopping by. I hope you find the articles in this blog helpful.
1010

content/posts/mikrotik-ipv6.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
---
22
title: IPv6 prefix delegation on Mikrotik
3-
date: 2024-05-26
3+
date: 2024-12-14
44
tags: ["IPv6", "Mikrotik", "Networking"]
55
author: "Kapil Agrawal"
66
comments: false
7-
description: "RouterOS config to get IPv6 prefix delegation from your ISP"
7+
description: "Mikrotik RouterOS config for IPv6 prefix delegation"
88
---
9-
## Config
9+
## RouterOS config
10+
11+
```sh
12+
# Configure interface group
13+
/interface list add comment="UPLINK to ISP" name=WAN
14+
/interface list member add comment="WAN facing interface" interface=ether1 list=WAN
15+
16+
# Enable router-advertisement incoming from the ISP
17+
/ipv6 settings set accept-router-advertisements=yes
18+
19+
# Request an IPv6 prefix over WAN interface; my ISP hands out a /56
20+
/ipv6 dhcp-client add add-default-route=yes interface=ether1 pool-name=delegation pool-prefix-length=56 prefix-hint=::/56 request=address,prefix
21+
22+
# Only accept inbound router-advertisements on the WAN interface
23+
/ipv6 firewall filter add action=drop chain=input icmp-options=134:0-255 in-interface-list=!WAN protocol=icmpv6
24+
25+
# Allow prefix delegatation on WAN interface
26+
/ipv6 firewall filter add action=accept chain=input comment="accept DHCPv6-Client prefix delegation." dst-port=546 protocol=udp src-address=fe80::/10
27+
```

public/about/index.html

+5-5
Large diffs are not rendered by default.

public/archives/index.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<!doctype html><html lang=en dir=auto><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>Archives | netops2devops</title><meta name=keywords content><meta name=description content="Archives - netops2devops"><meta name=author content="Kapil Agrawal"><link rel=canonical href=http://localhost:1313/archives/><link crossorigin=anonymous href=/assets/css/stylesheet.min.d1687d10e64e13dbbdcf0fb91c3e6fbfcb11296ada6011568902ae90b8552e41.css integrity="sha256-0Wh9EOZOE9u9zw+5HD5vv8sRKWraYBFWiQKukLhVLkE=" rel="preload stylesheet" as=style><link rel=icon href=http://localhost:1313/favicon.ico><link rel=apple-touch-icon href=http://localhost:1313/apple-touch-icon.png><link rel=alternate hreflang=en href=http://localhost:1313/archives/><meta name=twitter:card content="summary"><meta name=twitter:title content="Archives | netops2devops"><meta name=twitter:description content><meta property="og:title" content="Archives | netops2devops"><meta property="og:description" content><meta property="og:type" content="article"><meta property="og:url" content="http://localhost:1313/archives/"><meta property="og:image" content="http://localhost:1313/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E"><meta property="article:section" content><meta property="og:site_name" content="netops2devops"><script type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Archives","item":"http://localhost:1313/archives/"}]}</script><script type=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"Archives | netops2devops","name":"Archives","description":"","keywords":[],"wordCount":"0","inLanguage":"en","datePublished":"0001-01-01T00:00:00Z","dateModified":"0001-01-01T00:00:00Z","author":{"@type":"Person","name":"Kapil Agrawal"},"mainEntityOfPage":{"@type":"WebPage","@id":"http://localhost:1313/archives/"},"publisher":{"@type":"Organization","name":"netops2devops","logo":{"@type":"ImageObject","url":"http://localhost:1313/favicon.ico"}}}</script><noscript><style>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary-bg:rgb(65, 66, 68);--content:rgb(196, 196, 197);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51)}.list-page{background:var(--theme)}.list-page:not(.dark)::-webkit-scrollbar-track{background:0 0}.list-page:not(.dark)::-webkit-scrollbar-thumb{border-color:var(--theme)}}</style></noscript></head><body class="list-page type-page kind-page layout-archives" id=top><script data-no-instant>function switchTheme(e){switch(e){case"light":document.body.classList.remove("dark");break;case"dark":document.body.classList.add("dark");break;default:window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.add("dark")}}function isDarkTheme(){return document.body.className.includes("dark")}function getPrefTheme(){return localStorage.getItem("pref-theme")}function setPrefTheme(e){switchTheme(e),localStorage.setItem("pref-theme",e)}const toggleThemeCallbacks={};toggleThemeCallbacks.main=e=>{setPrefTheme(e?"light":"dark")},window.addEventListener("toggle-theme",function(){const e=isDarkTheme();for(const t in toggleThemeCallbacks)toggleThemeCallbacks[t](e)});function toggleThemeListener(){window.dispatchEvent(new CustomEvent("toggle-theme"))}</script><script>(function(){const t="auto",e=getPrefTheme(),n=e||t;switchTheme(n)})()</script><header class=header><nav class=nav><div class=logo><a href=http://localhost:1313/ accesskey=h title="netops2devops (Alt + H)">netops2devops</a>
22
<span class=logo-switches><button id=theme-toggle accesskey=t title="(Alt + T)">
33
<svg id="moon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>
4-
<svg id="sun" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></span></div><ul id=menu><li><a href=http://localhost:1313/posts/ title=Posts>Posts</a></li><li><a href=http://localhost:1313/search/ title="Search (Alt + /)" data-no-instant accesskey=/>Search</a></li><li><a href=http://localhost:1313/tags/ title=Tags>Tags</a></li><li><a href=http://localhost:1313/archives/ title=Archive class=active>Archive</a></li><li><a href=http://localhost:1313/about/ title=About>About</a></li></ul></nav></header><main class="main post"><header class=page-header><h1>Archives</h1></header><div class=archive-year><h2 class=archive-year-header>2024<sup class=archive-count>&nbsp;&nbsp;2</sup></h2><div class=archive-month><h3 class=archive-month-header>May<sup class=archive-count>&nbsp;&nbsp;2</sup></h3><div class=archive-posts><div class=archive-entry><h3 class=archive-entry-title>Say goodbye to boilerplate code</h3><div class=archive-meta><span class=meta-item><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar" style="user-select:text"><rect x="3" y="4" width="18" height="18" rx="2" ry="2" style="user-select:text"/><line x1="16" y1="2" x2="16" y2="6" style="user-select:text"/><line x1="8" y1="2" x2="8" y2="6" style="user-select:text"/><line x1="3" y1="10" x2="21" y2="10" style="user-select:text"/></svg>
5-
<span>May 27, 2024</span></span><span class=meta-item>
4+
<svg id="sun" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></span></div><ul id=menu><li><a href=http://localhost:1313/posts/ title=Posts>Posts</a></li><li><a href=http://localhost:1313/search/ title="Search (Alt + /)" data-no-instant accesskey=/>Search</a></li><li><a href=http://localhost:1313/tags/ title=Tags>Tags</a></li><li><a href=http://localhost:1313/archives/ title=Archive class=active>Archive</a></li><li><a href=http://localhost:1313/about/ title=About>About</a></li></ul></nav></header><main class="main post"><header class=page-header><h1>Archives</h1></header><div class=archive-year><h2 class=archive-year-header>2024<sup class=archive-count>&nbsp;&nbsp;2</sup></h2><div class=archive-month><h3 class=archive-month-header>December<sup class=archive-count>&nbsp;&nbsp;1</sup></h3><div class=archive-posts><div class=archive-entry><h3 class=archive-entry-title>IPv6 prefix delegation on Mikrotik</h3><div class=archive-meta><span class=meta-item><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar" style="user-select:text"><rect x="3" y="4" width="18" height="18" rx="2" ry="2" style="user-select:text"/><line x1="16" y1="2" x2="16" y2="6" style="user-select:text"/><line x1="8" y1="2" x2="8" y2="6" style="user-select:text"/><line x1="3" y1="10" x2="21" y2="10" style="user-select:text"/></svg>
5+
<span>December 14, 2024</span></span><span class=meta-item>
66
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-tag meta-icon" style="user-select:text"><path d="M20.59 13.41l-7.17 7.17a2 2 0 01-2.83.0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z" style="user-select:text"/><line x1="7" y1="7" x2="7" y2="7" style="user-select:text"/></svg>
7-
<span class=post-tags><a href=http://localhost:1313/tags/cookiecutter/>Cookiecutter</a><a href=http://localhost:1313/tags/dev/>Dev</a></span></span><span class=meta-item>
7+
<span class=post-tags><a href=http://localhost:1313/tags/ipv6/>IPv6</a><a href=http://localhost:1313/tags/mikrotik/>Mikrotik</a><a href=http://localhost:1313/tags/networking/>Networking</a></span></span><span class=meta-item>
88
<svg width="24" height="24" viewBox="0 0 24 24" stroke="currentcolor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="9"/><polyline points="12 7 12 12 15 15"/></svg>
99
<span>1 min</span></span><span class=meta-item>
10-
<svg width="24" height="24" viewBox="0 0 24 24" stroke="#000" stroke-width="1" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="7" r="4"/><path d="M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2"/></svg>Kapil Agrawal</span></div><a class=entry-link aria-label="post link to Say goodbye to boilerplate code" href=http://localhost:1313/posts/my-cookiecutter/></a></div><div class=archive-entry><h3 class=archive-entry-title>IPv6 prefix delegation on Mikrotik</h3><div class=archive-meta><span class=meta-item><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar" style="user-select:text"><rect x="3" y="4" width="18" height="18" rx="2" ry="2" style="user-select:text"/><line x1="16" y1="2" x2="16" y2="6" style="user-select:text"/><line x1="8" y1="2" x2="8" y2="6" style="user-select:text"/><line x1="3" y1="10" x2="21" y2="10" style="user-select:text"/></svg>
11-
<span>May 26, 2024</span></span><span class=meta-item>
10+
<svg width="24" height="24" viewBox="0 0 24 24" stroke="#000" stroke-width="1" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="7" r="4"/><path d="M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2"/></svg>Kapil Agrawal</span></div><a class=entry-link aria-label="post link to IPv6 prefix delegation on Mikrotik" href=http://localhost:1313/posts/mikrotik-ipv6/></a></div></div></div><div class=archive-month><h3 class=archive-month-header>May<sup class=archive-count>&nbsp;&nbsp;1</sup></h3><div class=archive-posts><div class=archive-entry><h3 class=archive-entry-title>Say goodbye to boilerplate code</h3><div class=archive-meta><span class=meta-item><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar" style="user-select:text"><rect x="3" y="4" width="18" height="18" rx="2" ry="2" style="user-select:text"/><line x1="16" y1="2" x2="16" y2="6" style="user-select:text"/><line x1="8" y1="2" x2="8" y2="6" style="user-select:text"/><line x1="3" y1="10" x2="21" y2="10" style="user-select:text"/></svg>
11+
<span>May 27, 2024</span></span><span class=meta-item>
1212
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-tag meta-icon" style="user-select:text"><path d="M20.59 13.41l-7.17 7.17a2 2 0 01-2.83.0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z" style="user-select:text"/><line x1="7" y1="7" x2="7" y2="7" style="user-select:text"/></svg>
13-
<span class=post-tags><a href=http://localhost:1313/tags/ipv6/>IPv6</a><a href=http://localhost:1313/tags/mikrotik/>Mikrotik</a><a href=http://localhost:1313/tags/networking/>Networking</a></span></span><span class=meta-item>
13+
<span class=post-tags><a href=http://localhost:1313/tags/cookiecutter/>Cookiecutter</a><a href=http://localhost:1313/tags/dev/>Dev</a></span></span><span class=meta-item>
1414
<svg width="24" height="24" viewBox="0 0 24 24" stroke="currentcolor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="9"/><polyline points="12 7 12 12 15 15"/></svg>
1515
<span>1 min</span></span><span class=meta-item>
16-
<svg width="24" height="24" viewBox="0 0 24 24" stroke="#000" stroke-width="1" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="7" r="4"/><path d="M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2"/></svg>Kapil Agrawal</span></div><a class=entry-link aria-label="post link to IPv6 prefix delegation on Mikrotik" href=http://localhost:1313/posts/mikrotik-ipv6/></a></div></div></div></div></main><footer class=footer><span>&copy; 2024 <a href=http://localhost:1313/>netops2devops</a></span><span style=display:inline-block;margin-left:1em>
16+
<svg width="24" height="24" viewBox="0 0 24 24" stroke="#000" stroke-width="1" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="7" r="4"/><path d="M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2"/></svg>Kapil Agrawal</span></div><a class=entry-link aria-label="post link to Say goodbye to boilerplate code" href=http://localhost:1313/posts/my-cookiecutter/></a></div></div></div></div></main><footer class=footer><span>&copy; 2024 <a href=http://localhost:1313/>netops2devops</a></span><span style=display:inline-block;margin-left:1em>
1717
<a href=https://creativecommons.org/licenses/by-sa/4.0/>CC BY-SA</a>
1818
</span><span style=display:inline-block;margin-left:1em>Powered by
1919
<a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a> &

0 commit comments

Comments
 (0)