Bitcoin Forum
May 22, 2024, 03:22:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] BitNet VPNCoin |Free VPN|More Channels of Distribution|Rules Changed(9.28) on: September 30, 2014, 03:01:19 PM
I'm happy to see vpn coin growing so quickly!

Any plans to move away from PPtP towards a more secure protocol?
2  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] BitNet VPNCoin |Free VPN|More Channels of Distribution|Rules Changed(9.25) on: September 25, 2014, 02:15:17 PM
I registered on QQ but I don't see myself on the shareholders list.
Sad
check it again. Smiley

Thanks Wink
3  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] BitNet VPNCoin |Free VPN|More Channels of Distribution|Rules Changed(9.25) on: September 25, 2014, 12:59:26 PM
I registered on QQ but I don't see myself on the shareholders list.
Sad
4  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] BitNet's VpcCoin | New Features| Distribution Start | With New Bounties! on: September 25, 2014, 01:53:07 AM
I just tried to run vpncoin on my home windows box and it broke internet connectivity. I'm not able to reconnect to the internet. :/
Has anyone had this happen?
There is a little BUG in the old version,it's fixed in the new version. coming soon!
New version is working perfectly, thanks.
5  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] BitNet's VpcCoin | New Features| Distribution Start | With New Bounties! on: September 24, 2014, 01:19:14 AM
I just tried to run vpncoin on my home windows box and it broke internet connectivity. I'm not able to reconnect to the internet. :/
Has anyone had this happen?
6  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] BitNet's VpcCoin | New Features| Distribution Start | With New Bounties! on: September 23, 2014, 10:33:47 PM
What makes vpncoin so interesting at this point is that you've consolidated many features into a single, easily accessible package.

One of the shortcomings of altcoins is that while their features may have individual merit it's cumbersome to require multiple wallets and respective currencies to perform multiple tasks (encrypted text, dns, etc).

It's easy to imagine a service like vpncoin exploding if it can securely integrate a complete set of cryptographic, communication and p2p application into one service.

Any plans for encrypted VOIP?
Any plans to incorporate onion routing (or something similar)?
7  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN]VPNCOIN|VPN S|DARK NET|IPJOIN|P2P Instant Message|beta release| on: September 23, 2014, 05:04:45 PM
Any plans for encrypted VOIP?

Edit:

I ask because what makes vpncoin so interesting at this point is that you've consolidated many features into a single, easily accessible package.

One of the shortcomings of altcoins is that while their features may have individual merit it's cumbersome to require multiple wallets and respective currencies to perform multiple tasks (encrypted text, dns, etc).

It's easy to imagine a service like vpncoin exploding if it can securely integrate a complete set of cryptographic, communication and p2p application into one service.

Also, have you plans to incorporate onion routing (or something similar)?
8  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN]VPNCOIN(BitNet)| New Features| Distribution Start | With New Bounties! on: September 22, 2014, 10:30:30 PM
Looks fantastic. I'll be keeping a close eye on this!
9  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 21, 2014, 12:56:55 AM
Thanks to bee7 and bigredmachine pnSeeds and the dns seeder are properly functioning. Solutions will be posted in OP.
10  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 20, 2014, 11:12:44 PM
Thank you bigredmachine! that was exactly the mistake I've been struggling with.  Clients are now able to connect to the seednode and subsequently to other clients.  I can't offer much but pm me and it would be my pleasure to buy you a beer. Wink

Quote
Cannot connect to kjy2eqzk4zwi5zd3.onion:9751: unsupported network

Are you running Tor? And have you put up a hidden service at port 9751 on that node?

I am not running Tor. The coin daemon attempts this connection automatically.

You should be running the instance of your coin wallet at cryptodistributed.org as your dnsseed has this address encoded as an address of a seed node.
The dnsseed then collect the list of known to this node peers form it and publish it through dns.

I am now running an instance of the coin daemon on vps 104.131.53.44 and am still unable to connect to peers using DNS.

