TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A Raspberry Pi as a decent residential proxy

98 点作者 AlexITC将近 5 年前

11 条评论

tzs将近 5 年前
&gt; Don’t expose the proxy to the world or attackers will be able to interact with your home devices<p>Or use it to get stuff on the internet that they don&#x27;t want to get directly themselves. Once upon a time I accidentally enabled open proxying on the web server on my Linux box. This was before smart phones and tablets and such, when my Linux box was the only network client I had, and so I didn&#x27;t have a NAT router. Just modem straight to Linux box.<p>One day I checked my Apache logs to see if my extremely low traffic web site had any visitors.<p>First impression: &quot;What the hell is all this traffic? This is orders of magnitude more than I should have!&quot;.<p>Second impression: &quot;Why the hell is someone trying to get horse_fucking.mov from my server?&quot;.<p>Third impression: &quot;That didn&#x27;t give a 404. Why is my server actually providing horse_fucking.mov?&quot;.<p>(No, the orders of magnitude extra traffic were not all people getting horse_fucking.mov. There was a whole plethora of bestiality titles, plus a lot of other porn that you would not want to fetch directly from your own IP address either out of embarrassment if you got caught or because it was almost certainly illegal).
评论 #23459043 未加载
评论 #23459309 未加载
评论 #23462139 未加载
评论 #23458434 未加载
iamphilrae将近 5 年前
I run a number of news website scrapers for various projects. Originally I ran them all on AWS EC2 instances and racked up sizeable bills. Recently though, I pulled an unused Raspberry Pi from my desk drawer, installed them all onto the Pi, and now run them for near free from my desk! Granted I need to be a little bit more efficient with memory and processor cycles, but that’s a fun little challenge. I find if you respect the websites in terms of not hitting them multiple times a minute (or only once an hour which I do) then you’ll very seldom get banned.
评论 #23458643 未加载
评论 #23461374 未加载
vivekf将近 5 年前
Have you looked at running wireguard on your server and connecting to it from the pi. Then you have a vpn between server and the pi where you can send data in any protocol
评论 #23461160 未加载
评论 #23459641 未加载
ysleepy将近 5 年前
Why not just use the SSH dynamic SOCKS5 proxy?<p>Just ssh -D 12345 raspberry and then just use localhost:12345 as the scrapers SOCKS5 proxy. No need to involve a http proxy.<p>EDIT: AAh, ssh port is not accessible from outside and the raspi does a reverse connect.
评论 #23458607 未加载
donaldihunter将近 5 年前
For more reliable ssh tunnels you can use autossh.<p><a href="https:&#x2F;&#x2F;www.harding.motd.ca&#x2F;autossh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.harding.motd.ca&#x2F;autossh&#x2F;</a>
评论 #23462567 未加载
hjb将近 5 年前
That is a very retro raspberry pi :-D
评论 #23459447 未加载
tails4e将近 5 年前
Is there a solid solution to the SD card problem? Every Rpi I&#x27;ve tried to use as a server eventually kills its SD card, probably as running an os on SD is destined for failure with write wear. I&#x27;m guessing using SD for boot only and then using a home NAS would be an option, but I&#x27;ve not come across a dummies guide to making a Rpi reliable long term.
评论 #23466513 未加载
评论 #23466011 未加载
评论 #23464990 未加载
Snawoot将近 5 年前
&gt; Surprisingly, 256 MB in RAM have been enough to maintain the app running for months until now.<p>What is total RSS of all your proxy processes?
评论 #23459239 未加载
评论 #23458950 未加载
Ralo将近 5 年前
I setup an Openvpn server on my LAN, with username&#x2F;password credentials so I can access my LAN from anywhere. I have multiple vpn configurations for my cell phone&#x2F;laptop to either map only 192.x through the VPN or all traffic through it. It&#x27;s very very useful, and seems like a much more secure option in my opinion.
评论 #23462585 未加载
amaccuish将近 5 年前
I still keep a server running in my basement doing WireGuard since Netflix et al. all block cloud IPs&#x2F;ASNs
yozel将近 5 年前
Why not use a normal HTTP proxy like Squid? It would be more easy to use it since almost all languages and clients support HTTP proxy built-in.
评论 #23458561 未加载