First possibility is that you did everything right but forgot to enable IP forwarding in the kernel. Edit the file sysctl.conf and set
Code:
net.ipv4.ip_forward=1
then run
to have the kernel read the new setting.
If that doesn't work, then let's try this. Assign the router's WAN port and the ethernet port on the media center PC to static IP addresses within the same subnet, e.g., 192.168.1.1-255. Make sure the router's default route points to the PC upstream. On the PC, add a masquerading rule like
Code:
sudo iptables -t nat -A POSTROUTING -o wlan0 -j SNAT --to ip.addr.on.wifi
replacing ip.addr.on.wifi with the address assigned to the PC by the wifi service, and wlan0 with the name of the wifi interface on your machine. (These days it can be something like "wlxec086b1841a7" rather than the simpler "wlan0" used in earlier kernels.) Run the command "ip addr" to see the interfaces on the machine and the addresses to which they are assigned. Make sure the PC's default route points to the wifi router upstream (that should already be the default).
Bookmarks