WEBVTT
Kind: captions
Language: en

00:00:00.000 --> 00:00:05.600 align:start position:19%
Welcome back to another episode of Bro
opens Wireshark for content. Russia just

00:00:03.680 --> 00:00:08.680 align:start position:19%
banned VPNs again, but that hasn't
stopped anyone from playing STALKER. And

00:00:07.360 --> 00:00:12.280 align:start position:19%
I'm going to show you how you can still
use a VPN if your government has a

00:00:10.440 --> 00:00:15.200 align:start position:19%
national sperg out and bans them, too,
because there's definitely a non-zero

00:00:13.800 --> 00:00:18.360 align:start position:19%
chance these days. All right, so how
does the ISP know if I'm accessing a

00:00:16.800 --> 00:00:21.680 align:start position:19%
VPN? Well, I'm going to connect to a
server like normal, and we can see all

00:00:19.920 --> 00:00:24.600 align:start position:19%
these packets immediately fly across the
network. So, I'm going to stop the

00:00:23.040 --> 00:00:27.480 align:start position:19%
packet capture and save it, and now we
can take a look at what just happened.

00:00:26.000 --> 00:00:30.360 align:start position:19%
I'm using a tool called Wireshark, by
the way, if you want to follow along at

00:00:28.840 --> 00:00:33.120 align:start position:19%
home. These first packets I'm not
worried about, these are just failed

00:00:31.480 --> 00:00:36.560 align:start position:19%
connections. But, let's take a look at
the successful ones. Before I even click

00:00:35.120 --> 00:00:40.120 align:start position:19%
on any of these packets, we can look at
the protocol, and already Wireshark

00:00:38.280 --> 00:00:43.520 align:start position:19%
detected that this was a VPN connection
trying to happen. It's automatically

00:00:41.600 --> 00:00:47.600 align:start position:19%
labeled as WireGuard traffic, and your
ISP is able to detect this as well using

00:00:45.640 --> 00:00:50.880 align:start position:19%
something called DPI, or deep packet
inspection. So, if I click on the

00:00:48.960 --> 00:00:55.160 align:start position:19%
handshake initiation, the packet that
starts the connection with the VPN, we

00:00:52.640 --> 00:00:58.760 align:start position:19%
can see that the payload is 148 bytes,
which is the standard payload size for a

00:00:56.920 --> 00:01:01.720 align:start position:19%
WireGuard handshake initiation. Now, if
I click it, it'll show me the bytes of

00:01:00.160 --> 00:01:06.120 align:start position:19%
the payload. And the first byte here,
where it says 01, is in the WireGuard

00:01:03.680 --> 00:01:10.320 align:start position:19%
message type field. 01 is the handshake
initiation, 02 is a handshake response,

00:01:08.720 --> 00:01:13.440 align:start position:19%
like in this one. Then, all the others
after that will start with 04. But, the

00:01:12.080 --> 00:01:17.320 align:start position:19%
main thing I want you to get from this
is that this is a widely recognizable

00:01:15.280 --> 00:01:21.120 align:start position:19%
pattern, right? So, it's very easy for a
deep packet inspection system to

00:01:18.880 --> 00:01:24.320 align:start position:19%
recognize this as WireGuard traffic and
block your VPN connection. So, when you

00:01:22.880 --> 00:01:27.760 align:start position:19%
have a man in the middle inspecting
everything, what do you do? Well, you

00:01:25.880 --> 00:01:31.440 align:start position:19%
have to make this look like a random
garbage. You have to obfuscate it. I'm

00:01:29.640 --> 00:01:34.960 align:start position:19%
going to connect to my VPN again, only
this time I'm going to select the option

00:01:33.120 --> 00:01:38.360 align:start position:19%
for Shadowsocks. Shadowsocks was
invented in China back in 2012 to

00:01:36.840 --> 00:01:41.480 align:start position:19%
circumvent the Great Firewall, and it's
been around ever since. And if we look

00:01:39.840 --> 00:01:44.480 align:start position:19%
at the PCAPs for this connection, we can
already see something entirely

00:01:42.720 --> 00:01:48.080 align:start position:19%
different. Every one of these packets is
now labeled as a UDP packet, and if we

00:01:46.480 --> 00:01:52.200 align:start position:19%
look further, it just labels it as
generic data. Wireshark and your ISP are

00:01:50.600 --> 00:01:55.080 align:start position:19%
going to have no idea what this is.
Also, the size of each one of these

00:01:53.480 --> 00:01:59.360 align:start position:19%
packets is going to be different, too.
This just looks like random UDP traffic

00:01:57.120 --> 00:02:02.560 align:start position:19%
going to this IP. And your ISP and
anything else monitoring the connection

00:02:01.000 --> 00:02:06.080 align:start position:19%
is none the wiser. The way that
Shadowsocks works is that once the data

00:02:04.360 --> 00:02:09.759 align:start position:19%
is already encrypted by WireGuard and
it's ready to be sent to the VPN server,

00:02:08.000 --> 00:02:14.120 align:start position:19%
Shadowsocks wraps it and encrypts it
again and adds its own headers making it

00:02:11.720 --> 00:02:18.160 align:start position:19%
look like TCP or UDP traffic. From all
that specifically it uses UDP. Before

00:02:16.280 --> 00:02:21.480 align:start position:19%
the packet gets sent to the VPN, it gets
sent to the bridge where Shadowsocks

00:02:19.800 --> 00:02:25.560 align:start position:19%
unwraps it and then forwards the packet
onto the VPN server. Again, no one sees

00:02:23.640 --> 00:02:28.840 align:start position:19%
your connection to a VPN server. They're
just going to see the Shadowsocks

00:02:26.959 --> 00:02:32.640 align:start position:19%
bridge. So, if you want to use a VPN in
a place where ISPs will ban them, the

00:02:30.720 --> 00:02:35.680 align:start position:19%
easiest way is to pick a VPN client with
obfuscation built in. If there's another

00:02:34.320 --> 00:02:38.840 align:start position:19%
one you want me to talk about or you
want to educate the masses about your

00:02:37.200 --> 00:02:43.000 align:start position:19%
favorite obfuscation technique, let me
know in the comments. I'll catch you

00:02:40.080 --> 00:02:43.000 align:start position:19%
guys in the next one.

