Bitcoin Forum
November 09, 2024, 05:28:52 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: assign port for remote access via 4g router  (Read 162 times)
zac123 (OP)
Newbie
*
Offline Offline

Activity: 114
Merit: 0


View Profile
August 01, 2019, 10:37:32 AM
 #1

Hi All,

i have a few of miners at a remote location (Avalon's 741) they use the OpenWrt OS. I have them connected to a 4G router with a sim card in. They work absolutely fine. However what i'd like to do it setup a VPN so i can access each one separately from my laptop wherever i may be.

Ive set the the router up for DuckDNS and from looking at the router control panel it seems quite easy to forward a port to a particular host.

The thing i'm stuck on is how to assign a port number to the miner in the OpenWrt. Can anyone help me with this please?

zac
DaveF
Legendary
*
Offline Offline

Activity: 3654
Merit: 6664


Crypto Swap Exchange


View Profile WWW
August 01, 2019, 12:40:41 PM
Merited by frodocooper (3)
 #2

DO NOT DO THIS.
DO NOT GIVE ACCESS TO YOUR MINERS TO THE OUTSIDE WORLD.


Put a small PC / RPi behind the same router and connect to that.
If you cant use a VPN to get in securely at least use something with 2FA to connect to the machine behind the router.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
zac123 (OP)
Newbie
*
Offline Offline

Activity: 114
Merit: 0


View Profile
August 01, 2019, 01:25:18 PM
Last edit: August 02, 2019, 01:02:43 PM by frodocooper
 #3

I have got a spare RPi so thats quite a good idea. just plug that into the router and then connect all the miners to that. but... excuse my ignorance but how is that safer please?
zac
PassThePopcorn
Sr. Member
****
Offline Offline

Activity: 463
Merit: 309


View Profile
August 01, 2019, 02:22:16 PM
Last edit: August 02, 2019, 01:02:59 PM by frodocooper
Merited by frodocooper (3)
 #4

There is a difference between opening the miner to the outside and you connecting into your network.
With port forwarding anyone that hits your ip and that port gets to the miner and there are plenty of crawlers out there attempting to, it's happened with a lot of different hardware that isn't behind a firewall. It's far safer to keep the miner behind the firewall and connect into the network, and if you do set up a pi do not forward it out from your router/firewall, use a vpn program to connect in.

If your network is on ip 184.72.19.29 and you forward your miner on port 9848 anyone connecting to 184.72.19.29:9848 can get to your miner. I have a local webserver on a different external ip, as soon as it was hooked up and opened it started logging login attempts.
zac123 (OP)
Newbie
*
Offline Offline

Activity: 114
Merit: 0


View Profile
August 01, 2019, 02:39:27 PM
Last edit: August 02, 2019, 01:03:36 PM by frodocooper
 #5

is VNC a safe option? so if i installed VNC on the pi then accessed the miners like that?
zac
DaveF
Legendary
*
Offline Offline

Activity: 3654
Merit: 6664


Crypto Swap Exchange


View Profile WWW
August 01, 2019, 03:08:47 PM
Last edit: August 02, 2019, 01:03:55 PM by frodocooper
 #6

So long as you are using a very strong password it's safer. Not 100% safe but much better then putting the front end of the miner out to the public.
I don't know how secure you can make VNC with 2FA or other security but it's much better then forwarding the miner web page.

On a side note, with 4G you are loosing some profit mining, there is more latency in sending / receiving data then with cable / fiber / dsl so you will get some more rejected shares.
I do not have any hard and fast data to the amount but I know it is there.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
zac123 (OP)
Newbie
*
Offline Offline

Activity: 114
Merit: 0


View Profile
August 01, 2019, 03:16:06 PM
Last edit: August 02, 2019, 01:04:09 PM by frodocooper
 #7

thanks for the reply. yes unfortunately 4g was the only option for this particular location. my other locations are fibre.
PassThePopcorn
Sr. Member
****
Offline Offline

Activity: 463
Merit: 309


View Profile
August 01, 2019, 03:26:40 PM
Last edit: August 02, 2019, 01:04:31 PM by frodocooper
 #8

I'd say to still use  a VPN like openvpn, I'm not 100% sure but this seems to be one that works with a pi. @ zac123 I would check openvpn's website to see if they have any links to do this as well (do your due diligence)

https://www.ovpn.com/en/guides/raspberry-pi-raspbian
https://www.comparitech.com/vpn/what-is-a-vnc-and-how-does-it-differ-from-a-vpn/

As for 4g it's not great but you can only use what's available. For only 1 machine/connection it should be just fine, the avalons don't do much in the way of connections like the s9's do they do a dns query to resolve the pool then stay there for a while, bandwidth is limited on them on 24 851's on 1 pi they top off at around 15kbs but average 10-12.

If you have a bunch of miners a simple dns forwarder / cache server would work to limit the outbound requests, it won't do anything for the work the miners need to process.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!