-
Download the file from this Github Repository
-
After extracted, open the "unlimited-hotspot-main" folder, open the "macOS" folder.
-
Open Terminal
-
Run command with superuser (root) privileges.
sudo -i
- cp drag the set-ios-tcp-stack.sh file in, press Space, type in /var/root
cp {file} /var/root
- cp drag the felikcat.set.ios.tcpstack.plist file in, press Space, type in /Library/LaunchDaemons
cp {file} /Library/LaunchDaemons
- This permission enables the file to be run as a program or script.
chmod +x /var/root/set-ios-tcp-stack.sh
- This ensures that it is enabled to run automatically in the future.
launchctl load -w /Library/LaunchDaemons/felikcat.set.ios.tcpstack.plist
- Now we need to add three Packet Filter rules and enable PF.
nano /etc/pf.conf
- Add the following three lines before nat-anchor:
scrub in min-ttl 65
scrub out min-ttl 65 random-id
scrub reassemble tcp
- Reloads the Packet Filter (PF) firewall rules from the /etc/pf.conf file, applying any changes made to the configuration.
pfctl -f /etc/pf.conf
- Enables the Packet Filter (PF) firewall, making it start enforcing the configured rules
pfctl -e
Run these 2 command after every sleep or restarts
- Set outgoing IPv4 Packets to 65 (default value=64 on macOS)
sudo sysctl -w net.inet.ip.ttl=65
- Set Hop Limit to 65 (default value=64 on macOS)
sudo sysctl -w net.inet6.ip6.hlim=65