From 762df5e18cf606564e149c9cc71cd2412d3723de Mon Sep 17 00:00:00 2001 From: Vincas Dargis Date: Sat, 7 Sep 2019 16:36:42 +0300 Subject: [PATCH] Add macros for Bitcoin's Testnet and Regtest Add additional macros for Bitcoin daemon running in Testnet and Regtest modes. --- Shorewall/Macros/macro.BitcoinRegtest | 8 ++++++++ Shorewall/Macros/macro.BitcoinTestnet | 8 ++++++++ Shorewall/Macros/macro.BitcoinTestnetRPC | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100644 Shorewall/Macros/macro.BitcoinRegtest create mode 100644 Shorewall/Macros/macro.BitcoinTestnet create mode 100644 Shorewall/Macros/macro.BitcoinTestnetRPC diff --git a/Shorewall/Macros/macro.BitcoinRegtest b/Shorewall/Macros/macro.BitcoinRegtest new file mode 100644 index 000000000..e7d13afa3 --- /dev/null +++ b/Shorewall/Macros/macro.BitcoinRegtest @@ -0,0 +1,8 @@ +# +# Shorewall --/usr/share/shorewall/macro.BitcoinRegtest +# +# Macro for handling Bitcoin P2P traffic (Regtest mode) +# +############################################################################################################################################################## +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH HELPER +PARAM - - tcp 18444 diff --git a/Shorewall/Macros/macro.BitcoinTestnet b/Shorewall/Macros/macro.BitcoinTestnet new file mode 100644 index 000000000..e1746b427 --- /dev/null +++ b/Shorewall/Macros/macro.BitcoinTestnet @@ -0,0 +1,8 @@ +# +# Shorewall --/usr/share/shorewall/macro.BitcoinTestnet +# +# Macro for handling Bitcoin P2P traffic (Testnet mode) +# +############################################################################################################################################################## +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH HELPER +PARAM - - tcp 18333 diff --git a/Shorewall/Macros/macro.BitcoinTestnetRPC b/Shorewall/Macros/macro.BitcoinTestnetRPC new file mode 100644 index 000000000..64f5b3ba4 --- /dev/null +++ b/Shorewall/Macros/macro.BitcoinTestnetRPC @@ -0,0 +1,8 @@ +# +# Shorewall --/usr/share/shorewall/macro.BitcoinTestnetRPC +# +# Macro for handling Bitcoin RPC traffic (Testnet and Regtest mode) +# +############################################################################################################################################################## +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH HELPER +PARAM - - tcp 18332