Author Topic: How To Setup A Litecoin Supernode  (Read 4265 times)

Offline Bossman

  • Hardcore Member
  • *****
  • Posts: 3002
  • In Coblee we trust
How To Setup A Litecoin Supernode
« on: November 24, 2014, 06:40:04 AM »
https://litecoin.org/downloads/HOWTO-SUPERNODE.txt

HOWTO SETUP A LITECOIN SUPERNODE
================================
This document is for sysadmins who want to contribute excess upstream bandwidth to
help strengthen the global Litecoin network.  If you do not understand these instructions
you probably don't want to be a supernode.  10mbit+ is recommended.

1. https://download.litecoin.org/litecoin-0.8.6.2
Download the latest version.  Verify the GPG signature.

2. https://litecoin.info/Bootstrap.dat
Sync faster with bootstrap.dat.

3. Edit litecoin.conf

# Run as background daemon
daemon=1
# Disable Wallet - if you are running only a relay without a wallet, this saves between 40 and 200MB RAM
disablewallet=1
# MaxConnections - if you have plenty of RAM and bandwidth, you can increase this number well above the default of 125
maxconnections=500

4. The following Linux iptables rules limits the number of connections to
   TCP port 9333 per IP address and per /24 subnet.  This protects against
   a connection exhaustion DoS attack.  If you have lots of RAM and bandwidth
   you can increase these limits.

# Allow eight connections per IPv4 /24 subnet
-A INPUT -p tcp --syn --dport 9333 -m connlimit --connlimit-above 8 --connlimit-mask 24 -j REJECT --reject-with tcp-reset
# Allow two connection per IPv4 address
-A INPUT -p tcp --syn --dport 9333 -m connlimit --connlimit-above 2 -j REJECT --reject-with tcp-reset
# Allow TCP connection if not rejected by the previous limit
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9333 -j ACCEPT

5. https://litecoin.org/downloads/SUPERNODES.txt
Edit your litecoin.conf to link to an existing supernode. Link just one.  No need for redundant links.

6. Use "getpeerinfo" to check your peers for other 0.8.6.1+ nodes.

7. https://github.com/bitcoin/bitcoin/blob/master/contrib/qos/tc.sh
Modify this script if you want to limit upstream bandwidth on Linux.
Change the LIMIT to whatever you want and s/8333/9333/

8. Test incoming TCP port 9333 connections.

9. E-mail supernode@lurkmore.com when you are ready.  Provide the IP address or domain name
that you want to be listed. 


Offline Sukarti

  • Hardcore Member
  • *****
  • Posts: 3418
Re: How To Setup A Litecoin Supernode
« Reply #1 on: November 24, 2014, 07:52:49 PM »
Anyone running these on AWS have per month cost stats?

Offline losh11

  • Litecoin Association Member
  • Sr. Member
  • ***
  • Posts: 1265
  • Litecoin is Platinum Isotope 190 to Bitcoin's Gold
    • Bitch, here's my site.
Re: How To Setup A Litecoin Supernode
« Reply #2 on: November 24, 2014, 09:59:00 PM »
Thanks for posting this on the forum.

I'm just wondering, who is supernode@lurkmore.com?

Offline Bossman

  • Hardcore Member
  • *****
  • Posts: 3002
  • In Coblee we trust
Re: How To Setup A Litecoin Supernode
« Reply #3 on: November 25, 2014, 03:42:25 AM »
Thanks for posting this on the forum.

I'm just wondering, who is supernode@lurkmore.com?


It's probably zipzo/kyrio

Offline litecointalk.org

  • Newbie
  • *
  • Posts: 1
Re: How To Setup A Litecoin Supernode
« Reply #4 on: December 04, 2014, 02:31:10 AM »
Are there rewards in return? Or would I be donating hardware to the Litecoin blockchain?

Devvie
twitter.com/devnullius

Offline kmkfan628

  • Jr. Member
  • **
  • Posts: 38
Re: How To Setup A Litecoin Supernode
« Reply #5 on: April 20, 2015, 09:25:19 PM »
is it possible to charge say a .5% fee to recover the cost of running the server?

Offline losh11

  • Litecoin Association Member
  • Sr. Member
  • ***
  • Posts: 1265
  • Litecoin is Platinum Isotope 190 to Bitcoin's Gold
    • Bitch, here's my site.
