13
submitted 6 days ago* (last edited 6 days ago) by hetzlemmingsworld@lemmings.world to c/i2p@lemmy.world

/etc/i2pd/i2pd.conf contains number of listening ports configuration (actually 10 or more when you look for "port"). Which ones should I open in firewall so other people can connect my node? Excluding ones that are meant for management of my node. I manage the node only locally.

So far I have only open/forwarded one port, one that is set a few lines below the line "## Port to listen for connections" that certainly allows relaying traffic for other I2P peers per the http://127.0.0.1:7070/ traffic stats.

Services HTTP Proxy	Enabled
SOCKS Proxy	Enabled
BOB	Disabled
SAM	Enabled
I2CP	Enabled
I2PControl	Disabled
top 8 comments
sorted by: hot top controversial new old
[-] 12510198 4 points 5 days ago

That one thats labled "Port to listen for connections" is the only one you need to forward, uncomment it and set it to a random number between 1025-65535, then just port forward the port you chose, and restart, and you should be good to go. If everything is working, you should see "Network Status: OK" in your webconsole. Also dont tell anyone the port you chose, it can be used to single out your router

[-] cecilkorik@lemmy.ca 2 points 6 days ago* (last edited 6 days ago)

None are required, and it's intentionally randomized and supposed to be handled through uPnP. That said, as far as I know it's only listed on your router's Config -> Network page. None of the ports actually listed in i2pd.conf are the ones you need, although if you need to make it fixed and manually specify a port, look for the one that says it is "randomized by default" and uncomment it to put your own randomly chosen port there. Do not use the default port from the config, it's intentionally supposed to be unpredictable.

[-] toothbrush 2 points 6 days ago

i2p selects a random UDP+TCP port on first start that you have to open, the rest are usually only for internal use.

I have never used i2pd, but I think i2pd port should print which port it expects to be open. Alternatively you can set it yourself with i2pd port (your port)

[-] possiblylinux127@lemmy.zip 1 points 6 days ago

There is no requirement forward any ports

[-] hetzlemmingsworld@lemmings.world 1 points 5 days ago* (last edited 5 days ago)

"Set a port and forward it to your i2pd instance in your router or (if available) use UPnP" https://github.com/PurpleI2P/i2pd/issues/1694 "If a static IP address is available, you need to either forward the port on your router or enable UPnP on it. i2pd supports UPnP and can open the port when the program starts." https://github.com/PurpleI2P/i2pd/issues/1650 (machine translated, member of a PurpleI2P)

If UPnP is enabled on router and he is firewalled (I2P reports that), then IMO he should try forwarding that port traffic on the router to his LAN IP. But I have not and seen no proof that would show if firewalled and non firewalled makes any difference in I2P. In bittorrent it makes significant difference, it allows peers behind NAT to interconnect and bittorrent is using at least one technique to workaround peer connections behind NAT (but can still fail to establish connections between two passive/firewalled peers).

[-] possiblylinux127@lemmy.zip 1 points 5 days ago

Port forwarding does help. The problem is that you have forward the right ports. If you don't don't know what you are doing it is easy to accidentally forward the management interface which is a major security risk.

Honesty port forwarding is only really needed because of NAT. If you can get native IPv6 is way better

[-] sp3ctre@feddit.org 1 points 6 days ago* (last edited 6 days ago)

I didn't open any ports in my home router and connections are working good. It also says "firewalled" in my webconsole. Not sure, what the benefits are with opening ports.

My assumption is that forwarding port allows peers (other I2P users) to connect you even they are behind the firewall. Two firewalled peers can not connect in a bittorrent, but I2P is not bittorrent.. But when it warns you about being "firewalled" it suggests some negative impact to me and suggests there may be similar connectivity issue like with bittorrent. Ports needs to be forwarded on router device (if applicable) or DMZ(if you are able to lock down your connectivity using your computer firewall - DENY/block policy by default and whitelist only listening ports of I2P, torrent client and similar), on VPN server, and opened in your firewall (if applicable).

this post was submitted on 08 Apr 2026
13 points (100.0% liked)

The Invisible Internet Project

1926 readers
9 users here now

I2P Community Edition

This isn't the official I2P channel, if you want go there then you can find it in the links below.

Rules

"Don't be a dick" - Wil Wheaton

General

Media:

File Hosting and Pastebins

Torrents

Social Networks and Microblogging

Exploring I2P

I2P Name Registries

Search engines

IRC

Irc2P comes pre-configured with I2P. To connect with other networks, please follow this tutorial.

Syndie

An open source system for operating distributed forums in anonymous networks

Inproxies

You can use inproxies to surf the I2P network without having to have an I2P router.

Follow us on Twitter

founded 2 years ago
MODERATORS