ok, zmieniłem, jednak teraz wogule internetu nie mam
root@TP-Link:/etc$ cat 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 -F prerouting_blokada 2>/dev/null || ( \
iptables -t nat -N prerouting_blokada; \
iptables -t nat -I PREROUTING -i br-lan -j prerouting_blokada; \
)
IP=$(uci get network.lan.ipaddr)
iptables -t nat -A prerouting_blokada ! -d $IP/32 -p tcp -j DNAT --to $IP:80
Po wpisaniu np wp.pl zamiast strony pojawia się:
Index of /
../
modified: Thu, 01 Jan 1970 14:17:21 GMT
directory - 4.00 kbyte
data/
modified: Sat, 28 Jul 2012 08:01:35 GMT
directory - 0.08 kbyte
js/
modified: Sat, 28 Jul 2012 08:01:47 GMT
directory - 0.60 kbyte
templates/
modified: Sat, 28 Jul 2012 08:01:47 GMT
directory - 0.26 kbyte
themes/
modified: Sat, 28 Jul 2012 08:01:48 GMT
directory - 0.12 kbyte
utility/
modified: Mon, 01 Jan 2001 00:03:22 GMT
directory - 4.00 kbyte
about.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 5.09 kbyte
access.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 6.01 kbyte
backup.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 2.55 kbyte
bandwidth.csv
modified: Mon, 18 Jun 2012 19:33:21 GMT
application/octet-stream - 0.86 kbyte
bandwidth.sh
modified: Sun, 26 Feb 2012 20:45:08 GMT
application/x-shellscript - 6.30 kbyte
bandwidth.svg
modified: Wed, 26 Oct 2011 06:03:35 GMT
image/svg+xml - 22.03 kbyte
bandwidth_distribution.sh
modified: Mon, 27 Feb 2012 06:16:48 GMT
application/x-shellscript - 2.81 kbyte
bandwidth_expand.sh
modified: Wed, 26 Oct 2011 05:38:47 GMT
application/x-shellscript - 0.99 kbyte
basic.sh
modified: Sun, 01 Jul 2012 18:37:12 GMT
application/x-shellscript - 36.77 kbyte
basic_edit_mac.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 1.86 kbyte
connlimits.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 2.84 kbyte
conntrack.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 2.52 kbyte
ddns.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 4.17 kbyte
ddns_edit_service.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 2.67 kbyte
dhcp.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 4.81 kbyte
dump_backup_tarball.sh
modified: Wed, 26 Oct 2011 05:38:47 GMT
application/x-shellscript - 0.77 kbyte
firstboot.sh
modified: Mon, 16 Apr 2012 14:19:08 GMT
application/x-shellscript - 2.43 kbyte
ftp.sh
modified: Sat, 31 Mar 2012 06:35:16 GMT
application/x-shellscript - 3.31 kbyte
ftp_edit_user.sh
modified: Tue, 27 Mar 2012 15:06:14 GMT
application/x-shellscript - 0.89 kbyte
hosts.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 2.02 kbyte
identification.sh
modified: Tue, 24 Jul 2012 13:42:58 GMT
application/x-shellscript - 1.97 kbyte
initd.sh
modified: Wed, 11 Jul 2012 21:16:36 GMT
application/x-shellscript - 1.97 kbyte
login.sh
modified: Wed, 29 Feb 2012 18:44:37 GMT
application/x-shellscript - 3.67 kbyte
logout.sh
modified: Wed, 26 Oct 2011 05:38:47 GMT
application/x-shellscript - 0.53 kbyte
multi_forward_edit.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 0.90 kbyte
multi_pie.svg
modified: Wed, 26 Oct 2011 05:38:47 GMT
image/svg+xml - 18.45 kbyte
no_ajax.sh
modified: Thu, 09 Feb 2012 08:37:23 GMT
application/x-shellscript - 0.76 kbyte
overview.sh
modified: Wed, 04 Jul 2012 15:21:29 GMT
application/x-shellscript - 8.17 kbyte
password_confirm.sh
modified: Mon, 06 Feb 2012 22:18:19 GMT
application/x-shellscript - 1.06 kbyte
pie.svg
modified: Wed, 26 Oct 2011 05:38:47 GMT
image/svg+xml - 9.99 kbyte
plugins.sh
modified: Sat, 10 Dec 2011 06:44:56 GMT
application/x-shellscript - 2.06 kbyte
port_forwarding.sh
modified: Mon, 09 Apr 2012 17:33:03 GMT
application/x-shellscript - 5.82 kbyte
printers.sh
modified: Thu, 03 Nov 2011 17:31:12 GMT
application/x-shellscript - 1.71 kbyte
qos_distribution.sh
modified: Mon, 27 Feb 2012 06:16:48 GMT
application/x-shellscript - 2.71 kbyte
qos_download.sh
modified: Tue, 05 Jun 2012 08:03:14 GMT
application/x-shellscript - 19.91 kbyte
qos_edit_class.sh
modified: Thu, 09 Feb 2012 10:26:17 GMT
application/x-shellscript - 3.44 kbyte
qos_edit_rule.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 4.39 kbyte
qos_upload.sh
modified: Wed, 29 Feb 2012 18:55:24 GMT
application/x-shellscript - 12.23 kbyte
quota_usage.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 1.19 kbyte
quotas.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 2.21 kbyte
quotas_edit.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 1.06 kbyte
reboot.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 3.55 kbyte
restriction.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 3.00 kbyte
restriction_edit_rule.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 1.09 kbyte
routing.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 2.83 kbyte
single_forward_edit.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 0.90 kbyte
static_ip_edit.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 0.88 kbyte
static_route_edit.sh
modified: Wed, 26 Oct 2011 06:03:35 GMT
application/x-shellscript - 0.88 kbyte
themes.sh
modified: Wed, 26 Oct 2011 06:03:36 GMT
application/x-shellscript - 1.31 kbyte
time.sh
modified: Mon, 25 Jun 2012 12:48:36 GMT
application/x-shellscript - 4.09 kbyte
update.sh
modified: Thu, 09 Feb 2012 09:51:08 GMT
application/x-shellscript - 3.27 kbyte
usb_storage.sh
modified: Tue, 01 May 2012 05:56:39 GMT
application/x-shellscript - 7.25 kbyte
usb_storage_edit.sh
modified: Sun, 29 Jan 2012 12:22:31 GMT
application/x-shellscript - 0.90 kbyte
webmon.sh
modified: Wed, 26 Oct 2011 06:03:36 GMT
application/x-shellscript - 4.47 kbyte
webmon_domains.csv
modified: Wed, 26 Oct 2011 05:38:47 GMT
application/octet-stream - 0.71 kbyte
webmon_searches.csv
modified: Wed, 26 Oct 2011 05:38:47 GMT
application/octet-stream - 0.71 kbyte
whitelist_edit_rule.sh
modified: Wed, 26 Oct 2011 06:03:36 GMT
application/x-shellscript - 1.08 kbyte
wol.sh
modified: Wed, 26 Oct 2011 05:38:47 GMT
application/x-shellscript - 1.56 kbyte