Dear experts,
I'm using OpenWRT for years and try to migrate from Attitude Adjustment to Chaos Calmer. After the first try was greatly failing, I setup from scratch in a test environment. However, there seems to be sometjing wrong with the zone_wan_prerouting rules.
Setup: WAN, LAN, DMZ
config interface 'dmz'
option proto 'static'
option ifname 'eth0.100'
option ipaddr '192.168.100.1'
option netmask '255.255.255.0'
For testing haproxy statistic interface is bount to 192.168.100.1:8888
Checked with lsof.
Port forwarding rule:
config redirect
option target 'DNAT'
option src 'wan'
option proto 'tcp'
option dest_port '8888'
option dest 'dmz'
option dest_ip '192.168.100.1'
option name 'test port forward dmz'
option src_dport '4488'
Resulting ipfilter rule (iptables-save)
A zone_wan_prerouting -p tcp -m tcp --dport 4488 -m comment --comment "test port forward dmz" -j REDIRECT --to-ports 8888
Same setup in attitude adjustment for port 443:
A zone_wan_prerouting -p tcp -m tcp --dport 443 -j DNAT --to-destination 192.168.5.1:443
So somethings goes really wrong in chaos calmer! There is no destination IP in the prerouting rule specified in the port forwarding ...
Or did I miss something, even debugging for days?
Any help would be appreciated?
Best regards