Re: How To Setup A Litecoin Supernode
« Reply #6 on: April 20, 2015, 09:43:33 PM »
is it possible to charge say a .5% fee to recover the cost of running the server?

As of right now, probably not.
You'd have to ask warren to integrate that.

Offline Searing

  • Full Member
  • ***
  • Posts: 312
  • Clueless
Re: How To Setup A Litecoin Supernode
« Reply #7 on: July 03, 2015, 10:22:47 AM »
NOTE: This was updated as of 6/29/2015 so its the most current of anything I've found on making an LTC node FYI :)



found this updated guide on how to do either an LTC or BTC node on the latest raspberry pi 2 1gb (newest pi version)


the links are good for both an LTC node or a BTC node using the above

have not tried it yet but the 11 pages of detailed steps seems to bode well

here is the info on my thread on bitcoin talk

https://bitcointalk.org/index.php?topic=1107660.msg11778748#msg11778748

quoted below for those here

 Just a link to instructions on a BUILD IT YOURSELF .... how to run either a BTC or LTC node on your raspberry pi 2 1gb version (newest)
for those wanting more blinking lights in the basement or are missing the old home miner equipment and desire
to contribute to the decentralization of either network.

Anyway here is the links

http://raspnode.com/about.html   Main Page

http://raspnode.com/diyBitcoin.html  DIY Bitcoin Node Page

http://raspnode.com/diyLitecoin.html DIY Litecoin Node Page

anyway looks pretty detailed. I'll try to setup an LTC node asap and let you know ...others on here hopefully
with more time will beat me to it :)





Offline Dabs

  • Jr. Member
  • **
  • Posts: 39
Re: How To Setup A Litecoin Supernode
« Reply #8 on: January 09, 2016, 01:47:14 AM »
So, a Litecoin Supernode is basically a very well connected and open node? (with or without iptables for DDoS protection)

I am considering purchasing some old used refurbished server hardware just to make it a real super supernode, and it will look like this:

1. Quad Core Xeon, 3 Ghz
2. 48 GB RAM
3. Leave 8 GB for the OS and Litecoin
4. Use 40 GB as a RAM drive and put the data directory / blockchain on it

With high speed or gigabit internet, that would make a super duper node for the next few years, that is, until the size of the blockchain gets too big, but by then I'd find some newer (but still old) server with more ram.

You can find hardware like that for less than $250 USD now. Even if you say "but it's just DDR2", I would say "that's still 48 GB of RAM, which is faster than the fastest SSDs of today."

I'm not sure about AWS, but you can get a decent VPS for between $5 to $10 a month that can host the whole litecoin blockchain. For now.

Offline Dabs

  • Jr. Member
  • **
  • Posts: 39
Re: How To Setup A Litecoin Supernode
« Reply #9 on: January 09, 2016, 07:01:27 PM »
Oh, my bad. I just noticed and realized that a Litecoin Supernode is the equivalent of a Bitcoin Full Node. I thought it was something more than a full node.

Offline losh11

  • Litecoin Association Member
  • Sr. Member
  • ***
  • Posts: 1265
  • Litecoin is Platinum Isotope 190 to Bitcoin's Gold
    • Bitch, here's my site.
Re: How To Setup A Litecoin Supernode
« Reply #10 on: January 09, 2016, 07:11:26 PM »
Litecoin Supernodes are practically the same thing as Bitcoin's Full Nodes.
I think that "supernode" is the correct way to describe it, because a "supernode" in networking refers to a server in a p2p system that relays data.

The Litecoin Association has made it incredibly simple to install a Supernode with extra features, with just copying and pasting one thing into Terminal. It's called LitecoinNode; and has automatic configuration, a http page with stats, swap and other things - this is of course all optional, and when installing it will as you what you want and don't want.

Currently it only works on Linux distros, we've only tested Ubuntu and Debain so far, but I am pretty sure it works on other distros like Red Hat/Fedora as well.

Installation

Make sure that you are root first. You can do this by entering:

Code: [Select]
sudo su root
Just copy and paste the following into Terminal:
Code: [Select]
wget https://raw.githubusercontent.com/litecoin-association/LitecoinNode/master/linux.sh -P /root/ ; bash /root/linux.sh 2>&1 | tee /root/install.log