#!/usr/bin/env bash file=`cat /proc/net/dev | awk '{i++; if(i>2){print $1}}' | sed 's/^[\t]*//g' | sed 's/[:]*$//g'` for i in all default $file do echo "0">/proc/sys/net/ipv4/conf/$i/rp_filter done