removed by mod
fedilink
19
@shadejinx@lemmy.world
link
fedilink
English
81M

The answer is an SSH reverse tunnel. Have privoxy running in the rPi listening on localhost. Have it then connect to your home server via SSH with reverse tunnels enabled, tunneling the privoxy port. On your home server you run another instance of Privoxy that’s listening in your home network and proxy forwarding over the tunnel and you’re done.

I used to use this setup for pen testing.

@psmgx@lemmy.world
link
fedilink
English
41M

I used to use this setup for pen testing

Used to. Why no longer?

@shadejinx@lemmy.world
link
fedilink
English
51M

I don’t do that for a living anymore

sounds like you want a rpi-zero Ethernet gadget.

I made one years ago that pretended to be an Ethernet adapter as soon as you plugged it into your USB port.

it would boot, connect to WiFi, then connect to VPN, and the laptop it was plugged into would then use that as the primary network source as if it was connected to a lan.

downsides:

  • WiFi sucks and I only saw ~ 250mb connections
  • USB is slow capped at 450mb

but it does work in a pinch.

I think RPI A and B were gadget capable but they dropped support after rpi2 was released.

don’t forget you’re going to need to setup the proper routing tables and install a DHCP server(maybe…might be able to do static routing but I found it easier to just install dnsmasq).

@just_another_person@lemmy.world
link
fedilink
English
3
edit-2
1M

You’re just describing a dozen different things that fit this mold, so let me throw some out there and you can decide what does what you want:

  • SOCKS
  • STUN
  • Haproxy
  • Reverse Proxy

These all do what you want if you’re taking the steps to automate pointing to them from whatever your destination endpoint might be. So then you’re basically NOT using a VPN, and only a proxy.

Honestly, I’d just install OpenWRT on the Pi and try out different plugins to find what does what you want. You can honestly simplify this all by using Dynamic DNS in the first place to just have a predictable hostname.

@friend_of_satan@lemmy.world
link
fedilink
English
2
edit-2
1M

This would be easy with ssh -D 8000 remotehost. I actually do exactly this every day, but not from a Pi, and with a bunch of -L forwards too.

Configure your browser to use 127.0.0.1:8000 as a socks 5 proxy and voila.

Bonus points for having a proxy.pac file with more advanced proxy configuration logic.

Also check out sshuttle.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 12 users / day
  • 40 users / week
  • 266 users / month
  • 853 users / 6 months
  • 1 subscriber
  • 1.66K Posts
  • 9.48K Comments
  • Modlog