1

I'm currently using sshuttle to access some VPN-restricted resources, the vanilla version of "route everything" works fine but I'd like to know how to use it to route only traffic to those servers.

I should mention that I'm not familiar with the subnet notation and most networking concepts, it's probably trivial for someone with the background knowledge.

Thank you.

Samus_
  • 259

1 Answers1

2

I started reading Beej's Guide to Network Programming and while I still don't fully understand everything involved here, I've found the answer I was looking for.

To only route traffic to a speficic host you should use <IPv4-address>/32 instead of 0/0 as in the example.

My reasoning was that if 0/0 means "route everything" and /0 means "all the address is the host portion" then to reverse it I should specify the address I want to connect to and also make it entirely the network portion which turns out to be /32 for IPv4.

Samus_
  • 259