[tahoe-dev] how to manage which port your grid uses (was: #536: port number conflict: 8123 is blocked by TorButton)

zooko zooko at zooko.com
Wed Dec 3 05:19:03 PST 2008


I just changed the tahoe test grid [1] to listen on port 3567 instead  
of 8123.  3567 is not the default port number in the current trunk  
(that's currently 3456).  That's intentional -- having different  
grids using the same port number only leads to confusion.

I left a port-forward in place so that people who have bookmarks  
pointing at http://testgrid.allmydata.org:8123 will still reach the  
testgrid.

Here's how I did it.

Step 1: set up port forwarding.

I learned this from http://www.debian-administration.org/articles/601

* sudo apt-get install rinetd

* Add the following rule to /etc/rinetd.conf:

# bindaddress	bindport	connectaddress	connectport
0	8123	127.0.0.1	3567

* sudo /etc/init.d/rinetd restart


Step 2: change the port number the gateway is listening on:

Edit .tahoe/webport (in newer versions of tahoe it may be .tahoe/ 
tahoe.cfg instead -- see [2]) and change "8123" to "3567".

tahoe restart


Step 3: go around and update links to point to http:// 
testgrid.allmydata.org:3567 instead of http://testgrid.allmydata.org: 
8123 .


Allmydata.com might want to use a similar technique to *prevent* the  
port number from changing, by putting a rule in rinetd.conf that says  
port 3456 (which is the default in current Tahoe trunk) is forwarded  
to 8123 (which is the default in Tahoe-1.2.0 and is what all the  
allmydata.com servers use), or by editing the .tahoe/webport  
or .tahoe/tahoe.cfg file to specify that the server should listen on  
port 8123.


Regards,

Zooko

[1] http://allmydata.org/trac/tahoe/wiki/TestGrid
[2] http://allmydata.org/trac/tahoe/browser/docs/configuration.txt


More information about the tahoe-dev mailing list