From 85e44c70ebc01fba41600ecf81c886f4cca6ec97 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 17 Sep 2015 09:16:33 -0700 Subject: [PATCH] Add the Meta-connection to Tinc - Both the macro and the tunnel type are updated Signed-off-by: Tom Eastep --- Shorewall/Macros/macro.Tinc | 1 + Shorewall/Perl/Shorewall/Tunnels.pm | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Shorewall/Macros/macro.Tinc b/Shorewall/Macros/macro.Tinc index a64f645cc..a6f686f2e 100644 --- a/Shorewall/Macros/macro.Tinc +++ b/Shorewall/Macros/macro.Tinc @@ -9,3 +9,4 @@ #ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/ # PORT(S) PORT(S) LIMIT GROUP PARAM - - udp 655 +PARAM - - tcp 655 diff --git a/Shorewall/Perl/Shorewall/Tunnels.pm b/Shorewall/Perl/Shorewall/Tunnels.pm index 843164018..a8e9178f1 100644 --- a/Shorewall/Perl/Shorewall/Tunnels.pm +++ b/Shorewall/Perl/Shorewall/Tunnels.pm @@ -137,6 +137,8 @@ sub setup_tunnels() { add_tunnel_rule $inchainref, p => 'udp --dport 655', @$source; add_tunnel_rule $outchainref, p => 'udp --dport 655', @$dest; + add_tunnel_rule $inchainref, p => 'tcp --dport 655', @$source; + add_tunnel_rule $outchainref, p => 'tcp --dport 655', @$dest; } sub setup_one_openvpn {