I get the following:
Code:
dnsseed thread start
Loading addresses from DNS seeds (could take a while)
addcon thread start
msghand thread start
opencon thread start
net thread start
dumpaddr thread start
init message: Done loading
0 addresses found from DNS seeds
dnsseed thread exit
GetMyExternalIP() received [104.131.18.112] 104.131.18.112:0
GetMyExternalIP() returned 104.131.18.112
AddLocal(104.131.18.112:9751,4)
ext-ip thread exit
Adding fixed seed nodes as DNS doesn't seem to be available.

The DNS seeder shows nothing:
Code:
$ 0/1 available (1 tried in 800s, 0 new, 0 active), 0 banned; 0 DNS requests, 4 db queries

Something is definitely wrong with my current DNS configuration. I have a hunch it has to do with an improperly configured reverse zone file. 

I came across this stackoverflow as a possible solution, but I have not been able to find any posts within the cryptocurrency community where this solution was necessary. I'm not sure it will even be of use in this situation.
http://stackoverflow.com/questions/15338232/how-to-forward-a-subzone


11  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 20, 2014, 04:14:30 AM
I am not running a wallet on cryptodistributed.org.

Do you mean that I should be running an instance of the coin daemon on 104.131.53.44? If this is the case I definitely did not understand that to be so.
12  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 20, 2014, 03:27:06 AM

so it returns no A records. Did you customize dnsseed to suit your coin?


I'm using https://github.com/n00bsys0p/altcoin-seeder modified appropriately for my coin.

The changes are as follows;

bitcoin.cpp

Line 299
-  CService ip("litecointools.com", 9333, true);
+ CService ip("cryptodistributed.org", 9751, true);   // 9751 is the P2P Port for my Pfennig clone

