HackerTrans
TopNewTrendsCommentsPastAskShowJobs

fxlrnrpt

no profile record

Submissions

[untitled]

1 points·by fxlrnrpt·4 maanden geleden·0 comments

[untitled]

1 points·by fxlrnrpt·8 maanden geleden·0 comments

Little ML book club – reading Ultra-scale playbook

8 points·by fxlrnrpt·9 maanden geleden·0 comments

Little ML book club – reading Ultra-scale playbook

github.com
1 points·by fxlrnrpt·9 maanden geleden·0 comments

[untitled]

1 points·by fxlrnrpt·vorig jaar·0 comments

[untitled]

1 points·by fxlrnrpt·vorig jaar·0 comments

When open science is open but not for everyone

5 points·by fxlrnrpt·vorig jaar·1 comments

Ask HN: Places with Good PhD Stipends

1 points·by fxlrnrpt·vorig jaar·3 comments

comments

fxlrnrpt
·vorig jaar·discuss
If you live in a part of the world where you never have to bother with VPNs, this post if not for you. Yet, if even your grandma already heard that she needs to access Youtube or any other web resource - welcome aboard!

Sadly, internet became fragmented over the last few years. You move from one country to another and to your surprise find that REPLACE_WITH_YOUR_FAVORITE_RESOURCE is all of a sudden is not available anymore. WTF?

It is a minor inconvenience when it is a feed with cat memes, but a major problem when it is, say, Youtube.

About a year ago I left London to go back to school. As you can guess, the school network (network provider actually, but who cares?) had an extensive blacklist. It hurt my studies and studies of other students. I decided to setup a VPN for me and other students. Well, I am a damn computer science student, aren't I?

Below if the blueprint on how to setup an VPN for your entire org (my uni in this case) in broad strokes.

You will need:

- Any VPS with a good network connection;

- marzban (https://github.com/Gozargah/Marzban) - SOTA proxy management tool powered by [Xray-core](https://github.com/XTLS/Xray-core);

- marzban-verify (https://github.com/aigoncharov/marzban-verify) - sidecar for mazrban to create new accounts with email verification;

- Telegram account.

What you will get:

- A Telegram bot where people can create VPN accounts on their own as long as they have access to their org emails. For instance, you can provide VPN access to all email holder at `@wtf.com`.

- Sane defaults with a 3 month expiration date and 50 GB traffic limit for new accounts (can be changed).

The blueprint:

- Find a decent VPS. Do not trust speed filters on aggregators. They lie. I had to manually search Reddit for a shortlist of suitable providers and then test them one by one. Do not go with the largest ones if you want your VPN to last. The largest providers are the first targets for censors.

- Install marzban (https://github.com/Gozargah/Marzban?tab=readme-ov-file#insta...). Set `DOCS` to `True`.

- Get SSL (https://gozargah.github.io/marzban/en/examples/marzban-ssl) and optionally set it up to work on one port (https://gozargah.github.io/marzban/en/examples/all-on-one-po...). I have a simpler Haproxy config that still works well:

  ```
    listen front     
     mode tcp     
     bind \*:443      
     tcp-request inspect-delay 5s     
     tcp-request content accept if { req_ssl_hello_type 1 }

     use_backend marz if { req.ssl_sni -i end  ADDRESS_OF_MY_VPN_SERVER }
     use_backend reality 
     
 backend reality     
  mode tcp     
  server srv1 127.0.0.1:12000 send-proxy-v2 tfo  
  
 backend marz     
  mode tcp     
  server srv1 127.0.0.1:10000
 ```
- Use BotFather (https://core.telegram.org/bots/tutorial#obtain-your-bot-toke...) in Telegram to create a new bot that your colleagues are going to use to setup their accounts.

- Setup marzban-verify (https://github.com/aigoncharov/marzban-verify?tab=readme-ov-...). Currently, it can send confirmation emails by setting up a standalone SMTP server (prone to being identified as spam, also some VPS hosters block port 25) or by using your own Exchange email (popular in enterprise envs).

- Profit!

No wise closing words. Just send your PRs if you need more email providers.
fxlrnrpt
·vorig jaar·discuss
I probably phrased it wrong. I need enough money to support myself throughout the grad school: decent room, decent gym and other basics. Yet I am not in it for money. If I prioritized a fat check I would have stayed in the industry as an SWE.
fxlrnrpt
·4 jaar geleden·discuss
This is golden! Thanks!