Skip to content

Commit

Permalink
inet dns
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberAndi committed Jan 23, 2025
1 parent 8151b59 commit 11bf64b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Install/openWRT23_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32342,9 +32342,17 @@ test_tor_dns_intercept() {
uci set firewall.dns_int.name="Intercept-DNS"
uci set firewall.dns_int.family="any"
uci set firewall.dns_int.proto="tcp udp"
uci set firewall.dns_int.src="lan"
uci set firewall.dns_int.src="INET"
uci set firewall.dns_int.src_dport=$DNS_port
uci set firewall.dns_int.target="DNAT"
uci -q del firewall.dns2_int
uci set firewall.dns2_int="redirect"
uci set firewall.dns2_int.name="Intercept-DNS"
uci set firewall.dns2_int.family="any"
uci set firewall.dns2_int.proto="tcp udp"
uci set firewall.dns2_int.src="lan"
uci set firewall.dns2_int.src_dport=$DNS_port
uci set firewall.dns2_int.target="DNAT"
processes=$(uci commit && reload_config)
wait $processes >> /root/install.log
/etc/init.d/firewall restart >> /root/install.log
Expand Down Expand Up @@ -34939,7 +34947,7 @@ fi
opkg update
opkg install bc
#for Testing
remotestart='1'
#remotestart='1'

if [ -z $remotestart ]
then
Expand Down

0 comments on commit 11bf64b

Please sign in to comment.