How to connect to machine anonymously without a VM?

I think everyone knows that you should never connect to a machine using your real IP, so that's when a virtual machine and a VPN can do the job in maintain your PC anonymous. But my problem is I don't want to use a VM (my PC have only 4GB RAM), and I want to know some way that I could connect my real machine with two VPNs, something like:

openvpn > Openvpn htb > machine

I've searched about vpn chaining but I don't know if it could work with the openvpn file of htb, because it's not a "normal" internet vpn that I would tunnel all my internet traffic.

Comments

  • When you say "machine" in this context, do you mean a HTB box?

    If so, then I think you are overthinking the risks here. The main reason people use VMs is that most people dont use Kali/parrot as their day to day OS. If you do, then I wouldn't worry too much about connecting it via OpenVpn to HTB.

    TazWake

    Happy to help people but PLEASE explain your problem in as much detail as possible!

    Also: https://www.nohello.com/

  • Thanks for the response, I was thinking if I'm too paranoid haha.
    You right that I shouldn't worry too much.

  • @TazWake maybe we should mention another issue you can have, I'm not sure if OP asked about that actually? Some people have the problem they can't access public internet while connected to HTB vpn. It's a configuration issue.

    Also some folks like me like to keep their security research on a public VPN to get some anonymity when googling for "kali phishing attack with malware" :D

    Hack The Box

    BYONC (Don't steal, my T-Shirt)

  • I can access internet while connected with HTB vpn, but even if I'm running another vpn at same time the traffic will be separate (I open one vpn with network manager from Parrot and the HTB vpn with terminal openvpn) because one instance is running on tun0 and the other is running on tun1, HTB vpn still seeing my true IP.

    I don't if it makes any sense what I wrote, but I tried my best to explain something I don't even know if is how it works.

  • @sparkla said:

    @TazWake maybe we should mention another issue you can have, I'm not sure if OP asked about that actually? Some people have the problem they can't access public internet while connected to HTB vpn. It's a configuration issue.

    Totally worth mentioning - but I do think it is worth a different thread. Most OVPN configs should allow non-HTB traffic to go out to the internet but some may need tweaking.

    Also some folks like me like to keep their security research on a public VPN to get some anonymity when googling for "kali phishing attack with malware" :D

    There is nothing wrong with this at all. The HTB VPN might not help though as it wont route traffic to google over the VPN. I've never tried but you could probably run two VPNs without much trouble (it is easier to have a VM though, then you can run on VPN on that and a second on the host)

    TazWake

    Happy to help people but PLEASE explain your problem in as much detail as possible!

    Also: https://www.nohello.com/

  • edited July 15

    @TazWake I meant it's a host (client) configuration issue, not a misconfig of the VPN itself. I can't really remember what it was on Linux but Ippsec either had it mentioned in a video or in the forums... I know that's not much help.

    Another issue on Linux can occur with resolvconf, cause most VPNs bring their own nameservers along, usually on 10.x.x.x. - I made myself a script to switch clean between public VPN and HTB VPN. <- @anrkuist this is a bit of a pain but still a quick and easy solution, I'm using this for more than 6 months now.

    I'm curious myself how to run 2 VPNs side-by-side cause I'm always having issues with multiple VPN connections simultaneously.

    Hack The Box

    BYONC (Don't steal, my T-Shirt)

  • @sparkla said:

    I'm curious myself how to run 2 VPNs side-by-side cause I'm always having issues with multiple VPN connections simultaneously.

    A lot of it depends on the VPN, I think.

    As an example, right now I have a NordVPN tunnel running and two openvpn tunnels (one HTB and one to a server of my own). It has created multiple adapters in my networking and all three VPNs are to different subnets.

    I suspect if all three were 10/8 (for example) things would go wrong, but it seems stable for at least a few minutes with 1x 192.168/16 address, 1x 10/8 and 1x 172.16/12 address.

    I can't say if it is going to be stable, consistent or if it will allow me to sling packets across the wire at targets.

    TazWake

    Happy to help people but PLEASE explain your problem in as much detail as possible!

    Also: https://www.nohello.com/

  • Yeah, I know there's no easy answer, the paket routing can be pretty involved and sometimes impossible. The fact that there's several different "networking stacks" (like netplan or networkmanager) on Linux doesnt make it easier to answer.

    Hack The Box

    BYONC (Don't steal, my T-Shirt)

Sign In to comment.