#!/bin/sh -e iptables -I INPUT -p udp --dport 5300 -j ACCEPT iptables -t nat -I PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5300 cd /etc/slowdns && ./startdns exit 0