extras provision stage2
This commit is contained in:
@@ -311,6 +311,19 @@ uci set network.@rule[-1].name='mark0x1'
|
||||
uci set network.@rule[-1].mark='0x1'
|
||||
uci set network.@rule[-1].priority='100'
|
||||
uci set network.@rule[-1].lookup='vpn'
|
||||
uci add firewall ipset
|
||||
uci set firewall.@ipset[-1].name='vpn_domains'
|
||||
uci set firewall.@ipset[-1].match='dst_net'
|
||||
uci add firewall rule
|
||||
uci set firewall.@rule[-1]=rule
|
||||
uci set firewall.@rule[-1].name='mark_domains'
|
||||
uci set firewall.@rule[-1].src='lan'
|
||||
uci set firewall.@rule[-1].dest='*'
|
||||
uci set firewall.@rule[-1].proto='all'
|
||||
uci set firewall.@rule[-1].ipset='vpn_domains'
|
||||
uci set firewall.@rule[-1].set_mark='0x1'
|
||||
uci set firewall.@rule[-1].target='MARK'
|
||||
uci set firewall.@rule[-1].family='ipv4'
|
||||
|
||||
# ADD REDIRECT
|
||||
uci add firewall redirect
|
||||
|
||||
Reference in New Issue
Block a user