Skip to content

Instantly share code, notes, and snippets.

Avatar
🤫
Working on some private repos...

Steve Moretz Stevemoretz

🤫
Working on some private repos...
View GitHub Profile
View When it gets stuck
08:27:02.222593 IP 5.238.143.150.53316 > 6.8.198.252.netmagic: Flags [S], seq 3655431286, win 65535, options [mss 1404,nop,wscale 6,nop,nop,TS val 281585021 ecr 0,sackOK,eol], length 0
08:27:02.322558 IP 5.238.143.150.53316 > 6.8.198.252.netmagic: Flags [.], ack 3613648354, win 2066, options [nop,nop,TS val 281585117 ecr 409006], length 0
08:27:02.323462 IP 5.238.143.150.53316 > 6.8.198.252.netmagic: Flags [P.], seq 0:56, ack 1, win 2066, options [nop,nop,TS val 281585117 ecr 409006], length 56
08:27:02.427542 IP 5.238.143.150.53316 > 6.8.198.252.netmagic: Flags [.], ack 69, win 2065, options [nop,nop,TS val 281585220 ecr 409112], length 0
08:27:46.865373 IP 5.238.143.150.53443 > 6.8.198.252.netmagic: Flags [S], seq 1338040642, win 65535, options [mss 1404,nop,wscale 6,nop,nop,TS val 281629337 ecr 0,sackOK,eol], length 0
08:27:46.965405 IP 5.238.143.150.53443 > 6.8.198.252.netmagic: Flags [.], ack 308764548, win 2066, options [nop,nop,TS val 281629435 ecr 453649], length 0
08:27:46.969300 IP 5.238.143.150.534
View gist:f3f7b3dda5a2eac34f1dbb4d80c4f5a1
tcpdump -ni wg0 tcp and dst port 1196
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wg0, link-type RAW (Raw IP), capture size 262144 bytes
06:55:47.789978 IP 10.66.66.19.49796 > 6.8.198.252.netmagic: Flags [S], seq 1730689418, win 65535, options [mss 1240,nop,wscale 6,nop,nop,TS val 276154861 ecr 0,sackOK,eol], length 0
06:55:47.886842 IP 10.66.66.19.49796 > 6.8.198.252.netmagic: Flags [.], ack 4243412703, win 2053, options [nop,nop,TS val 276154955 ecr 209288918], length 0
06:55:47.888647 IP 10.66.66.19.49796 > 6.8.198.252.netmagic: Flags [P.], seq 0:56, ack 1, win 2053, options [nop,nop,TS val 276154955 ecr 209288918], length 56
06:55:48.043832 IP 10.66.66.19.49796 > 6.8.198.252.netmagic: Flags [.], ack 69, win 2052, options [nop,nop,TS val 276155111 ecr 209289017], length 0
06:55:48.049968 IP 10.66.66.19.49796 > 6.8.198.252.netmagic: Flags [P.], seq 56:357, ack 69, win 2052, options [nop,nop,TS val 276155111 ecr 209289017], length 301
06:55:48.147764 IP 10.66.66.19
View ssh tunnel
while true
do
sudo sshuttle -r root@6.8.198.252 -x 6.8.198.252 0/0 --dns --ssh-cmd "ssh -i /home/s/.ssh/id_rsa -D 1080 -C"
sleep 500
done
View ip route.txt
ip route
default via 6.8.198.225 dev ens192
6.8.198.224/27 dev ens192 proto kernel scope link src 6.8.198.252
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.1
10.66.66.0/24 dev wg0 proto kernel scope link src 10.66.66.1
169.254.0.0/16 dev ens192 scope link metric 1002
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1