Tag: networking

  • Owning the networking equipment in your network

    It seems there’s a new trend in India amongst Internet Service Providers to supply their own router. The primary reason ISPs do this is to reduce the amount of on-site support required, which is a very much valid reason. When an ISP has to deal with multiple user supplied equipment – it increases their work…

  • Always-on PPPoE but 30 seconds disconnection

    So I have a FTTH internet connection and my ISP uses PPPoE – a rather common configuration. But the ISP resets my connection every 12 hours, possibly for accounting purposes. Now whenever the connection reset was taking place my internet used to vanish for 30 seconds – a very bad situation to be in when…

  • Linux rename network interface using udev rules

    Sometimes it is convenient to have user assigned names to network interfaces – particularly when the MAC address of the interface remains constant but the bus on which it is attached may change because it’s a virtual machine. All that is required to be done is create a file /etc/udev/rules.d/persistent-net.rules : This file used to…

  • LXD OpenVSwitch and VLANs

    LXD is a fantastic container virtualization tool that comes by default with Ubuntu. In one of my applications I needed to have many containers each within it’s own VLAN network. So I used OpenVSwitch in combination with LXD to achieve this. There is no inherent facility in LXD to provide VLAN tag numbers to the…

  • Monitoring your internet connections with OpenWRT and a Telegram Bot

    For the past 5 years or so, I have been using a single ISP at home and mobile data for backup when it went down. But since last few months, the ISP service became a bit unreliable – this is more related to the rainy season. Mobile data doesn’t give fiber like constant speeds I…

  • A networking insight from the past

    An insight into a networking problem thrt I faced seven years ago wrt unable to use Internet on Linux after learning networking and Linux over the years.

  • CloudFlare Dynamic DNS using OpenWRT

    I use dynamic DNS for my home internet connection so that I can access the machines from anywhere on the internet. And I use OpenWRT on my router. Earlier I was using Namecheap for managing DNS but I switched to CloudFlare for performance and security reasons of the website. Unfortunately CloudFlare doesn’t support updating IP…

  • The Proxy ARP method of routing subnets to solve the docker networking problem

    Recently I discovered something called Proxy ARP. I had seen this earlier in sysctl options but never understood it and why would someone need it, until one day I worked in a networking setup which used this to route traffic from the machine to the Internet. It’s an interesting technique and can solve a big…

  • FreeBSD IPFW NAT and Jails

    IPFW in FreeBSD has built-in support for NATing and the configuration syntax is same as that of natd. It took me quite some time to figure out how to NAT for jails while ensuring that certain jails can have public IPs. Configure the nat on one of the IP addresses: When using stateful firewall, the…

  • Routing for multiple ISP links on Linux

    Many of us have multiple ISP uplinks for different reasons like reliability, download limit, etc. but there is no clear guide [at least, I couldn’t find any] on routing for multiple links. I came across the same problem — I got a new fiber connection, but it is a capped one and I have a…