Skip to content

Instantly share code, notes, and snippets.

@EkkoG
Created January 22, 2016 13:45
Show Gist options
  • Save EkkoG/798f1a0e9ee01ffc8f4a to your computer and use it in GitHub Desktop.
Save EkkoG/798f1a0e9ee01ffc8f4a to your computer and use it in GitHub Desktop.
dns2socks
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=90
SERVICE_USE_PID=1
SERVICE_WRITE_PID=1
SERVICE_DAEMONIZE=1
start() {
service_start /usr/bin/dns2socks 127.0.0.1:2080 8.8.8.8:53 127.0.0.1:1053 -q
}
stop() {
service_stop /usr/bin/dns2socks
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment