Hello everyone!
Here is my setup:
ISP gave me 5 IP addresses:
11.11.11.1-5
I’v added them on my WAN interface
add address=11.11.11.1/29 comment="ip1" interface=ether1
add address=11.11.11.2/29 comment="ip2" interface=ether1
add address=11.11.11.3/29 comment="ip3" interface=ether1
add address=11.11.11.4/29 comment="ip4" interface=ether1
add address=11.11.11.5/29 comment="ip5" interface=ether1
i have 5 local subnets. Each on the different port.
add address=192.168.1.1/24 comment="office" interface=ether2
add address=192.168.2.1/24 comment="office" interface=ether3
add address=192.168.3.1/24 comment="office" interface=ether4
add address=192.168.4.1/24 comment="office" interface=ether5
add address=192.168.5.1/24 comment="office" interface=ether6
I don’t know how could i route each subnet through different WAN IP?
Ex. :
users from 192.168.1.1 goes to the internet through 11.11.11.1
users from 192.168.2.1 goes to the internet through 11.11.11.2
Should i use NAT, or mangle and route marks??
Thanks for help!