From 65e174a0732f3291d3384c963d2e59a22fe313ad Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 21 Apr 2018 09:05:48 -0700 Subject: [PATCH] =?UTF-8?q?Add=20IPFS=20macros=20from=20R=C4=83zvan=20Sand?= =?UTF-8?q?u=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tom Eastep --- Shorewall/Macros/IPFS-swarm | 9 +++++++++ Shorewall/Macros/macro.IPFS-API | 9 +++++++++ Shorewall/Macros/macro.IPFS-gateway | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 Shorewall/Macros/IPFS-swarm create mode 100644 Shorewall/Macros/macro.IPFS-API create mode 100644 Shorewall/Macros/macro.IPFS-gateway diff --git a/Shorewall/Macros/IPFS-swarm b/Shorewall/Macros/IPFS-swarm new file mode 100644 index 000000000..1256b3152 --- /dev/null +++ b/Shorewall/Macros/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 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