Author

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

sr. member
Activity: 262
Merit: 250
March 17, 2013, 01:19:33 PM
#7
Thanks! I wasn't aware of pools using port 80 and 443
hero member
Activity: 675
Merit: 513
sr. member
Activity: 262
Merit: 250
March 17, 2013, 10: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, 08: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, 08: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 16, 2013, 12:00:19 AM
#2
ssh -l 8332:some.server.com:8332 [email protected]
sr. member
Activity: 262
Merit: 250
March 15, 2013, 11: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: