Posted: Thu Jun 21, 2018 6:19 Post subject: ddwrt port forward to 127.0.0.1
My router has static public IP. I have stunnel client installed on my router. I have stunnel server installed on my cloud VPC. I connect my router vpn client to VPC VPN server through stunnel. that works fine. I want to connect my ios device vpn through my router stunnel client both from lan and wan.
Stunnel client is listening at port 7654. I want to expose this port for both lan client and wan. So that my mobile devices can use stunnel client both from home(lan) and outside(wan).
I have tried port forward solution. i can forward wan port to any lan client but i can not forward wan port of router to localhost(127.0.0.1).
Is the stunnel listening on 192.168.1.1:7654 or only on 127.0.0.1:7654 ? So, are you able to connect from lan? If not, you need to amend the stunnel config to allow that.
If yes, maybe port forwards to itself are not possible due to *reasons* - I'm not an expert on that topic. There might be a way using iptables.