I found in documentation this:
http://doc.m0n0.ch/handbook/firewall-servernat.html ant it looks simple. Also i googled many forums, but my skills or uderstanding capacity isn't enough.
I have more than one WAN address available to use. Sixteen, with gateway and broadcast.
Structure of my network is simple:
internet <-> [m0n0WAN (default one wan ip) <-> m0noLAN] <-> LAN (10.0.0.0/24)
Inside my LAN i have 3 webservers and goal is each of them serve (accept request and reply on request) on his own WAN at port 80 thru this one m0n0wall router.
Current state is: Different 3 ports on one WAN IP (ex. 80, 88, 89) translated by NAT to port 80 on each webserver.
Then i added one Server NAT wan IP. Then i created NAT record (This WAN IP at port 80 translate to this LAN IP port 80. Then i checked if it works from internet. Nothing happened.
Desired state i see like following:
intertnet - m0n0wall default WAN 1.2.3.4:80---NAT/Rule---m0n0wall LAN (10.0.0.1) ----- Webserver1 (10.0.0.2:80)
m0n0wall Server NAT WAN 1.2.3.5:80---NAT/Rule---m0n0wall LAN (10.0.0.1) ----- Webserver2 (10.0.0.3:80)
m0n0wall Server NAT WAN 1.2.3.6:80---NAT/Rule---m0n0wall LAN (10.0.0.1) ----- Webserver3 (10.0.0.4:80)
Just with two network cards. One for WAN one for LAN.
What i'm missing? I have created secondary WAN IP via Server NAT option, i have NAT record with conditions from guide above, i have automaticaly added rule in inbound NAT list. I'm using ver. 1.34. I have one IPSec tunnel.
Thanks for reply. Spimfurt