I'm a newbie. I don't know what I don't know.
I have a machine running Tails with internet via WiFi, and I want to extend internet (tor) from that machine to other(s) via the ethernet interface.
I have connected another machine to the one with Tails, running Linux (Mint). I set up both ethernet interfaces with static ip's.
My understanding is that, to make this work, I just have to configure the firewall.
My attempts started by using ufw, following this post.
# NAT table rules *nat :POSTROUTING ACCEPT [0:0] # Forward traffic through eth0 - Change to match you out-interface -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE # don't delete the 'COMMIT' line or these nat table rules won't # be processed COMMIT
So far I didn't forward the traffic from wlan0 to eth0. I found these rules to accomplish that:
-A FORWARD --in-interface wlan0 -j ACCEPT -A POSTROUTING --out-interface eth0 -j MASQUERADE
But i didn't get it to work. I don't know if it's something missing, or more configuration is needed, or the order of the rules, or if I have to use ufw syntax, or a mix of all those. I tried every combination I could Imagine.
I also tried the above rules usin
iptables, with no result.
I should add that incoming internet is filtered.
Thanks for your attention and patience.