Manuel83 / craftbeerpi3

Other
180 stars 169 forks source link

Raspberry Pi shuts down when accessing craft beer pi home page via port forwarding #265

Open Steven-Gassert opened 3 years ago

Steven-Gassert commented 3 years ago

Description

Perhaps this is a raspberry pi security feature, but whenever I access the crafbeerpi UI on localhost via port forwarding from an outside network, my raspberry pi immediately crashes. Was curious if anyone would be able to provide an explanation for this behavior or provide some setups they have used to access craftbeerpi from outside the network it is connected to.

Flow with Nginx

Outside network --> My wifi router port forwarding to raspberry pi --> nginx running on raspberry pi --> craftbeer pi running on localhost

I've also seen this behavior when using ngrok to forward requests to the craftbeer pi server running on localhost

Flow with Ngrok

Outside network --> ngrok --> craftbeerpi running on localhost

lalo-uy commented 3 years ago

Why do you put nginx in the middle.?

El dom, 15 ago 2021 a las 23:24, Steven Gassert @.***>) escribió:

Description

Perhaps this is a raspberry pi security feature, but whenever I access the crafbeerpi UI on localhost via port forwarding from an outside network, my raspberry pi immediately crashes. Was curious if anyone would be able to provide an explanation for this behavior or provide some setups they have used to access craftbeerpi from outside the network it is connected to. My flow

Outside network --> My wifi router port forwarding to raspberry pi --> nginx running on raspberry pi --> craftbeer pi running on localhost

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Manuel83/craftbeerpi3/issues/265, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBW4PC6DR7ZNUVQCQ7GJ3T5BZFNANCNFSM5CG2H4CA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

Steven-Gassert commented 3 years ago

@lalo-uy My idea was that I would be able to forward requests to several applications running on my local network.

In the past I've also seen this behavior while port forwarding via ngrok

Similar flow

Outside network --> ngrok --> craftbeerpi running on localhost

I'll update the description with this additional info

lalo-uy commented 3 years ago

I prefer to open a vpn to the raspberry. You can use OpenVPN, and lately ZeroTierOne as a very easy setup. That puts your remote device in the same network of the raspberry letting you access any app. If raspberry Ip forwarding is enabled you even reach your home network.

El lun, 16 ago 2021 a las 18:07, Steven Gassert @.***>) escribió:

@lalo-uy https://github.com/lalo-uy My idea was that I would be able to forward requests to several applications running on my local network.

In the past I've also seen this behavior while port forwarding via ngrok https://ngrok.com/ Similar flow

Outside network --> ngrok --> craftbeerpi running on localhost

I'll update the description with this additional info

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Manuel83/craftbeerpi3/issues/265#issuecomment-899818683, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBW4JENC5G3PD4UOFOMO3T5F4YJANCNFSM5CG2H4CA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

Lagerman commented 3 years ago

I use VNC. Easy setup. Works.

Sent from my iPhone

On Aug 18, 2021, at 10:03 AM, Eduardo Spremolla @.***> wrote:



I prefer to open a vpn to the raspberry. You can use OpenVPN, and lately ZeroTierOne as a very easy setup. That puts your remote device in the same network of the raspberry letting you access any app. If raspberry Ip forwarding is enabled you even reach your home network.

El lun, 16 ago 2021 a las 18:07, Steven Gassert @.***>) escribió:

@lalo-uy https://github.com/lalo-uy My idea was that I would be able to forward requests to several applications running on my local network.

In the past I've also seen this behavior while port forwarding via ngrok https://ngrok.com/ Similar flow

Outside network --> ngrok --> craftbeerpi running on localhost

I'll update the description with this additional info

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Manuel83/craftbeerpi3/issues/265#issuecomment-899818683, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBW4JENC5G3PD4UOFOMO3T5F4YJANCNFSM5CG2H4CA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FManuel83%2Fcraftbeerpi3%2Fissues%2F265%23issuecomment-901190545&data=04%7C01%7C%7C69a28fb8ab5a44229e0208d9625950da%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648958006484707%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=riZsgop2rSIKvPKh8AGOQLRhxAzJVDSJXmcWu%2Bqu8tc%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKHVAJOFJMIF75A4J4JTXV3T5PDTPANCNFSM5CG2H4CA&data=04%7C01%7C%7C69a28fb8ab5a44229e0208d9625950da%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648958006484707%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HWT2qwvzVliHctO9hXGXZ5XKsB0VSrgiXtVdZDuiVWw%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C69a28fb8ab5a44229e0208d9625950da%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648958006494661%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=pFvfQAzWrdJweRkfJA0YuGDXldlUREEJ3MFzrs1VDUY%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26utm_campaign%3Dnotification-email&data=04%7C01%7C%7C69a28fb8ab5a44229e0208d9625950da%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637648958006494661%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HcNZtBq5Apb18osbVEVeXcMLELQu9SSYq4y6Y8PFO0o%3D&reserved=0.

Steven-Gassert commented 3 years ago

Thanks for the replies guys. I do currently use VNC when connecting to my pi.

My original idea was that I would be able to share a URL with non technically savvy family members who would be able to access the craft beerpi UI remotely (perhaps behind an authentication prompt) hence the preference to avoid some of the existing solutions.

The really strange part is that when I do finally make a connection to the local host via the networking paths above, the entire pi shuts down and I am no longer able to access it via ssh or vnc. That’s why my original thought was that perhaps this was some sort of security feature to prevent outside traffic from gaining control of gpio pins ect