Author

Topic: Mining behind a firewall? (Read 1740 times)

sr. member
Activity: 262
Merit: 250
March 17, 2013, 12:19:33 PM
#7
Thanks! I wasn't aware of pools using port 80 and 443
hero member
Activity: 675
Merit: 514
sr. member
Activity: 262
Merit: 250
March 17, 2013, 09:45:49 AM
#5
Yes. But then I need some kind of proxy to forward to a different port like I asked above.


miner@80 ---> firewall ---> proxy maps 80 to 8332 ---> mining pool@8332
hero member
Activity: 533
Merit: 500
^Bitcoin Library of Congress.
March 16, 2013, 07:44:10 PM
#4
Not sure if this helps, but you can set bitcoin to use a port other than the default one.
sr. member
Activity: 262
Merit: 250
March 16, 2013, 07:07:54 AM
#3
Thanks, but I already tried that with little success. I had the following in my ssh config file:

Code:
Host test
  Hostname shell.server.com
  User user
  LocalForward 8332 some.server.com:8332

When I log in to [email protected] I can do:

Code:
curl --user myrpcuser --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwork", "params": [] }' -H 'content-type: text/plain;' http://some.server.com:8332/

but if I run

Code:
ssh test or ssh -L 8332:some.server.com:8332 [email protected]

then in a different shell:

Code:
curl --user myrpcuser --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwork", "params": [] }' -H 'content-type: text/plain;' http://localhost:8332/

I get

Code:
curl: (7) couldn't connect to host

Is there some bitcoin proxy or similar I could run on shell.server.com so I could specify port 80 which the proxy would forward to some.server.com. I guess I might be able to do it with iptables...
hero member
Activity: 728
Merit: 500
165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
March 15, 2013, 11:00:19 PM
#2
ssh -l 8332:some.server.com:8332 [email protected]
sr. member
Activity: 262
Merit: 250
March 15, 2013, 10:17:30 PM
#1
Is it possible to tunnel/forward traffic to port 8332 (under Linux) using ssh or similar If you're behind a firewall which is blocking 8332 and would like to run a miner?
Jump to: