Skip to content
This repository has been archived by the owner. It is now read-only.

How should I configure my firewall? #19

Closed
insanity54 opened this issue Apr 28, 2015 · 10 comments
Closed

How should I configure my firewall? #19

insanity54 opened this issue Apr 28, 2015 · 10 comments
Labels

Comments

@insanity54
Copy link

insanity54 commented Apr 28, 2015

Foreword: I'm not actually in need of an answer, I'm just trying to help out by populating the FAQ from questions I see on freenode #ipfs

Q: Is there is anything I should know about firewall configuration to get ipfs running?
A: The best thing for your firewall is to forward port 4001

@whyrusleeping
Copy link

whyrusleeping commented May 3, 2015

Port 4001 is what is known as the "swarm address", this is configurable in your .ipfs/config file.

@dylanPowers
Copy link

dylanPowers commented May 4, 2015

An alternative answer is to make sure UPnP is running correctly on your router, then the port forwarding will be correctly configured automatically.

@ThomasWaldmann
Copy link

ThomasWaldmann commented Jul 4, 2015

@dylanPowers having uPnP active is considered a security risk by many people. So while it is "plug and play" (and thus easier / more comfortable), malware could use it to open additional ports for itself (or maybe reconfigure your router otherwise).

@cryptix
Copy link

cryptix commented Jul 4, 2015

I'm with Thomas on this one, there were also cases of plastic home routers answering upnp requests on the outside WAN (netgear for instance IIRC). If we advise to do this we need a big warning sign, imho.

@David-Leudolph
Copy link

David-Leudolph commented Feb 9, 2016

Please let me ask a newbie question: Which protocol do we need to allow in our firewall/NAT configurations for the port 4001? TCP, UDP or both?

@insanity54
Copy link
Author

insanity54 commented Feb 9, 2016

@David-Leudolph Just TCP I believe. That's how I have mine configured, and the outside world can access the files I have added to IPFS.

@mitar
Copy link

mitar commented Mar 28, 2016

But if upnp is supported, then mentioning this should be in FAQ.

@pyhedgehog
Copy link

pyhedgehog commented Nov 14, 2016

How should it be configured if I have several ipfs nodes behind same firewall?

@xloem
Copy link

xloem commented Jan 8, 2017

@pyhedgehog you should edit your .ipfs/config file for each node to give it a different swarm port from the others, and forward that port to that box in your firewall.

@madavieb
Copy link

madavieb commented May 23, 2017

This issue has been moved to https://discuss.ipfs.io/t/how-should-i-configure-my-firewall/471.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests