Block updates on OpenWrt router

Here for general support for J series TVs, request and problem solve area.
Post Reply

Steiner
SamyGO Project Donor
Posts: 34
Joined: Sun Jul 17, 2016 12:11 pm
Location: Slovakia

Block updates on OpenWrt router

Post by Steiner » Tue Sep 06, 2016 9:40 pm

1. Create text file, like this: ;)
hosts.zip
/very text file "hosts.block" is in zip file - please unpack :D /
2. Save this file to OpenWrt router through ftp, ..., to folder: ./etc/
3. Open OpenWrt Shell in LuCi, for example: "http://192.168.1.1/cgi-bin/luci"
4. In menu: Network - DHCP and DNS - Resolv and Hosts Files : in "Additional Hosts files" enter this: "/etc/hosts.block"
"Ignore Hosts files" is "NOT CHECKED" !!!
OWRT-BLK.JPG
5. Save & Apply
6. Reboot router.

Test:
PC connected to this router and with DNS set from this router with result NOT OK :
S-NOK.JPG
PC connected to this router and with DNS set from this router with result OK :
S-OK.JPG
I will not because Explorer to switch to EN :D , I think it's clear.

Test in Samsung TV /connected to this router/ :
Menu - Support - Fw update - Update now
Result OK:
"Internet connection is unstable, contact your Internet service provider" ;)

If result = NOK, then Sorry, Steiner's fault :lol:
You do not have the required permissions to view the files attached to this post.

dpeddi
SamyGO Project Donor
Posts: 15
Joined: Thu Jan 30, 2014 2:30 pm

Re: Block updates on OpenWrt router

Post by dpeddi » Tue Sep 06, 2016 10:43 pm

not sure this is the right way.

try
ping samsungsucks.samsungotn.net

you should get 127.0.0.1

if you get something else try my method:

edit /etc/dnsmasq.conf

add to the end:

address=/msecnd.net/127.0.0.1
address=/samsungotn.net/127.0.0.1
address=/www.samsungotn.net/127.0.0.1
address=/test.samsungotn.net/127.0.0.1

reboot your router or restart dnsmasq

(credits https://forum.openwrt.org/viewtopic.php?id=26535)

Steiner
SamyGO Project Donor
Posts: 34
Joined: Sun Jul 17, 2016 12:11 pm
Location: Slovakia

Re: Block updates on OpenWrt router

Post by Steiner » Tue Sep 06, 2016 11:06 pm

S2-OK.JPG
You do not have the required permissions to view the files attached to this post.

dpeddi
SamyGO Project Donor
Posts: 15
Joined: Thu Jan 30, 2014 2:30 pm

Re: Block updates on OpenWrt router

Post by dpeddi » Wed Sep 14, 2016 10:04 pm

dpeddi wrote:not sure this is the right way.

try
ping samsungsucks.samsungotn.net

you should get 127.0.0.1

if you get something else try my method:

edit /etc/dnsmasq.conf

add to the end:

address=/msecnd.net/127.0.0.1
address=/samsungotn.net/127.0.0.1
address=/www.samsungotn.net/127.0.0.1
address=/test.samsungotn.net/127.0.0.1

reboot your router or restart dnsmasq

(credits https://forum.openwrt.org/viewtopic.php?id=26535)
forgot to say that you need to add

/etc/firewall.user /etc/fstab /etc/functions.sh
root@OpenWrt-wds1:~# cat /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.

iptables -t nat -I PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53
iptables -t nat -I PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53

User avatar
rakuri
SamyGO Project Donor
Posts: 36
Joined: Tue Dec 15, 2015 3:08 pm

Re: Block updates on OpenWrt router

Post by rakuri » Tue Oct 25, 2016 5:56 am

I make myself a host file years ago.

It works good. Im still on 1422 ;)

Post Reply

Return to “[J] Support”