From 9260be402b1557928c2117ba018fb487478c2168 Mon Sep 17 00:00:00 2001 From: Vincas Dargis Date: Sat, 15 Dec 2018 12:59:08 +0200 Subject: [PATCH] Add Tor macros Add macros for various Tor Anonimity Network ports --- Shorewall/Macros/macro.Tor | 8 ++++++++ Shorewall/Macros/macro.TorBrowserBundle | 8 ++++++++ Shorewall/Macros/macro.TorControl | 8 ++++++++ Shorewall/Macros/macro.TorDirectory | 8 ++++++++ Shorewall/Macros/macro.TorSocks | 8 ++++++++ 5 files changed, 40 insertions(+) create mode 100644 Shorewall/Macros/macro.Tor create mode 100644 Shorewall/Macros/macro.TorBrowserBundle create mode 100644 Shorewall/Macros/macro.TorControl create mode 100644 Shorewall/Macros/macro.TorDirectory create mode 100644 Shorewall/Macros/macro.TorSocks diff --git a/Shorewall/Macros/macro.Tor b/Shorewall/Macros/macro.Tor new file mode 100644 index 000000000..4ea002031 --- /dev/null +++ b/Shorewall/Macros/macro.Tor @@ -0,0 +1,8 @@ +# +# Shorewall --/usr/share/shorewall/macro.Tor +# +# Macro for handling Tor Onion Network traffic +# +############################################################################################################################################################## +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH HELPER +PARAM - - tcp 9001 diff --git a/Shorewall/Macros/macro.TorBrowserBundle b/Shorewall/Macros/macro.TorBrowserBundle new file mode 100644 index 000000000..80cc91b0a --- /dev/null +++ b/Shorewall/Macros/macro.TorBrowserBundle @@ -0,0 +1,8 @@ +# +# Shorewall --/usr/share/shorewall/macro.TorBrowserBundle +# +# Macro for handling Tor Onion Network traffic provided by Tor Browser Bundle +# +############################################################################################################################################################## +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH HELPER +PARAM - - tcp 9150 diff --git a/Shorewall/Macros/macro.TorControl b/Shorewall/Macros/macro.TorControl new file mode 100644 index 000000000..414160ac8 --- /dev/null +++ b/Shorewall/Macros/macro.TorControl @@ -0,0 +1,8 @@ +# +# Shorewall --/usr/share/shorewall/macro.TorControl +# +# Macro for handling Tor Controller Applications traffic +# +############################################################################################################################################################## +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH HELPER +PARAM - - tcp 9051 diff --git a/Shorewall/Macros/macro.TorDirectory b/Shorewall/Macros/macro.TorDirectory new file mode 100644 index 000000000..442fb6201 --- /dev/null +++ b/Shorewall/Macros/macro.TorDirectory @@ -0,0 +1,8 @@ +# +# Shorewall --/usr/share/shorewall/macro.TorDirectory +# +# Macro for handling Tor Directory traffic +# +############################################################################################################################################################## +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH HELPER +PARAM - - tcp 9030 diff --git a/Shorewall/Macros/macro.TorSocks b/Shorewall/Macros/macro.TorSocks new file mode 100644 index 000000000..522fe9709 --- /dev/null +++ b/Shorewall/Macros/macro.TorSocks @@ -0,0 +1,8 @@ +# +# Shorewall --/usr/share/shorewall/macro.TorSocks +# +# Macro for handling Tor Socks Proxy traffic +# +############################################################################################################################################################## +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH HELPER +PARAM - - tcp 9050