Hi!
I use Serve Version: https://github.com/Angristan/OpenVPN-install to set up a VPN for my Helium miner. As the Helium network doc required,
https://docs.helium.com/troubleshooting/network-troubleshooting/
“We recommend enabling TCP Ports 44158 in both directions in your router. Check your Router's manufacturing instructions on how to open ports 44158. You could also try setting up a DMZ network to see if that helps, as we have heard that working in some cases.
To get started with port forwarding, check out https://portforward.com
For support and firmware updates, we will need ports 22 and 443 open Outbound.
Router NAT Type Incompatible
Type 1 / Open: The system is connected directly to the Internet and will provide the best connection quality.”
I wish I could open port 44158 and keep 22 and 443 open outbound.
I set my openVPN as follows:
port 44158
proto tcp
dev tun
user nobody
group nobody
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 94.140.14.14"
push "dhcp-option DNS 94.140.15.15"
push "redirect-gateway def1 bypass-dhcp"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key
crl-verify crl.pem
ca ca.crt
And add command lines:
iptables -t nat -A PREROUTING -d 120.78.x.x -p tcp --dport 44158 -j DNAT --to-dest 10.8.0.2:44158
iptables -t filter -A INPUT -p tcp -d 10.8.0.2 --dport 44158 -j ACCEPT
I checked the port: 44158 is open on my public IP address 120.78.x.x.
But when I checked my helium miner connection, it shows"peer to peer connection: outbound open, inbound closed"
Helium miner network works on the Libp2p protocol.
So I guess there should be some other command lines about iptables to make the data transfer outbound and inbound. My setup just opened the outbound but closed inbound.
I bought another OpenVPN service. It opened 44158 and make the miner outbound and inbound worked. I wish I could set up my own VPN. So what should I do? Could you help me and tell me how to enter those command lines? I am just new to VPS and OpenVPN.
Thank you soooooooo much!
How to set a P2P connction VPN. Helium network
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Aug 11, 2021 1:41 am