Skip to content

Commit 9095c05

Browse files
angtgregdel
authored andcommitted
overthebox: Accept all packets from our tunnel
Signed-off-by: Adrien Gallouët <[email protected]>
1 parent 51c3998 commit 9095c05

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

overthebox/files/bin/otb-action-configure

+9
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,18 @@ _setup_glorytun_mud() {
5151
set network.\(.dev).type=tunnel
5252
set network.\(.dev).multipath=off
5353
set network.\(.dev).generatedby='"$ME"'
54+
5455
del_list firewall.tun.network=\(.dev)
5556
add_list firewall.tun.network=\(.dev)
5657
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+
5766
set network.\(.dev)_rule=rule
5867
set network.\(.dev)_rule.lookup=\(.table)
5968
set network.\(.dev)_rule.priority=30000

overthebox/files/bin/otb-configure-glorytun

+9
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,18 @@ set network.tun0.txqueuelen=1000
4545
set network.tun0.type=tunnel
4646
set network.tun0.multipath=off
4747
set network.tun0.generatedby=$ME
48+
4849
del_list firewall.tun.network=tun0
4950
add_list firewall.tun.network=tun0
5051
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+
5160
set network.tun0_rule=rule
5261
set network.tun0_rule.lookup=100
5362
set network.tun0_rule.priority=30000

0 commit comments

Comments
 (0)