Simulate packet loss and delays

It was neccessary to test failover script which should switch uplink in case of main ISP outage.

First thing is to just plug the cable out. But how to simulate high RTT and packet losses?

Here comes traffic control (tc) utility with it's queuing disciplines (qdisc). Long story short, it …

more ...

Setting up a home router

In this article I gonna represent my home router config which also acting as a web/media/storage server and so on.

Warning I assume you got direct access to the host console, otherwise don't apply DROP policy until double-check the ACCEPT rules.

Here we do state that eth0 is …

more ...

How to proxy IGMP / IPTV over NAT

Outdated! Nowadays I use udpxy, which is much more efficient for in-home usage.

Here's my network interfaces:

  • eth0 - WAN
  • eth1 - LAN

Iptables default policy is DROP, so we need to allow IGMP traffic:

iptables -A FORWARD -p igmp -i eth0 -o eth1 -j ACCEPT

iptables -A FORWARD -s 224.0 …
more ...