Hi,
I have an ISP provided router that connects to the internet, behind that I have a wrt54g running dd-wrt v24 sp2 build 18777 with openvpn client connecting to a vpn provider (strongvpn) to give me a WAN address in a different location. I have a network (server and client PCs) behind the wrt54g and I used to have a vpn setup so that all traffic on the wrt54g LAN went thru the vpn WAN address, and port forwarding from the vpn WAN address to certain ports on the server. (smtp etc).
This worked perfectly for a couple of years until I had a power surge that fritzed the 54g and the old version of dd-wrt is not supported by my VPN provider any more.
So I upgraded dd-wrt and installed openvpn to the strongvpn's supported version, only to find that my NATing/forwarding from the vpn WAN address is no longer working.
I'm no Linux expert and iptables confuses the hell out of me, but this is what I used to run as additional commands in my startup (one per port)
iptables -t nat -A PREROUTING -i tun1 -p TCP --dport 25 -j DNAT --to-destination 192.168.x.x
As I said, that used to work, but no longer does and I'm stuck. The VPN and browsing thru the VPN WAN address works perfectly, but the NAT?forwarding doesn't. . .
any suggestions would be most welcome.
haven't got Visio to hand - so here's a hand drawing . . .
http://sdrv.ms/113GYu1
thanks in advance for any help.