I suddenly need a wired connection for a job starting very soon but it won’t be hooked up for quite some time. I have my neighborswifi password though. Iknow this is a longshot, but would I be able to use my laptop to change a wireless connection into a wired connection?
It’s an older desktop Mac managed by the company. My laptop is an HP omen 15 with arch Linux on it


Assuming that:
On the Linux laptop:
add this line to /etc/ufw/before.rules file right after the “*nat” line
On the mac:
Those do not enable forwarding. One prints the value of forwarding and the other loads the config file.
To set it temporarily
To set it permanantly, edit /etc/sysctl.conf (or add a config file to /etc/sysctl.d/). You only need to add one line that reads ‘net.ipv4.ip_forward=1’