Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Aug 27, 2014
1 parent 9b0fe11 commit bddcb4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openwrt/files/chinadns.init
Original file line number Diff line number Diff line change
@@ -13,13 +13,14 @@ start()
-p 5353 \
1> /tmp/log/chinadns.log \
2> /tmp/log/chinadns.err.log &
echo $! > /tmp/chinadns.pid
iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5353
}

stop()
{
iptables -t nat -D PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5353
killall chinadns
kill `echo /tmp/chinadns.pid`
}

restart()

0 comments on commit bddcb4c

Please sign in to comment.