I want to be able to hit my dev website when using my VPN instead of the live website so I experimented, trying to use these rules in /etc/config/firewall:
# When developing with test web server on nucmm and using VPN (source IP) - HTTP
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcp'
option src_ip '130.100.100.100'
option src_dport '80'
option dest_port '80'
option name 'WEB'
option dest_ip '192.168.2.164'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcp'
option src_dport '80'
option dest_port '80'
option name 'WEB'
option dest_ip '192.168.2.144'
# When developing with test web server on nucmm and using VPN (source IP) - HTTPS
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcp'
option src_ip '130.100.100.100'
option src_dport '443'
option dest_port '443'
option name 'HTTPS'
option dest_ip '192.168.2.164'
config redirect
option target 'DNAT'
option src 'wan'
option dest 'lan'
option proto 'tcp'
option src_dport '443'
option dest_port '443'
option name 'HTTPS'
option dest_ip '192.168.2.144'
The only trouble is that this didn't work, and I wasn't able to connect to either live or dev server. Obviously I'm doing this wrong. What should I do?