towme wroteI have connected my home gateway (ubuntu 12.04) through an openvpn tunnel to my workplace gateway (also ubuntu 12.04).
The setup is working perfectly I can ping and ssh into any computer on each side.
The only problem I have is that if I try to forward port 22 from one of our public ips at the workplace to my home gateway it does not work. (If I change the destination ip in the rule to be internal network at my workplace then everything works perfectly)
Is the machine where 1.2.3.4 resides a different machine to the one with the openvpn link?
As it sounds like the machine you're doing the port forwarding on doesn't know how to route to either the tun network or your home one, you'd need to make sure that knows that 192.168.112.192/26 and/or 192.168.162.0/24 are routed to via 192.168.57.your-tun-server
you could try using tcpdump on the tun interfaces at both ends to see if the packets are at least getting that far
tcpdump -i tun0 -nn src or dst port 22