Thank you for your answer, but the problem was a little more confusing than that. Some rules that I put to before.rules were working after I deleted them, and some didn't after I put them (I also tried iptables -F)... After restart everything works like it should, here is how I put it:
Code:
:POSTROUTING ACCEPT [0:0]
#forward from eth0 through eth1
-A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE
-A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.0.200:80
-A PREROUTING -i eth1 -p udp --dport 10090 -j DNAT --to 192.168.0.202:22
-A PREROUTING -i eth1 -p tcp --dport 10090 -j DNAT --to 192.168.0.202:22
COMMIT
I will be very glad if programmers of ufw would put masquerading and forwarding/routing options in their firewall so it's easy to use like Firestarter. Than having a home server and good firewall would be really easy.
Does anyone know are there such plans?