Server link blocks: Difference between revisions

From pisswiki
m (Slight clarification to notes.)
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
= Notes About Hub Servers =
= Notes About Hub Servers =


* You are -not- required to connect to a hub in order to link to Pissnet. Hubs came about as a way to minimize issues that came with deep/long link paths (latency, squit bouncebacks) during the network's infancy and remained for convenience.  
* You are '''-not-''' required to connect to a hub in order to link to Pissnet. Hubs came about as a way to minimize issues that came with deep/long link paths (latency, squit bouncebacks) during the network's infancy and remained for convenience. Those who volunteered their servers as hubs agreed to keep them active and on paid/reliable hosts.


* Generally, if you're unsure on what to do, you should choose 2 or 3 hubs that are closest to you and set those to autoconnect.
* The hub geo-closest to yours is probably the best to connect to. Ping the hubs and choose 2 or 3 hubs that have the lowest ping and set those to autoconnect.


* It is highly recommended that, if you only have one hub or leaf that you autoconnect to, that you add AT LEAST ONE ADDITIONAL hub to your config (but not set to autoconnect) as a backup. This is so that you can be manually connected to/rerouted to a stable connection if your link drops and/or your server starts flapping.
* '''eu-west.hub''' , '''irc.shitposting.space''' and '''nsa.packetscanner.net''' are generally the most 'central' hubs, meaning that connecting to these will likely give you the shortest number of hops to other connected servers.


* Openpiss is listed here, but in order to add the linkblock you will have to visit the server's wiki entry. It is generally an experimental (update testing) hub.
* It is highly recommended that, if you only have one hub or leaf that you prefer to autoconnect with, that you add AT LEAST one additional hub to your config (but not set to autoconnect) as a backup. This is so that you can be manually connected to/rerouted to a stable connection if your link drops and/or the server you primarily connect to starts flapping.


= Instructions =
* Openpiss is listed here but is not flagged as a hub in the wiki. In order to add the linkblock you will have to visit the server's wiki entry. It is an experimental (update testing) hub.
 
To connect your server to Pissnet, add your server to the [[Great big-ass server list of doom]] (it will automatically add your link block to this page), and msg the oper(s) you're linking to and ask them to sync their config.
 
Want to be part of the <code>irc.letspiss.net</code> round-robin DNS entry? Take a look at [[Round_Robin]].
 
Cloak keys for your conf below:
<pre>
  /* Pissnet uses "cloak_md5" module. */
set {
  cloak-keys {
    "d86PVocPMhCm8YcLs46Yb8FiCF1wC50x1VvutFBviIAitqb0g034M";
    "Qh3262E4uJOM2Aj210EC2gawF5llEA65mRK3cSctNOv4p610AJhX067KY5Xg";
    "240TUBv13ce2ANwm2cki1Rj80p8OAdqR64HWeDh8h38kTQkEWRXJ7";
  }
}
</pre>
 
'''NOTE: IF YOU ARE NOT A HUB, MAKE SURE TO EDIT YOUR SERVERS CLASS AS FOLLOWS, SO YOU DO NOT CONNECT TO MORE THAN ONE HUB AT A TIME: '''
  /* Server class with good defaults */
  class servers
  {
          pingfreq 60;
          connfreq 15; /* try to connect every 15 seconds */
          '''maxclients 1;''' /* max servers */
          sendq 20M;
  }
 
You connect to someone else's server by adding their linkblock from the list below to your unrealircd.conf file.
 
* Every server you add must also add your linkblock to their conf for the link to work.
* To make your default server autoconnect, modify the line like this:  <code>options { tls; autoconnect; }</code>
** '''DO NOT just add linkblocks and set them all to autoconnect unless you want to be blamed for spam.''' Hubs add new linkblocks from the wiki, so this is not an issue, however, other leaves may require that you ask the oper to add your block before your autoconnect will result in a link. To avoid spam, wait until the link is reciprocal before you set them to autoconnect.
* Try pinging hubs before adding them and sort them in your list by which ones have lower ping.
* Generally, the hub geo-closest to yours is probably the best to connect to.
 
== Suggested leaf setup ==
 
If you're running a leaf server and you're not interested in autoconnecting to everything under the sun (see the bold text in the previous section) you might be interested in these instructions:
 
# Create a separate <code>hubs</code> class with <code>maxclients</code> set to 1.
# Add all the hubs from further down the page to your config. Make sure their <code>link</code> blocks use the <code>hubs</code> class.
# Enable autoconnect for '''two''' hubs that are geographically close to you by adding <code>autoconnect;</code> to the <code>options { tls; }</code> block.
# Profit.
 
A <code>hubs</code> <code>class</code> block would look like this:
 
  class hubs {     
        pingfreq 60;
        connfreq 60;
        '''maxclients 1;'''
        sendq 20M;
  }
 
An '''autoconnect''' hub <code>link</code> block would look like this:
 
  link fake.piss.hub {
      incoming {
          mask *;
      }
      outgoing {
          hostname fake.piss.hub;
          port 6900;
          options { tls; autoconnect; }
      }
      password "awesome.base64.fingerprint" { spkifp; }
      '''class hubs;'''
  }
 
== Suggested server setup ==
 
UnrealIRCd by default does not send a fake quit/join for "Changing host" when a ip/spoof/cloak/vhost/whatever is changed. This can be an issue for some clients and bots. This setting will only send the fake quit/join to clients on your server that do not support CHGHOST. This setting will not override CHGHOST. NOTE: UnrealIRCd uses PART instead of QUIT.
 
