Pi's eth0 is connected to main router and it got 192.168.0.130 and eth1(192.168.4.1) is connected to my workstation PC where I want to use the Tor Router.
The problem I face is, from the workstation pc, I am not able to ssh to the router as 192.168.0.130 or 192.168.4.1
Both addresses are pingable from the workstation pc.
What firewall rule I should place on the pi to make the ssh work from workstation pc?
Sorry I should have been clear, no openwrt involved here.
Yes, ssh work till the moment, I run below command,(Till I run that, internet wont come to workstation pc)
I get below error, when trying to add the first rule you gave, iptables: Bad rule (does a matching rule exist in that chain?).
Added second rule, still no difference.
Note: I installed iptables by running below command,
You can install arm or x86 vm of old OpenWRT (21 or older) to determine iptables rules rendered from these visual rules. Programming ufw or firewalld do emit such rules is way out of scope from here.