Commit 9095c05 1 parent 51c3998 commit 9095c05 Copy full SHA for 9095c05
File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,18 @@ _setup_glorytun_mud() {
51
51
set network.\(.dev).type=tunnel
52
52
set network.\(.dev).multipath=off
53
53
set network.\(.dev).generatedby=' " $ME " '
54
+
54
55
del_list firewall.tun.network=\(.dev)
55
56
add_list firewall.tun.network=\(.dev)
56
57
58
+ set firewall.accept_glorytun_wan=rule
59
+ set firewall.accept_glorytun_wan.name=accept_glorytun_wan
60
+ set firewall.accept_glorytun_wan.target=ACCEPT
61
+ set firewall.accept_glorytun_wan.src=wan
62
+ set firewall.accept_glorytun_wan.proto=udp
63
+ set firewall.accept_glorytun_wan.src_ip=\(.server)
64
+ set firewall.accept_glorytun_wan.src_port=\(.port)
65
+
57
66
set network.\(.dev)_rule=rule
58
67
set network.\(.dev)_rule.lookup=\(.table)
59
68
set network.\(.dev)_rule.priority=30000
Original file line number Diff line number Diff line change @@ -45,9 +45,18 @@ set network.tun0.txqueuelen=1000
45
45
set network.tun0.type=tunnel
46
46
set network.tun0.multipath=off
47
47
set network.tun0.generatedby=$ME
48
+
48
49
del_list firewall.tun.network=tun0
49
50
add_list firewall.tun.network=tun0
50
51
52
+ set firewall.accept_glorytun_wan=rule
53
+ set firewall.accept_glorytun_wan.name=accept_glorytun_wan
54
+ set firewall.accept_glorytun_wan.target=ACCEPT
55
+ set firewall.accept_glorytun_wan.src=wan
56
+ set firewall.accept_glorytun_wan.proto=udp
57
+ set firewall.accept_glorytun_wan.src_ip=$SERVER
58
+ set firewall.accept_glorytun_wan.src_port=${PORT:- $_PORT }
59
+
51
60
set network.tun0_rule=rule
52
61
set network.tun0_rule.lookup=100
53
62
set network.tun0_rule.priority=30000
You can’t perform that action at this time.
0 commit comments