combine.pl
Line 61 
- if ($addr =~ /\A(\d+)\.(\d+)\.(\d+)\.(\d+):9333/) {
+ if ($addr =~ /\A(\d+)\.(\d+)\.(\d+)\.(\d+):9751/) { 

db.h
Line 15
- #define REQUIRE_VERSION 70002
+#define REQUIRE_VERSION 70002  // Pfennig require version same as Bitcoin

Line 19
-  return testnet ? 0 : 470000;
+ return testnet ? 0 : 0;         // Set to 0 as genesis is only current checkpoint block

Line 122
-  if (clientVersion && clientVersion < 50000) { return 604800; }
+ if (clientVersion && clientVersion < 90201) { return 604800; }       // client version for Pfennig clone

main.cpp
Line 342
- static const string mainnet_seeds[] = {"dnsseed.litecointools.com", "dnsseed.litecoinpool.org", "dnsseed.ltc.xurious.com", ""};
- static const string testnet_seeds[] = {"testnet-seed.litecointools.com", ""};

+static const string mainnet_seeds[] = {"seed.cryptodistributed.org", ""};
+static const string testnet_seeds[] = {"testnet-seed.cryptodistributed.org", ""};

Line 351
-  db.Add(CService("kjy2eqzk4zwi5zd3.onion", 9333), true);
+ db.Add(CService("kjy2eqzk4zwi5zd3.onion", 9751), true); 

Line 380-383
- pchMessageStart[0] = 0xfc;
- pchMessageStart[1] = 0xc1;
- pchMessageStart[2] = 0xb7;
- pchMessageStart[3] = 0xdc;

+pchMessageStart[0] = 0x0b;
+pchMessageStart[1] = 0x11;
+pchMessageStart[2] = 0x09;
+pchMessageStart[3] = 0x07;   //testnet Pfennig magic numbers

protocol.cpp
+unsigned char pchMessageStart[4] = { 0xfb, 0xc0, 0xb6, 0xdb };
-unsigned char pchMessageStart[4] = { 0xf9, 0xbe, 0xb4, 0xd9 };   // mainnet Pfennig Magic number

protocol.h
- return testnet ? 19333 : 9333;
+ return testnet ? 19751 : 9751;
13  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 20, 2014, 01:40:58 AM
On the dns seeder:
$ dig @127.0.0.1 seed.cryptodistributed.org

;<<>> DiG 9.9.5-3-Ubuntu <<>> @127.0.0.1 seed.cryptodistributed.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 61122
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEDUOSECTION:
; EDNS: version; 0, flags:; udp: 4096
;; QUESTION SECTION:
; seed.cryptodistributed.org.        IN        A

;; Query time: 20 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Sep 19 20:23:31 EDT 2014
;; MSG SIZE rcvd: 55

On a client VPS:
$ dig @104.131.20.192 seed.cryptodistributed.org

; <<>> DiG 9.9.3-rpz2+rl.13214.22-P2-Ubuntu-1:9.9.3.dfsg.P2-4ubuntu1.1 <<>> @104.131.20.192 seed.cryptodistributed.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 35619
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;seed.cryptodistributed.org.   IN   A

;; Query time: 227 msec
;; SERVER: 104.131.20.192#53(104.131.20.192)
;; WHEN: Fri Sep 19 20:38:17 EDT 2014
;; MSG SIZE  rcvd: 55

Master zone file checks:

Forward zones look good:

$ named-checkzone cryptodistributed.org /etc/bind/zones/db.cryptodistributed.org
zone autun.hom /IN: loaded serial   2
Ok

$ named-checkzone cryptodistributed.org /etc/bind/zones/db.cryptodistributed.org
zone autun.hom /IN: loaded serial   2
Ok

I think I may have found the problem, it appears  that I've made a mistake in my reverse zone file:

$ names-checkzone cryptodistributed.org /etc/bind/zones/db.104.131.55
zone cryptodistributed.org/IN: NS 'ns1.cryptodistributed.org' has no address records (A or AAAA)
zone cryptodistributed.org/IN: NS 'ns2.cryptodistributed.org' has no address records (A or AAAA)
zone cryptodistributed.org/IN: not loaded due to errors

$ named-checkzone 55.131.104.in-addr.arpa /etc/bind/zones/db.104.131.55
zone 55.131.104.in-addr.arpa/IN: loaded serial 10
OK

As I understand it, I should not need to create an A record in the reverse zone file as the PTR record fulfils this function.

/etc/bind/zones/db.104.131.55

$TTL    604800
@       IN      SOA     cryptodistributed.org. admin.cryptodistributed.org. (
                              10         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;

; Name servers
        IN      NS      ns1.cryptodistributed.org.
        IN      NS      ns2.cryptodistributed.org.

; PTR records
112          IN      PTR      ns1.cryptodistributed.org.
252.18      IN      PTR      ns2.cryptodistributed.org.
44.53      IN       PTR      www.cryptodistributed.org.
192.20       IN      PTR    seed.cryptodistributed.org.

Thoughts on where I've gone wrong?
14  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 19, 2014, 07:15:39 PM
I understand the clients should not connect directly to the dnsseeder, I meant that the DNS seeder is not logging attempted connections or IP addresses from coin clients.

It is running as root and listening on port 53.
15  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 19, 2014, 06:33:20 PM
I configured my DNS as:

; Name servers
cryptodistributed.org.    IN    NS    ns1.cryptodistributed.org.
cryptodistributed.org.    IN    NS    ns2.cryptodistributed.org.
seed.cryptodistributed.org.  IN  NS  seedvps.cryptodistributed.org.

; A records for name servers
ns1    IN    A    104.131.55.112
ns2    IN    A    104.131.18.252
seedvps    IN    A    104.131.20.192

And chainparams.cpp as I originally had it configured;

vSeeds.push_back(CDNSSeedData("cryptodistributed.org", "seed.cryptodistributed.org"));

but I am now getting the following error;

connect() to 228.18.131.104:9751 failed: Network in unreachable (101)
Cannot connect to kjy2eqzk4zwi5zd3.onion:9751: unsupported network

104.131.18.228 is the IP address of my seednode as is configured as follows;

unsigned int pnSeed[] =
{
      0x688312e4
};

So I'm not sure why it's attempting to connect to that IP instead.

There are no visible attempts from the coin daemon to connect to the DNS seeder on 104.131.20.192.

On the VPS 104.131.20.192, on which I'm running the dns seeder using;

./dnsseed -h seed.cryptodistributed.org -n 104.131.20.192

I get;

$ 0/1 available (1 tried in 800s, 0 new, 0 active), 0 banned; 10 DNS requests, 14 db queries
16  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 19, 2014, 12:53:37 PM
You are making it much harder than needed. The seednode in the source should be like coin.seednode.org - Then you point that DNS to your node(s). When it looks for a seednode it looks for a list of IPs to basically addnode

This is why you only have connections through addnodes

FYI:

NS record should point to FQDN (see http://www.rfc-editor.org/rfc/rfc1035.txt, chapter 3.3.11), that may not belong to specifically this domain, which in turn must have an A record in its zone. So basically all you need is this:

Code:
seed.cryptodistributed.org.  IN  NS  seedvps.cryptodistributed.org.
seedvps  IN  A  a.b.c.d

and the host a.b.c.d must run your dnsseed daemon.

 Shocked

Now I see! I've been going crazy but I see now where the problem is. I should set up my dns like this;

; Name servers
cryptodistributed.org.    IN    NS    ns1.cryptodistributed.org.
cryptodistributed.org.    IN    NS    ns2.cryptodistributed.org.
seed.cryptodistributed.org.  IN  NS  seedvps.cryptodistributed.org.

; A records for name servers
ns1    IN    A    104.131.55.112
ns2    IN    A    104.131.18.252
seedvps    IN    A    104.131.20.192

and in the coin like so;

chainparams.cpp
vSeeds.push_back(CDNSSeedData("cryptodistributed.org", "seedvps.cryptodistributed.org"));

Superficially, this looks redundant to me and is probably the reason why I had failed to understand.
Going to try this tonight.
17  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 19, 2014, 03:31:42 AM
It's going to be very hard to see where the connection is blocked from where you're standing but my bet is that a firewall policy above and beyond the access your hosting company provides to you is intercepting the traffic before it hits your seed node. The tech guys at DotEasy helpdesk probably won't have a clue what the problem is but I bet their network and security guys do if they were asked to look into it. 

Another option is to set up SSL certificates between your web server and a test machine to see if that resolves the trust issue but my gut feeling is that it won't because access is being blocked at a different level altogether.

I may be wrong on the above but spent days and days of serious headaches with one faucet and as soon as everything was migrated to a VPS, the dreaded 111 error was solved almost instantly. With seed nodes you don't have databases, usernames and password etc to throw further spanners into the works, so troubleshooting the issues should be a bit easier (famous last words).

It's pretty setting easy up a VPS and I can provide you a DigitalOcean one for a few days if it's of any help?

P.S. Are you 100% sure that you've changed your port numbers in the seeder's bitcoin.cpp, main.cpp, protocol.cpp and protocol.h files before you compiled it?


I've decided on self hosting and after many support tickets and phone calls I now have DotEasy pointing my webhost NS records to my master and slave VPS name servers.

However, while the dnsseeder now shows DNS requests and db queries, it does not appear to be logging my client IP addresses nor is it reciprocating information to peers attempting a DNS request.  This is reflected in

dnsstats.log

1411083359 0 0 0 0 0
1411083559 0 0 0 0 0
1411083959 0 0 0 0 0
1411084759 0 0 0 0 0

and in dnsseed.dump, which is empty.

On the DNS Seeder I get the following output;

$ 0/1 available (1 tried in 800s, 0 new, 0 active), 0 banned; 48 DNS requests, 4 db queries


On my clients I get the following;

...
1 addresses found from DNS seeds
dnsseed thread exit
connect() to 104.131.20.192:9751 failed after select(): Connection refused (111)
connect() to 104.131.20.192:9751 failed after select(): Connection refused (111)
Cannot connect to kjy2eqzk4zwi5zd3.onion:9751: unsupported network
Cannot connect to kjy2eqzk4zwi5zd3.onion:9751: unsupported network
connect() to 104.131.20.192:9751 failed after select(): Connection refused (111)
Cannot connect to kjy2eqzk4zwi5zd3.onion:9751: unsupported network

Using bind9 my DNS is set up as follows;

Master
/etc/hosts

127.0.0.1    localhost
127.0.1.1    ns1.cryptodistributed.org ns1

#

/etc/hostname

ns1

#

/etc/bind/named.conf.options

options {
        directory "/var/cache/bind";
        recursion no;
        allow-transfer { none; };

        dnssec-validation auto;

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};

#

/etc/bind/named.conf.local

zone "cryptodistributed.org" {
    type master;
    file "/etc/bind/zones/db.cryptodistributed.org";
    allow-transfer { 104.131.18.252; };
};

zone "55.131.104.in-addr.arpa" {
    type master;
    file "/etc/bind/zones/db.104.131.55";
};

#

/etc/bind/zones/db.cryptodistributed.org

$TTL    604800
@       IN      SOA     ns1.cryptodistributed.org. email.cryptodistributed.org. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
; Name servers
cryptodistributed.org.    IN    NS    ns1.cryptodistributed.org.
cryptodistributed.org.    IN    NS    ns2.cryptodistributed.org.
seed.cryptodistributed.org.  IN  NS  104.131.20.192.

; A records for name servers
ns1    IN    A    104.131.55.112
ns2    IN    A    104.131.18.252
seed    IN    A    104.131.20.192

; Other A records
@   IN   A  104.131.53.44
www  IN  NS  104.131.53.44

#

/etc/bind/zones/db.104.131.55

$TTL    604800
@       IN      SOA     example.com. admin.example.com. (
                              5         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;

; Name servers
        IN      NS      ns1.cryptodistributed.org.
        IN      NS      ns2.cryptodistributed.org.

; PTR records
112          IN      PTR      ns1.cryptodistributed.org.
252.18      IN      PTR      ns2.cryptodistributed.org.
44.53      IN       PTR      www.cryptodistributed.org.
192.20       IN      PTR    seed.cryptodistributed.org.

#

Curiously, nslookup and dig do not give the expected output.

Specifically, they are not returning an authorative NS record for subdomain seed.cryptodistributed.org.  I had read that bind may be stripping off the authorative answer bit in the reply, https://www.mail-archive.com/bitcoin-development@lists.sourceforge.net/msg05514.html, but I am not not sure how I might fix such a problem or whether I may have made some error elsewhere.
18  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 09, 2014, 08:26:49 PM
I'm going to try hosting the website on a vps and see if that resolves the issue.
Thank you very much for offering a vps for a few days but I've already got a few cheap digitalocean vps'. Smiley

I re-checked the ports on the seeder for sanity and it looks fine.
19  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 09, 2014, 06:26:01 PM
It's kinda clutching at straws here but could there be any kind of firewall or router blocking the connection?

Bitcoin 111 errors are because of RPC access being blocked. Although slightly different, I've had nightmare problems in the past with faucets that refuse connections when used on webhosts rather than a dedicated VPS setup. Even jailbroken hosting plans don't give as much access as they would have you believe.

An NS record is pretty important and a lot of hosts won't allow you to change one (even if you ask their support for a record change). If you come up against a brick wall, my suggestion is that you try to host the seeder and website yourself on a cheap VPS. You can't beat DigitalOcean's VPSs for the flexibility you get at such a small cost if you find that the hosts aren't accommodating your requests.

The connection isn't blocked, as far as I can tell, and netstat shows the dnsseed listening on port 53.

I'm using DotEasy as my webhost which could be the problem.  I've changed my NS record to point to my vps rather than the subdomain, but I'll have to wait for the change to take effect before I can confirm that it was the issue. Considering their support had no idea what I was talking about I'll probably have to try hosting the website on a vps.

Any thoughts on why the client isn't connecting to previously connected peers?


20  Alternate cryptocurrencies / Altcoin Discussion / Re: Help with DNS Seeder and hardcoded Seednodes on: September 09, 2014, 04:35:40 PM
Hi esotericizm, thanks for the suggestion.
As far as I can tell the DNS appears to be properly configured;

$ nslookup seed.cryptodistributed.org

Server:     8.8.8.8
Address:   8.8.8.8:53

Non-authoritative answer:
Name:  seed.cryptodistributed.org
Address:  104.131.53.44

however when I run:

dig -t NS seed.cryptodistributed.org

;;Question Section:
;seed.cryptodistributed.org.   IN     NS

;;AUTHORITY SECTION
cryptodistributed.org.   IN   SOA   dns5.doteasy.com hostmaster.doteast.com

I contacted my hosting provider but they said it looks correct.
Re-reading https://bitcointalk.org/index.php?topic=599623.0 I'm now wondering if I should have created an NS record like so;

NS Record:
seed.cryptodistributed.org     104.131.53.44

Rather than;

cryptodistributed.org        seed.cryptodistributed.org 

Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!