check detail of ip with ifconfig

iptables -t nat -A POSTROUTING -o phone-conn -j MASQUERADE
iptables -A FORWARD -i phone-conn -o eth0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o phone-conn -j ACCEPT

also do not forget to set dns

Linux / UNIX set the DNS from the command line

I got this idea when I was reading this page

Share iPhone’s internet to Home network using a Raspberry Pi

Leave a Reply

Your email address will not be published. Required fields are marked *