I' using a AVM Fritzbox as internet router, with a "main" network (192.168.178.0/24) and a guest network (192.168.179.0/24). There is a printer connected to the guest network, that I would like to use from the main network, too.
I read in another forum, that this can be done by installing a router with a 1:1 NAT that is connected to both networks. It has an IP in the main network (e.g. 192.168.178.100) and forwards all traffic directed to it to a specified addess on the other network (e.g. the printer on 192.168.179.100).
So I installed OpenWRT (19.07.6) on an Ubiquity ER-X router and tried to setup a 1:1 port forwarding. After hours of unsuccessful attempts, I hope to find somebody here to help.
I successfully did 1:1 port forwarding on a pfSense, where this is easy to setup. There I created an alias IP on one interface, a 1:1 NAT rule to connect it to the destination IP on another interface and setup afirewall rule to allow traffic. But on OpenWRT this doesn't work.
Does anybody know, how to setup OpenWRT to get a working 1:1 NAT?
Please run the following commands (copy-paste the whole block) and paste the output here, using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have
ubus call system board; \
uci export network; uci export firewall; \
head -n -0 /etc/firewall.user; \
iptables-save -c; \
ip -4 addr ; ip -4 ro li tab all ; ip -4 ru