mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Allow ping from anywhere by default
This commit is contained in:
parent
f1274463b5
commit
10eef8eb74
1 changed files with 16 additions and 0 deletions
16
openmptcprouter/files/etc/uci-defaults/1980-omr-firewall
Executable file
16
openmptcprouter/files/etc/uci-defaults/1980-omr-firewall
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add firewall rule
|
||||
firewall.@rule[-1].enabled='1'
|
||||
firewall.@rule[-1].target='ACCEPT'
|
||||
firewall.@rule[-1].name='Allow-All-Ping'
|
||||
firewall.@rule[-1].proto='icmp'
|
||||
firewall.@rule[-1].dest='*'
|
||||
firewall.@rule[-1].src='*'
|
||||
firewall.@rule[-1].icmp_type='echo-request'
|
||||
commit firewall
|
||||
EOF
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue