Skip to content

Commit f91a17f

Browse files
committed
x
1 parent 50a1073 commit f91a17f

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

app/backend/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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:

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ echo "---------------------------------------------"
6969
echo "allowing route to local host by routing "
7070
echo " all traffic from inside to outside trough "
7171
echo " 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' ')

rule_for_gw.nft

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
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

0 commit comments

Comments
 (0)