u/lukmly013 💾 (lemmy.sdf.org)

18M I like computers, trains, space, radio-related everything and a bunch of other tech related stuff. User of GNU+Linux.
I am also dumb and worthless.
My laptop is HP 255 G7 running Manjaro and Linux Mint.
I own RTL-SDRv3 and RSP1 clone.

SDF Unix shell username: user224

  • 40 Posts
  • 998 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle



  • Oof, sorry. This will depend on OS and the software you use for FW configs. I am too dumb.

    For example, I use UFW on Linux. So for me it’s

    # Deny all incoming and outgoing traffic by default
    ufw default deny outgoing
    ufw default deny incoming
    
    # Allow connection to VPN server
    ufw allow out to <VPN server IP address> [port] <VPN server port number> [proto] <tcp|udp>
    
    # Allow connection via VPN interface
    ufw allow out on <interface name> from any to any
    
    # Enable UFW
    ufw enable
    

    That’s just one simple way.







  • I know they do some hotspot restrictions over there in US.

    You should be able to get around it with something like TetherFi: https://github.com/pyamsoft/tetherfi (Android)

    It creates a legacy Wi-Fi direct group and runs a proxy server on the phone. You can then connect via the proxy in some programs on your computer (e.g.: Firefox).

    You can also run a proxy server in Termux. I use tinyproxy because it’s easy to setup.

    Both of these will also go over VPN if you have that connected on your phone, as it’s basically the app (proxy server) using internet on behalf of your computer.

    Alternatively you can also use socat for port forwarding, for example to a public VPN server. Then on the computer you could set up the VPN connection as usual, but replace the IP/Port with those used by your phone locally.