[-] varsock@programming.dev 1 points 2 years ago

don't insult children like that.

[-] varsock@programming.dev 1 points 2 years ago

thanks for the masterclass in CF tunnels.

I am ready to accept everything you've said but there is the SSH case that keeps tripping me up. For reference, here is the CF docs on Connecting SSH through CF Tunnels.

Can you help me clear up the misunderstanding here? From the docs it appears you can create a SSH key pair on a client and then copy the public key to the server. It does not appear that the docs state you need to share those keys with CF, so I assume (perhaps incorrectly) that my session will be encrypted with my private key (on client) and public key (on server).

Again, what you said appears to make sense, perhaps SSH is the only edge case that is implemented differently?

[-] varsock@programming.dev 1 points 2 years ago

interesting, I'll have to read about this some more then. thanks for pointing me in the right direction

[-] varsock@programming.dev 1 points 2 years ago* (last edited 2 years ago)

WARP (a client) just connects you to CF's network.

If your server is running cloudflared (an outbound-only tunnel) then you can enroll your WARP client to reach your server, while your server is never accessible on the public web. That's the principal behind Zero Trust.

While techinically yes, WARP can be considered as a VPN, it is just a secure tunnel to an endpoint. In which case you can argue any point-to-point tunnel is a VPN.

[-] varsock@programming.dev 1 points 2 years ago* (last edited 2 years ago)

discovered tailscale from this post and after reading their "how tailscale works" I was hoping to get some clarification from an activer user (you).

CF tunnels setup an outbound-only tunnel from my private network via cloudflared, I have no ingress holes in my firewall to access my services. cloudflared does all the proxying. Plus my IP changes monthly as I don't pay for a static one from my ISP. This "outbound-only" connection is resilient to that.

Tailscale is point-to-point (for data plane) connection and only the control plane is "hub and spoke". This sounds like I need to allow ingress rules on my private network so my server can be connected to? Is this true or where did I misunderstand?

[-] varsock@programming.dev 1 points 2 years ago

navigating to this community from programming.dev, i see that there are only 73 subscribers. Clicking on your link get take to a page that says 6.27k subscribers. Any idea why there is a discrepancy in. Is something with federation going wonky?

[-] varsock@programming.dev 1 points 2 years ago

if you're not doing any weird shit at home, why have blinds in your windows?

[-] varsock@programming.dev 1 points 3 years ago

typeset -a $1=("${(@ps[$2])"${2:-"$(<&0)"}"}")

spoilerSo, overall, this script reads input from $2 or stdin if $2 is not provided, splits it into an array based on the delimiter $2, and then assigns the array to the variable named $1. Note that this script only works in Zsh, not in Bash. Zsh has a more advanced parameter and array system than Bash, so this script can't be directly translated into Bash.

  1. typeset -a: This part declares an array variable.
    • -a flag specifies that the variable is an array.
  2. $1=("${(@ps[$2])"${2:-"$(<&0)"}"}"):
    • $1 refers to the first argument passed to the script.
    • "${2:-"$(<&0)"}" is an expansion that evaluates to the second argument passed to the script. If the second argument is not provided, it reads input from standard input (<&0 means read from stdin).
    • "${(@ps[$2])" is an expansion that performs parameter splitting.
    • @ specifies that the expansion should be split into separate array elements.
    • (ps[$2]) is a parameter expansion that performs word splitting on the second argument.
  3. The entire expression "${(@ps[$2])"${2:-"$(<&0)"}"}" is wrapped in parentheses and assigned to the variable specified by $1.

In summary, this script takes two arguments: $1 represents the name of the array variable, and $2 represents the values to be assigned to that array. It then assigns the array $2 to the variable named by $1 after performing parameter and word splitting on the second argument. If the second argument is not provided, it reads input from standard input.

[-] varsock@programming.dev 1 points 3 years ago

curious to see if AI can decipher? Certainly! bonus that we get so see potentially beneficial shell

[-] varsock@programming.dev 1 points 3 years ago

what surprised me here is how much traffic bing gets 😅 integrating with AI was a real pro move, it seems.

Any insight into how much the reduction in traffic is just restricting API usage and actual user interaction? Surely there is a correlation in more API usage (if not just scraping) would drive more engagement?

view more: ‹ prev next ›

varsock

0 post score
0 comment score
joined 3 years ago
MODERATOR OF