change listen port to 5354

This commit is contained in:
bluemeda 2018-03-18 11:13:38 +07:00
parent 784c35d99c
commit 10c935353d
2 changed files with 6 additions and 6 deletions

View File

@ -14,10 +14,10 @@ do
$MODDIR/system/xbin/dnscrypt-proxy -config $MODDIR/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml & $MODDIR/system/xbin/dnscrypt-proxy -config $MODDIR/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml &
sleep 5 sleep 5
iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:5353 iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:5354
iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:5353 iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:5354
iptables -t nat -A INPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:5353 iptables -t nat -A INPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:5354
iptables -t nat -A INPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:5353 iptables -t nat -A INPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:5354
break; break;
else else
sleep 5 sleep 5

View File

@ -139,8 +139,8 @@ install_dnscrypt_proxy(){
if [ ! -f "$OLD_CONFIG_FILE" ]; then if [ ! -f "$OLD_CONFIG_FILE" ]; then
ui_print "* Copying config files" ui_print "* Copying config files"
cp -af $CONFIG_PATH/example-dnscrypt-proxy.toml $NEW_CONFIG_FILE cp -af $CONFIG_PATH/example-dnscrypt-proxy.toml $NEW_CONFIG_FILE
sed -i -e 's/127.0.0.1:53/127.0.0.1:5353/g' $NEW_CONFIG_FILE sed -i -e 's/127.0.0.1:53/127.0.0.1:5354/g' $NEW_CONFIG_FILE
sed -i -e 's/\[::1\]:53/\[::1\]:5353/g' $NEW_CONFIG_FILE sed -i -e 's/\[::1\]:53/\[::1\]:5354/g' $NEW_CONFIG_FILE
else else
ui_print "* Restoring config files" ui_print "* Restoring config files"
cp -af $TMPDIR/dnscrypt-proxy.toml $NEW_CONFIG_FILE cp -af $TMPDIR/dnscrypt-proxy.toml $NEW_CONFIG_FILE