From 9c950082f62852be060e10989c253417cac68ca0 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 4 May 2018 08:45:39 -0700 Subject: [PATCH] Add new IPFS macros Signed-off-by: Tom Eastep --- Shorewall/Macros/macro.IPFS-API | 9 +++++++++ Shorewall/Macros/macro.IPFS-gateway | 9 +++++++++ Shorewall/Macros/macro.IPFS-swarm | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 Shorewall/Macros/macro.IPFS-API create mode 100644 Shorewall/Macros/macro.IPFS-gateway create mode 100644 Shorewall/Macros/macro.IPFS-swarm diff --git a/Shorewall/Macros/macro.IPFS-API b/Shorewall/Macros/macro.IPFS-API new file mode 100644 index 000000000..63b02db16 --- /dev/null +++ b/Shorewall/Macros/macro.IPFS-API @@ -0,0 +1,9 @@ +# +# Shorewall -- /usr/share/shorewall/macro.IPFS-API +# +# This macro handles IPFS API port (commands for the IPFS daemon). +# +############################################################################### +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER + +PARAM - - tcp 5001 diff --git a/Shorewall/Macros/macro.IPFS-gateway b/Shorewall/Macros/macro.IPFS-gateway new file mode 100644 index 000000000..1964613c1 --- /dev/null +++ b/Shorewall/Macros/macro.IPFS-gateway @@ -0,0 +1,9 @@ +# +# Shorewall -- /usr/share/shorewall/macro.IPFS-gateway +# +# This macro handles the IPFS gateway to HTTP. +# +############################################################################### +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER + +PARAM - - tcp 8080 diff --git a/Shorewall/Macros/macro.IPFS-swarm b/Shorewall/Macros/macro.IPFS-swarm new file mode 100644 index 000000000..1256b3152 --- /dev/null +++ b/Shorewall/Macros/macro.IPFS-swarm @@ -0,0 +1,9 @@ +# +# Shorewall -- /usr/share/shorewall/macro.IPFS-swarm +# +# This macro handles IPFS data traffic (the connection to IPFS swarm). +# +############################################################################### +#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER + +PARAM - - tcp 4001