My normal subnet is 192.168.1.___, and my ICS subnet I'm using is 192.168.2.____. I've got this mostly working, as follows (using https://help.ubuntu.com/community/Inter ... ptables.29 as a guide)
Code: Select all
sudo ip addr add 192.168.2.1/24 dev enp3s0
sudo iptables -A FORWARD -o wlp6s0 -i enp3s0 -s 192.168.2.0/24 -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -F POSTROUTING
sudo iptables -t nat -A POSTROUTING -o wlp6s0 -j MASQUERADE
Ideally, my linux box (with the wifi card), my windows box (over ethernet), and steam link (over ethernet, but plugged into the router, not my linux box) would all be on the same subnet, but as long as steam link can see the windows box, I'll be happy. (It might be possible, for instance, to use port forwarding somehow to take care of Steam)
I'm not committed to using iptables if there's a better way.
What am I missing?
Thanks for the help!