Skip to content

Instantly share code, notes, and snippets.

@golman
Created July 30, 2017 09:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save golman/776cd29df5b9ed2c119f6c0cfcedda42 to your computer and use it in GitHub Desktop.
Save golman/776cd29df5b9ed2c119f6c0cfcedda42 to your computer and use it in GitHub Desktop.
Yota Internet sharing from iPhone
macOS
sudo sysctl -w net.inet.ip.ttl=65
linux

in terminal:

sudo vi /etc/init.d/local.autostart

paste this to file:

#!/bin/bash
sudo iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65

in terminal:

sudo chmod +x /etc/init.d/local.autostart
sudo update-rc.d local.autostart defaults 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment