-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proxise.sh
40 lines (34 loc) · 841 Bytes
/
proxise.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Copyright Abbas Davarpanah <z.abbas.13>
#https://github.com/abbasdp/vpn-ssh-tunn>
networkkill () {
networksetup -setsocksfirewallproxystate "Wi-Fi" off 2> /dev/null
echo
echo " your Proxy has bin Disabled . "
sleep 1
exit
}
networkstat () {
read -p "Enter Port Forwarding : " portf
networksetup -setsocksfirewallproxy "Wi-Fi" localhost $portf
sleep 1
echo "your Proxy Activate .."
sleep 1
}
starts () {
tput bold
echo "Internet Port Forwarding For MacBook [woman,Life,freedom] "
tput sgr0
echo "Do you Want To Enable/Disable The Proxy?"
read -p "Enter 'enable' or 'disable': " acdis
if [[ $acdis = 'enable' ]];
then
networkstat
elif [[ $acdis = 'disable' ]];
then
networkkill
else
starts
fi
}
starts