File tree Expand file tree Collapse file tree 3 files changed +27
-26
lines changed
Expand file tree Collapse file tree 3 files changed +27
-26
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ def main() -> None: #-> Flask:
9696 @app .get ("/" )
9797 def root () -> str :
9898 ret_str = '<html><body>Welcome to bastelbaus cloudflared-s2s!<br>Link to a list of access points: <a href="/api/html">api</a></body></html>\n '
99+ print ("DEBUG HERE" )
99100 return ret_str
100101
101102 def get_api_list () -> list :
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ echo "---------------------------------------------"
6969echo " allowing route to local host by routing "
7070echo " all traffic from inside to outside trough "
7171echo " the default interface and not the macvlan "
72- # ip route del ${SUBNET}
72+ ip route del ${SUBNET}
7373
7474# old
7575# localip=$(hostname -i | cut -f1 -d' ')
Original file line number Diff line number Diff line change 1- #!/usr/sbin/nft -f
2-
3- define google_dns = 8.8.8.8
4-
5- add table monitoring
6- delete table monitoring
7- add table routing
8- delete table routing
9-
10- table netdev monitoring {
11- chain trace_chain {
12- # type filter hook prerouting priority -301;
13- type filter hook ingress device eth0 priority 0;
14- ip protocol icmp meta nftrace set 1
15- }
16- }
17-
18- table ip routing {
19- chain forward {
20- type filter hook prerouting priority -1;
21- ip protocol icmp accept
22- }
23- }
24-
25- list ruleset
1+ #!/usr/sbin/nft -f
2+
3+ define google_dns = 8.8.8.8
4+
5+ add table monitoring
6+ delete table monitoring
7+ add table routing
8+ delete table routing
9+
10+ table netdev monitoring {
11+ chain trace_chain {
12+ # type filter hook prerouting priority -301;
13+ type filter hook ingress device eth0 priority 0;
14+ ip protocol icmp meta nftrace set 1
15+ }
16+ }
17+
18+ table ip routing {
19+ chain forward {
20+ type filter hook prerouting priority -1;
21+ ip protocol icmp accept
22+ }
23+ }
24+
25+ list ruleset
You can’t perform that action at this time.
0 commit comments