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

# Forward traffic through eth0 - Change to match you out-interface

# don't delete the 'COMMIT' line or these nat table rules won't
# be processed

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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.