groetschel
Hello Community,
I read so many resources and now I am even more confused.
Maybe someone can point me into the right direction.
I would like to run a bobcat miner behind a Starlink internet connection. I need to forward a tcp port from a public ip address to it. The miner has to use the public ip address too. I cannot login to the miner or even give it a gateway or fixed ip address.
So, what I did so far:
I created an OpenVPN server on an AWS lightsail ubuntu 20.04.
I set up a Raspberry PI as an OpenVPN client to connect to the lightsail ubuntu VPN server.
The command on my Raspberry PI (OpenVPN client):
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
shows correctly the public IP address of the AWS lightsail... so far so good...
I created a seperate LAN with a DHCP server (dnsmasq) for the miner (which I currently simulate with another Raspberry PI).
So, the setup is as follows:
AWS lightsail
ubuntu, OpenVPN server
Public IP (NAT): 34.220.x.x, AWS internal IP: 172.26.x.x <--> 10.8.0.1
Raspberry PI (router)
OpenVPN client
External IP: 10.8.0.2
net.ipv4.ip_forward=1
Internal fixed IP with DHCP server: 192.168.50.1
Internal fixed IP for internet line: 192.168.1.238
2nd Raspberry PI (miner)
DHCP IP: 192.168.50.107
DNS: 192.168.50.1 (works)
GW 192.168.50.1
Routing client to test routing:
IP: 192.168.1.245
Route: 192.168.50.0 gw 192.168.1.238
Ping works between Routing client and 2nd Raspberry PI (miner), which means routing is all set in the Raspberry PI (router).
Problem: The 2nd Raspberry PI (miner) does not connect to the internet through the OpenVPN (or at all)? nslookup resolves names correctly, but it seems, something is blocking the traffic through the OpenVPN client or server.
Thanks for any ideas.
Gunnar