Tag Info

Hot answers tagged

1

Replace domain-name-servers 192.168.1.1; by the address of the dns server used by the laptop, or configure a dns cache server on your laptop. Use commands like nslookup or host to test the dns access on the client. You need to enable masquerading on the laptop with iptables: iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -o <wifi_interface> ...


1

I got the answer by myself. The issue was with the iptables command. It was necessary to specify the output device and also set the forward policy. iptables -t nat -A POSTROUTING -o rmnet_usb0 -j MASQUERADE iptables -P FORWARD ACCEPT After that internet becomes accessible on the linux box side. Hope this helps somebody in the same situation.



Only top voted, non community-wiki answers of a minimum length are eligible