1. Create text file, like this:
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" !!!
5. Save & Apply
6. Reboot router.
Test:
PC connected to this router and with DNS set from this router with result NOT OK :
PC connected to this router and with DNS set from this router with result OK :
I will not because Explorer to switch to EN , 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
/very text file "hosts.block" is in zip file - please unpack /Block updates on OpenWrt router
Block updates on OpenWrt router
You do not have the required permissions to view the files attached to this post.
Re: Block updates on OpenWrt router
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)
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)
Re: Block updates on OpenWrt router
You do not have the required permissions to view the files attached to this post.
Re: Block updates on OpenWrt router
forgot to say that you need to adddpeddi 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)
/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
Re: Block updates on OpenWrt router
I make myself a host file years ago.
It works good. Im still on 1422
It works good. Im still on 1422