Bitcoin Forum
May 25, 2024, 04:41:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 »
161  Bitcoin / Bitcoin Discussion / Re: Ban Bitcoin XT connections to my node? on: September 02, 2015, 06:00:13 PM
It is not right to ban them from SPV clients - let them work  Grin

Ban only away from full node - don't waste resources.
162  Bitcoin / Bitcoin Discussion / Re: Ban Bitcoin XT connections to my node? on: September 02, 2015, 05:50:23 PM
This goes to autostart:

Code:
echo "/usr/bin/ipset create bitcoinxt iphash timeout 0" >> /etc/rc.local

This goes to /etc/cron.hourly
Code:
#!/bin/bash
/bin/grep BitcoinXT /var/log/kern.log | /usr/bin/perl -e 'while (<>) { if (/SRC=(\d+\.\d+\.\d+\.\d+)/) {print "$1\n";} }' | /bin/sort | /usr/bin/uniq -u | /usr/bin/xargs -L 1 ipset -exist add bitcoinxt

voila
163  Bitcoin / Bitcoin Discussion / Re: Ban Bitcoin XT connections to my node? on: September 02, 2015, 05:44:04 PM
Ah, of course outgoing connections
Code:
iptables -A OUTPUT -m set --match-set bitcoinxt dst -j DROP

The result:
Code:
[root@localhost ~]# ping 95.52.18.154
PING 95.52.18.154 (95.52.18.154) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C
--- 95.52.18.154 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4524ms

[root@localhost ~]# ping 178.44.216.148
PING 178.44.216.148 (178.44.216.148) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C

Sorry guys, I have only 64 connections and don't want to waste them for XT
164  Bitcoin / Bitcoin Discussion / Re: Ban Bitcoin XT connections to my node? on: September 02, 2015, 05:32:14 PM
Fill in ban list

Code:
[root@localhost ~]# grep BitcoinXT /var/log/kern.log | perl -e 'while (<>) { if (/SRC=(\d+\.\d+\.\d+\.\d+)/) {print "$1\n";} }' | sort | uniq -u | xargs -L 1 ipset add bitcoinxt 
[root@localhost ~]# ipset list
Name: bitcoinxt
Type: hash:ip
Header: family inet hashsize 1024 maxelem 65536 timeout 0
Size in memory: 8588
References: 1
Members:
95.52.18.154 timeout 0
31.162.118.16 timeout 0
188.18.202.245 timeout 0
92.37.204.174 timeout 0
92.37.173.6 timeout 0
95.37.186.63 timeout 0
86.102.161.110 timeout 0
178.44.216.148 timeout 0
195.78.126.113 timeout 0
92.49.177.97 timeout 0

This one should be done periodically

Code:
grep BitcoinXT /var/log/kern.log | perl -e 'while (<>) { if (/SRC=(\d+\.\d+\.\d+\.\d+)/) {print "$1\n";} }' | sort | uniq -u | xargs -L 1 ipset add bitcoinxt
165  Bitcoin / Bitcoin Discussion / Re: Ban Bitcoin XT connections to my node? on: September 02, 2015, 05:25:19 PM
Now drop blacklisted IP using firewall

Code:
iptables -A INPUT -m set --set bitcoinxt src -j DROP
166  Bitcoin / Bitcoin Discussion / Re: Ban Bitcoin XT connections to my node? on: September 02, 2015, 05:23:38 PM
Now create ipset

Code:
# ipset create bitcoinxt iphash timeout 0
167  Bitcoin / Bitcoin Discussion / Re: Ban Bitcoin XT connections to my node? on: September 02, 2015, 05:12:19 PM
Got a list!
Code:
# grep BitcoinXT /var/log/kern.log | perl -e 'while (<>) { if (/SRC=(\d+\.\d+\.\d+\.\d+)/) {print "$1\n";} }' | sort | uniq -u
188.18.202.245
195.78.126.113
86.102.161.110
92.49.177.97
168  Bitcoin / Bitcoin Discussion / Re: Ban Bitcoin XT connections to my node? on: September 02, 2015, 04:59:35 PM
Fuck the windows.

Okay, I put this:

Code:
iptables -A INPUT -p tcp -m tcp --dport 8333 -m string --string "Bitcoin XT" --algo bm --to 65535 -j LOG --log-prefix "BitcoinXT" --log-level 1 

Now need a way to extract logged IP and put it to ipset

Got log entry, found asshole 188.18.202.245

Code:
BitcoinXTIN=eth0 OUT= MAC=XXX SRC=188.18.202.245 DST=XXMYIPXX LEN=172 TOS=0x00 PREC=0x00 TTL=56 ID=64279 DF PROTO=TCP SPT=35311 DPT=8333 WINDOW=2840 RES=0x00 ACK PSH URGP=0 
169  Bitcoin / Bitcoin Discussion / Re: Mike Hearn, Foundation's Law & Policy Chair, is pushing blacklists right now on: September 02, 2015, 04:03:29 PM
Bump
170  Bitcoin / Bitcoin Discussion / Ban Bitcoin XT connections to my node? on: September 02, 2015, 03:51:23 PM
Is there any effective way to do this?

UPDATE. Found solution.

All paths are according to CeontOS 7. If you have different distrib, change paths.

This goes to autostart:

Code:
echo "/usr/bin/ipset create bitcoinxt iphash timeout 0" >> /etc/rc.local

