Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nam1n15
scripts
Commits
b14a543e
Commit
b14a543e
authored
1 year ago
by
nam1n15
Browse files
Options
Downloads
Patches
Plain Diff
updated script with extraneous debugging + tunsocks, since ocproxy stopped working
parent
34506058
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tunsocks.txt
+11
-0
11 additions, 0 deletions
tunsocks.txt
uni-vpn.sh
+27
-2
27 additions, 2 deletions
uni-vpn.sh
with
38 additions
and
2 deletions
tunsocks.txt
0 → 100644
+
11
−
0
View file @
b14a543e
https://github.com/russdill/tunsocks
sudo dnf install libevent-devel automake
git submodule init
git submodule update
./autogen.sh
./configure
make
# yeah this is not reproducible at all
This diff is collapsed.
Click to expand it.
uni-vpn.sh
+
27
−
2
View file @
b14a543e
#!/bin/bash
set
-eu
find_hipreport
()
{
echo
"https://wiki.archlinux.org/title/Pacman/Rosetta - your distribution"
echo
"dpkg -S openconnect | grep hipreport - debian"
echo
"dnf repoquery -ql openconnect | grep hipreport - fedora"
echo
"pacman -Ql openconnect | grep hipreport - arch"
}
debug_info
()
{
echo
--
debug info
--
openconnect
--version
file
$(
which ocproxy
)
ls
-la
$(
which ocproxy
)
sha256sum
$(
which ocproxy
)
#ocproxy --version
echo
}
debug_info
csd_wrapper
=
""
#--csd-wrapper /usr/lib/x86_64-linux-gnu/openconnect/hipreport-android.sh"
csd_wrapper
=
"--csd-wrapper /usr/libexec/openconnect/hipreport.sh"
# fedora
user
=
"--user nam1n15"
pass
=
""
port
=
"11080"
openconnect
--script-tun
--script
"/usr/bin/ocproxy -D
$port
"
--protocol
=
gp globalprotect.soton.ac.uk
$csd_wrapper
$user
$pass
#openconnect --script-tun --script "/usr/bin/ocproxy -D $port" --protocol=gp globalprotect.soton.ac.uk $csd_wrapper $user $pass
# debug: tcpdump to /tmp/tcpdump
# openconnect --script-tun --script "/usr/bin/ocproxy -v -D $port" --protocol=gp globalprotect.soton.ac.uk $csd_wrapper $user $pass
# for some reason, ocproxy stopped working and tunsocks does work, so..
openconnect
--script-tun
--script
"/usr/local/bin/tunsocks -D
$port
"
--protocol
=
gp globalprotect.soton.ac.uk
$csd_wrapper
$user
$pass
echo
Created socks5 proxy to university VPN on port
$port
echo
Connect with
http_proxy
=
"socks5h://localhost:11080"
, or
set
firefox settings
(
or foxyproxy
)
, or use proxychains
echo
'
Connect with http_proxy="socks5h://localhost:11080" , or set firefox settings (or foxyproxy), or use proxychains
'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment