-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: staylightblow8 <[email protected]>
- Loading branch information
Showing
8 changed files
with
85 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
sudo nft delete table inet fw4 | ||
|
||
sudo nft add table inet fw4 | ||
|
||
sudo nft add chain inet fw4 mangle_prerouting | ||
sudo nft add chain inet fw4 mangle_postrouting | ||
sudo nft add chain inet fw4 accept_to_wan | ||
sudo nft add chain inet fw4 dstnat |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
echo "#################" | ||
echo " add trusted iplist " | ||
./wdctlx add_trusted_iplist 192.168.1.2,192.168.1.3,192.168.1.4,192.168.1.5 | ||
./wdctlx status | ||
echo "add trusted iplist 192.1168.1.6" | ||
./wdctlx add_trusted_iplist 192.168.1.6 | ||
./wdctlx status | ||
echo "del trusted iplist 192.1168.1.6" | ||
./wdctlx del_trusted_iplist 192.168.1.6 | ||
./wdctlx status | ||
echo "del trusted iplist 192.1168.1.3,192.1168.1.5" | ||
./wdctlx del_trusted_iplist 192.168.1.3,192.168.1.5 | ||
./wdctlx status | ||
echo "clear trusted iplist" | ||
./wdctlx clear_trusted_iplist | ||
./wdctlx status | ||
|
||
echo "#################" | ||
echo " add trusted mac " | ||
./wdctlx add_trusted_mac aa:bb:cc:11:22:33,11:22:33:aa:bb:cc,22.22.22:aa:aa:aa,33:33:33:33:33:ab,44:44:44:44:44:44,55:55:55:55:55:55 | ||
./wdctlx show_trusted_mac | ||
echo "del trusted mac 11:22:33:aa:bb:cc" | ||
./wdctlx del_trusted_mac 11:22:33:aa:bb:cc | ||
./wdctlx show_trusted_mac | ||
echo "del trusted mac 55:55:55:55:55:55,33:33:33:33:33:ab" | ||
./wdctlx del_trusted_mac 55:55:55:55:55:55,33:33:33:33:33:ab | ||
./wdctlx show_trusted_mac | ||
echo "clear trusted mac" | ||
./wdctlx clear_trusted_mac | ||
./wdctlx show_trusted_mac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
echo "#################" | ||
echo " add_auth_client " | ||
./wdctlx add_auth_client "{\"ip\":\"192.168.1.212\",\"mac\":\"aa:bb:cc:dd:ee:1f\",\"name\":\"apfree2\"}" | ||
./wdctlx status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
echo "#################" | ||
echo " add roam client " | ||
./wdctlx add_online_client "{\"ip\":\"192.168.1.211\",\"mac\":\"aa:bb:cc:dd:ee:ff\",\"name\":\"apfree\"}" | ||
./wdctlx status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
echo "#################" | ||
echo " add trusted domains " | ||
./wdctlx add_trusted_domains captive.apple.com,www.baidu.com,www.qq.com,www.alibaba.com,aaa,bbb | ||
./wdctlx show_trusted_domains | ||
sleep 1 | ||
echo "del trusted domains aaa" | ||
./wdctlx del_trusted_domains aaa | ||
./wdctlx show_trusted_domains | ||
sleep 1 | ||
echo "del trusted domains www.baidu.com,www.qq.com" | ||
./wdctlx del_trusted_domains www.baidu.com,www.qq.com | ||
./wdctlx show_trusted_domains | ||
echo "clear trusted domains" | ||
sleep 1 | ||
./wdctlx clear_trusted_domains | ||
./wdctlx show_trusted_domains | ||
echo "#################" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
GatewayID ABCDEF112234 | ||
GatewayInterface ens256 | ||
|
||
AuthServer { | ||
Hostname 172.21.169.223 | ||
HTTPPort 8001 | ||
Path /wifidog/ | ||
} | ||
|
||
ClientTimeout 5 | ||
|