With this snippet all requests to interface wlx74..55c will be routed to wlp2s0
#!/bin/bash sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING --out-interface wlp2s0 -j MASQUERADE sudo iptables -A FORWARD --in-interface wlx74da387e955c -j ACCEPT
If more then only this two interfaces define it like this:
#!/bin/bash sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING --out-interface wlp2s0 -j MASQUERADE sudo iptables -A FORWARD --in-interface wlx74da38e2e914 --out-interface enp8s0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD --in-interface enp8s0 --out-interface wlx74da38e2e914 -j ACCEPT