<p>I'm in the same case, I'm mining at my lab.</p>

<p>The simple way :</p>

<p>If your mining computer is under Linux, and you have an VPS, simply do that on your  mining computer :</p>

<pre><code>ssh user@yourvpsip -C -L 123:yourpool.com:123
</code></pre>

<p>(where 123 is the port of the pool)</p>

<p>Then, configure your mining software to listen on 127.0.0.1:123
(dont change 127.0.0.1, but change 123 to the same port as precedent)
It's like the pool is on your computer :) </p>

<p>And, better, add  keepalive option by adding this :</p>

<pre><code>-o TCPKeepAlive=yes -o ServerAliveInterval=5
</code></pre>

<p>For exemple, for me it's : </p>

<pre><code>ssh -L 5555:mine.xxx-pool.com:5555 xerces@xxx.xxx.net -C -o TCPKeepAlive=yes -o ServerAliveInterval=5 
</code></pre>

<p>For you : </p>

<pre><code>ssh -L 10000:xmr-usa.dwarfpool.com:10000: youruser@104.198.203.30 -C -o TCPKeepAlive=yes -o ServerAliveInterval=5 
</code></pre>

<p>The more complicated but more effective way is using autossh, so the tunnel can keeps itself open.</p>

CC BY-SA 3.0
2017-08-18T20:26:50.560Z
Since the machine is running Windows, it does not have SSH preinstalled. You can either create an ssh tunnel through Putty with a GUI or you can get [OpenSSH for Powershell](https://github.com/PowerShell/Win32-OpenSSH) for cli
Christoph Winter
CC BY-SA 3.0
2017-07-23T14:59:15.477Z
2017-07-23T14:59:15.477Z
Xerces
<p>dear friends. Due that my ISP blocks connection to pools i need to make a redirection via VPS that i has to a mining pool. I am very bad at networking and hardly can imagine how can i accomplish this. Let's be more specific. </p>

<p>The miner i am using is Claymore CryptoNote CPU Miner v3.5 Beta. </p>

<p>IP Address of my VPS is <strong>104.198.203.30</strong></p>

<p>My VPS system is </p>

<pre><code>uname -a
Linux instance-11 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
</code></pre>

<p>Questions:</p>

<ol>
<li>What do i enter in my bat file to start miner under -o option ? </li>
<li>What commands do i need to enter on my VPS to forward all mining packets to a dwarf pool that has following address: <strong>xmr-usa.dwarfpool.com:10000</strong></li>
</ol>

<p>I need my miner to connect to dwarf pool via ssh or any other method through VPS(104.198.203.30). I got root access to my VPS machine. For my ISP it should look like i am sending packages to <strong>104.198.203.30</strong> and not dwarf pool. </p>

<p>Your help is highly appreciated. </p>

CC BY-SA 3.0
2017-07-03T16:10:26.033Z
This may be more on-topic for a general purpose networking site, since VPN forwarding isn't really specific to Bitcoin at all.  But you should say what OS you are using on your mining system.  The simplest approach may be to set up an ssh tunnel, e.g. the `-L` option to `ssh`.
Nate Eldredge
CC BY-SA 3.0
2017-07-03T16:21:01.887Z
i am using windows server 2016 on mining machine. sorry for placing it here.
GavGav
CC BY-SA 3.0
2017-07-09T18:20:05.170Z
@GavGav, I think you should edit your question so you do not expose your IP address in public.
rny
<mining-pools><connection>
Redirection to pool
GavGav
# Redirection to pool

(Asked by: username_0 on 2017-07-03)

dear friends. Due that my ISP blocks connection to pools i need to make a redirection via VPS that i has to a mining pool. I am very bad at networking and hardly can imagine how can i accomplish this. Let's be more specific.

The miner i am using is Claymore CryptoNote CPU Miner v3.5 Beta.

IP Address of my VPS is **104.198.203.30**

My VPS system is

```
uname -a
Linux instance-11 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux

```

Questions:

1. What do i enter in my bat file to start miner under -o option ?
2. What commands do i need to enter on my VPS to forward all mining packets to a dwarf pool that has following address: **xmr-usa.dwarfpool.com:10000**

I need my miner to connect to dwarf pool via ssh or any other method through VPS(104.198.203.30). I got root access to my VPS machine. For my ISP it should look like i am sending packages to **104.198.203.30** and not dwarf pool.

Your help is highly appreciated.

**Tags:** mining-pools, connection

> **Comments:**
> **username_1**: This may be more on-topic for a general purpose networking site, since VPN forwarding isn't really specific to Bitcoin at all.  But you should say what OS you are using on your mining system.  The simplest approach may be to set up an ssh tunnel, e.g. the `-L` option to `ssh`.  
> **username_0**: i am using windows server 2016 on mining machine. sorry for placing it here.  
> **username_2**: @username_0, I think you should edit your question so you do not expose your IP address in public.  

---

## 1 answers

### Answer by username_3 on 2017-07-23. Score: 1

I'm in the same case, I'm mining at my lab.

The simple way :

If your mining computer is under Linux, and you have an VPS, simply do that on your mining computer :

```
ssh user@yourvpsip -C -L 123:yourpool.com:123

```

(where 123 is the port of the pool)

Then, configure your mining software to listen on 127.0.0.1:123
(dont change 127.0.0.1, but change 123 to the same port as precedent)
It's like the pool is on your computer :)

And, better, add keepalive option by adding this :

```
-o TCPKeepAlive=yes -o ServerAliveInterval=5

```

For exemple, for me it's :

```
ssh -L 5555:mine.xxx-pool.com:5555 username_3@xxx.xxx.net -C -o TCPKeepAlive=yes -o ServerAliveInterval=5 

```

For you :

```
ssh -L 10000:xmr-usa.dwarfpool.com:10000: youruser@104.198.203.30 -C -o TCPKeepAlive=yes -o ServerAliveInterval=5 

```

The more complicated but more effective way is using autossh, so the tunnel can keeps itself open.

> **Comments:**
> **username_4**: Since the machine is running Windows, it does not have SSH preinstalled. You can either create an ssh tunnel through Putty with a GUI or you can get [OpenSSH for Powershell](https://github.com/PowerShell/Win32-OpenSSH) for cli  

---

