Hi
I have 5 public Ip
And mikrotik switch
I want redirect 1 public ip for NETCCU from MT-Switch
And 4 public ip for Mikrotik server from MT-Switch
Secondly I have to redirect 2 public ip from MT server
1 for squid cache
1 for Splynx Radius
How can I NAT all this configuration ???
Regards
You can use srcnat and instead of using masquerade you can choose srcnat option.
Can you post the script if it’s possible !
ip firewall nat
add action=src-nat to-addresses=xxx.xxx.xxx.xxx to-ports=0-65535 chain=srcnat comment="Description fo nat" dst-address=0.0.0.0/0 src-address=yyy.yyy.yyy.yyy/32
add action=src-nat to-addresses=xxx.xxx.xxx.xxx to-ports=0-65535 chain=srcnat comment="Description fo nat" dst-address=0.0.0.0/0 src-address=yyy.yyy.yyy.yyy/24
xxx.xxx.xxx.xxx = public ip you want the internal service or server to appear as
yyy.yyy.yyy.yyy/32=individual server ip
yyy.yyy.yyy.yyy/24=local subnet for all other computers to access internet.
Modify the srnat as you need to adding more if you require.