<pre>
/* Server specific configuration */
set {
    allow-userhost-change force-rejoin;
}
</pre>
 
= Link blocks API =
 
There's an HTTP API to automatically grab the link blocks for servers on the wiki. See https://api.shitposting.space/docs for the API documentation.


= Hub Servers =
= Hub Servers =
Line 143: Line 61:
* There is no need to cut and paste the entire list of leaves into your conf.
* There is no need to cut and paste the entire list of leaves into your conf.


* This is more for people who are going to link you to find your info and for us to keep track of server configurations.
** However, if you want to (more easily) copy all of the active non-hub linkblocks into your conf, you can just cut and paste from here: https://api.shitposting.space/link/leaves
 
* The organized list below is more for people who are going to link you to find your info and for us to keep track of server configurations.


* You will be added automatically to this link when you create a server page using [[Form:Server|the form]].
* You will be added automatically to this list here (and the api document) when you create a server page using [[Form:Server|the form]].


<!-- Do not touch :( -->
<!-- Do not touch :( -->

Latest revision as of 07:47, 13 April 2024


Notes About Hub Servers

  • You are -not- required to connect to a hub in order to link to Pissnet. Hubs came about as a way to minimize issues that came with deep/long link paths (latency, squit bouncebacks) during the network's infancy and remained for convenience. Those who volunteered their servers as hubs agreed to keep them active and on paid/reliable hosts.
  • The hub geo-closest to yours is probably the best to connect to. Ping the hubs and choose 2 or 3 hubs that have the lowest ping and set those to autoconnect.
  • eu-west.hub , irc.shitposting.space and nsa.packetscanner.net are generally the most 'central' hubs, meaning that connecting to these will likely give you the shortest number of hops to other connected servers.
  • It is highly recommended that, if you only have one hub or leaf that you prefer to autoconnect with, that you add AT LEAST one additional hub to your config (but not set to autoconnect) as a backup. This is so that you can be manually connected to/rerouted to a stable connection if your link drops and/or the server you primarily connect to starts flapping.
  • Openpiss is listed here but is not flagged as a hub in the wiki. In order to add the linkblock you will have to visit the server's wiki entry. It is an experimental (update testing) hub.

Hub Servers

There are several servers acting primarily/exclusively as a hub:

Europe

The Americas

APAC

Experimental

  • irc.openpiss.net (Roadkill) - San Jose, USA (Update testing hub. You will need to manually add this server's linkblock if you wish to connect.)

Hub link blocks

// ChanFix (monique, jess, Ariadne, bs, Polsaker, Mismagius,  Revelator, and gerard have SSH access)
// Location: Vitry, France
// SID: 033
link eu-west.hub {
    incoming {
        mask *;
    }
outgoing {
hostname 212.129.35.122;
port 6900;
options { tls; }
    } password "Z1thuMHZzL8gZnQnmHq0LQbSK3YhVznSHIGeRZfStp0=" { spkifp; } class hubs; } // chmod // Location: Finland // SID: 1CH link irc.semisol.dev { incoming { mask *; }
outgoing {
hostname irc.semisol.dev;
port 6900;
options { tls; }
    } password "PNP2RUEiqSITb74WeHcyuYCY310ibZ7j6U9BE6q1Zgg=" { spkifp; } class hubs; } // Polsaker // Location: Chicago, Illinois, USA // SID: 69A link irc.shitposting.space { incoming { mask *; }
outgoing {
hostname irc.shitposting.space;
port 6900;
options { tls; }
    } password "UMKwXrH4ji00hK9Esr4RbeASF1LkXqpgOW08hfaq4kQ=" { spkifp; } class hubs; } // bs (Roadkill also has access to update/add blocks.) // Location: London, UK // SID: 069 link irc.sigint.pw { incoming { mask *; }
outgoing {
hostname irc.sigint.pw;
port 6900;
options { tls; }
    } password "D2SDfs1otGZb8DcZzvqi59PzS1UeFCH3CqurNCItB9g=" { spkifp; } class hubs; } // Roadkill // Location: Langley, Virginia, USA // SID: 4MG link nsa.packetscanner.net { incoming { mask *; }
outgoing {
hostname 150.136.110.77;
port 6900;
options { tls; }
    } password "ugt/q8N9TCgXx63rJeLt3EbBoSKhElPZur09fTuvQgU=" { spkifp; } class hubs; } // craftxbox // Location: St Johns, Newfoundland, Canada // SID: 0WU link piss.crxb.cc { incoming { mask *; }
outgoing {
hostname piss.crxb.cc;
port 6900;
options { tls; }
    } password "921zerZtZtGD3Qwqx6zIoicCgali2VY7wlG002xoW8E=" { spkifp; } class hubs; } // Roadkill // Location: San Jose, USA // SID: 1MG link uswest.sprynet.org { incoming { mask *; }
outgoing {
hostname 129.159.41.62;
port 6900;
options { tls; }
    } password "gEn9K1FuVC8J0fCyg/9wKSSVHz9Jo387JUtLo6fytJ4=" { spkifp; } class hubs; }

Non-hubs/Regular server link blocks

  • There is no need to cut and paste the entire list of leaves into your conf.
  • The organized list below is more for people who are going to link you to find your info and for us to keep track of server configurations.
  • You will be added automatically to this list here (and the api document) when you create a server page using the form.

The Americas

This section is collapsed by default. Click Expand on the right hand side to view.

Europe

This section is collapsed by default. Click Expand on the right hand side to view.

APAC

This section is collapsed by default. Click Expand on the right hand side to view.

Africa

This section is collapsed by default. Click Expand on the right hand side to view.