One interface multiple address.

Hi! im stuck with one issue.

I’ve one interface with multiple ip adresses like this:


WAN 10.1.44.201
10.1.44.202
10.1.44.20X

and i need a machine inside the LAN go out with one of these adresses and only these interface.
So , all the traffic from 10.1.44.209 map to 10.0.0.222 and all the traffic from 10.0.0.222 go to 10.1.44.209

10.0.0.222 ---- MKTK ---- 10.1.44.209

How to do that?


Thanks in advance!

You will need two NAT rules. The First is the Private to Public outbound. Second is the Public to Private inbound.

add action=src-nat chain=srcnat src-address=10.0.0.222 to-addresses=10.1.44.209
add action=dst-nat chain=dstnat comment=Intrus dst-address=10.1.44.209 to-addresses=10.0.0.222

Thanks!

In torch only see traffic outgoing by interface 10.1.44.201 but not with 10.1.44.209…