I've been trying to run TOR on my router and have it forward traffic 24/7 as I think it is very much needed in this time and age of oppressive states. TOR is installed and is running, though the outside TOR network can not connect to it.
I set up port forwarding in the TomatoUSB GUI like this:
ON TCP (No src address) 9001 (No int port) 192.168.0.1 TCP
It does not work. The log reveals that TomatoUSB drops the packets.
After troubleshooting the port forwarding config, I gave up, googled and came up with:
iptables -I INPUT 1 -p tcp —dport 9001 -j ACCEPT
And it works. For a while. Then it stops working.
So I try it again.
iptables -L verifies the above rule is in place.
And it works. For a while. Then it stops working again.
iptables -L reveals the above rule is gone.
So I dug deeper and came up with /etc/iptables.
There the port forwarding from the TomatoUSB GUI is shown as:
-A wanin -p tcp -m tcp -d 192.168.0.1 —dport 9001 -j logaccept
So I try to add a rule by hand, but it is removed as soon as I do anything in the TomatoUSB GUI.
What am I doing wrong, and what should I do instead?
Thank you very much in advance!