-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdisable_luxbin_internet.sh
More file actions
executable file
·34 lines (28 loc) · 991 Bytes
/
disable_luxbin_internet.sh
File metadata and controls
executable file
·34 lines (28 loc) · 991 Bytes
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
#!/bin/bash
# Disable LUXBIN Internet - Switch back to regular ISP internet
echo "Switching back to regular internet..."
# Get active network interface
INTERFACE=$(route get default | grep interface | awk '{print $2}')
# Disable proxy
echo "Disabling LUXBIN proxy..."
sudo networksetup -setwebproxystate "$INTERFACE" off
sudo networksetup -setsecurewebproxystate "$INTERFACE" off
# Restore DNS
echo "Restoring DNS..."
if [ -f /tmp/luxbin_dns_backup.txt ]; then
DNS_SERVERS=$(cat /tmp/luxbin_dns_backup.txt)
if [ "$DNS_SERVERS" == "There aren't any DNS Servers set on $INTERFACE." ]; then
sudo networksetup -setdnsservers "$INTERFACE" "Empty"
else
sudo networksetup -setdnsservers "$INTERFACE" $DNS_SERVERS
fi
else
# Use common public DNS as fallback
sudo networksetup -setdnsservers "$INTERFACE" 8.8.8.8 8.8.4.4
fi
echo ""
echo "✅ Regular internet restored"
echo ""
echo "To switch back to LUXBIN:"
echo " ./setup_luxbin_internet.sh"
echo ""