This goes to /etc/cron.hourly/bitcoinxt
Code:
#!/bin/bash
/bin/grep BitcoinXT /var/log/kern.log | /usr/bin/perl -e 'while (<>) { if (/SRC=(\d+\.\d+\.\d+\.\d+)/) {print "$1\n";} }' | /bin/sort | /usr/bin/uniq -u | /usr/bin/xargs -L 1 ipset -exist add bitcoinxt

Also
Code:
# chmod 755 /etc/cron.hourly/bitcoinxt

This goes to iptables
Code:
iptables -A INPUT -m set --set bitcoinxt src -j DROP
iptables -A INPUT -p tcp -m tcp --dport 8333 -m string --string "Bitcoin XT" --algo bm --to 65535 -j LOG --log-prefix "BitcoinXT" --log-level 1
iptables -A OUTPUT -m set --match-set bitcoinxt dst -j DROP

Dont forget to
Code:
/etc/init.d/iptables save
171  Other / Beginners & Help / Re: FUUUUUUCK Am i under a double spend ? Please help ! on: September 02, 2015, 02:48:09 PM
You shouldn't trust unconfirmed transactions
172  Bitcoin / Bitcoin Discussion / Re: Ukraine May Soon Legalize Bitcoin on: August 31, 2015, 09:54:08 PM
Well I live in Ukraine and use Bitcoin since genesis and don't know how that motherfuckers may help me. I just don't need them.

"Bitcoin conference" even doesn't have Bitcoin option for ticket payment lol. If some government motherfucker organize some meeting - that is only for purpose to steal some money from budget.

Even if they legalize it - no one will show their accounting in Bitcoin for tax. Because if you show money, you'll get a crowd soon in masks with clubs and guns and they'll take your money away. No chance to go legal if you are not gangster.

People are poor here - 42 million. And what is worse - people are not intelligent to understand this technology. I even don't try no more to explain.

Good luck with your "bullish news". You have no idea what you are talking about.
173  Economy / Speculation / Re: PnF TA on: August 31, 2015, 08:54:08 AM
Interesting thread. The whole YTD on PnF chart lol (in rectangle):



And so much nerves inside...

Yeah, the pnf realization in sierra is strange. The same pnf options for weekly bars provides different chart




PnF is god damn useful in range trading i see
174  Economy / Speculation / Re: PnF TA on: August 31, 2015, 01:15:08 AM
Interesting thread. The whole YTD on PnF chart lol (in rectangle):



And so much nerves inside...
175  Economy / Speculation / Re: Analysis never ends on: August 29, 2015, 03:20:35 PM
XT nodes falling down. Looks like people started prefer bip 100 blocksize solution.
176  Economy / Speculation / Re: Analysis never ends on: August 29, 2015, 12:07:46 PM
confirmed inverted H&S ,1h   Grin

Reversal was obvious when price drew V-type pattern (230-198-230) few days ago. It commonly transforms into h&s-like pattern.
177  Economy / Speculation / Re: Analysis never ends on: August 26, 2015, 12:55:50 PM
Besides trend break down failed. Bear trap as promised. Go sideways  200-300


178  Economy / Speculation / Re: Analysis never ends on: August 26, 2015, 12:47:34 PM

I call this "The Halving Fallacy"!

Halving has no immediate influence on price. Markets aren't stupid - they price in things ahead. Like they are pricing in a possible hard fork in 2016 -NOW!

yep, as nov 2012 shown there was no any immediate market reaction. absolutely no one cared as far as i remember. But price bubbled few months earlier from 6 to 16.
179  Economy / Speculation / Re: Analysis never ends on: August 26, 2015, 12:04:17 AM
If I am right and price will leave bearish market in 2012 style, then we will have one-two years more of sideways.
The halving is in less than a year. It should get us out of the sideways channel.

Price already in range since Jan 2015 - it is fucking our brains. While speculators want volatility, Bitcoin wants a calm.
180  Economy / Speculation / Re: Analysis never ends on: August 25, 2015, 07:52:30 PM
masterluc:

Do you assume the 152 bottom was C?

From 0 to 1150 bitcoin was an endless source of impulse waves and pretty nice ABC / wedge corrections. Sure, it wasn't easy to get the wave count correct but you could clearly recognize impulse waves everywhere at all scales. There was a reason you could call the top with some confidence.

After 1150 its just an ocean of corrective waves as far as i can see. If 152 was C it would be reasonable to expect that the corrective waves would be replaced by impulse waves. Look at the run up to 317, that is not a pretty sight.

And look at the recovery from the 198 low now, a rally like that should be a symphony of impulse waves that iterated nicely, but its not, its just corrective waves and zigzags.

What is your take on this?

5-3-5 flat correction since ATH looks good however. Since my suppositional C @152 there were strong impulses with rising volume. I recognize this as bulls awakening. But they are only woken up and started some bullish development. Bulls don't have enough power so far to quickly deal with post-bearish market shock.

So here is a battle now, a lot of bull and bear traps for thrend changing. I don't count it as it is too early to do this. I only see bullish awakening in its early stage.

Furthermore, I recognize Bitcoin as living creature, as superposition of all its intelligent participants. And it has a feature - it is a currency. And volatility for currency is bad. So after volatility this creature goes to calm. So after a bullish and bearish storm it tries to calm to allow itself to be a currency. To allow people for some time to buy and sell goods and services without looking back for volatility. Market does range lock - and here it is. $230-$250 for two years. Good? Absolutely.

These calm aspirations of bitcoin will rise with time, as it should be a currency. There will be decades of range lock in future during bitcoin times. Without regulation.

Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!