share phone internet connected to pc with wifi and connected devices

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

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 *