Ok…i’m going craazy…
i tried and tried but no use??!~~!!
here r my problem
My isp gives me two ips
169.18.0.x
169.18.0.y
and i have mikrotik router"thanks to mk…the network is much faster now"
and i have a local network 10.5.50.0/24
include 4 computers.
i tried to make the router take on ip and make one of my computers “the main server” takes the other external ip
my servers ip is 10.5.50.200
here r what i did
[admin@MikroTik] ip address> add address=169.18.0.x/24 interface=Public
[admin@MikroTik] ip address> add address=169.18.0.y/24 interface=Public
[admin@MikroTik] ip address> add address=10.5.50.0/24 interface=Local
[admin@MikroTik] ip route> add gateway=169.18.0.1 prefsrc=169.18.0.x
admin@MikroTik] ip firewall nat> add action=dst-nat chain=dstnat \ dst-address=169.18.0.y/24 to-addresses=10.5.50.200
admin@MikroTik] ip firewall nat> add action=src-nat chain=srcnat \ src-address=10.5.50.200/24 to-addresses=169.18.0.y
admin@MikroTik] ip firewall nat> add action=src-nat chain=srcnat \ src-address=10.5.50.0/24 to-addresses=169.18.0.x
but its not working…
why is it..is there anything missing!!!
there is one thing may be usefull…
when i change the dst and src rules to be between the 0.0.0.x and 10.5.50.200…it works…
but in that case 50% of the problem is solved..
i have my server with external ip
but i didnt use the 2nd ip…
I think you mistyped something. It’s not possible to have such ip and subnet mask combination like: 10.5.50.200/24. Subnet mask for one host is /32 not /24. And router really have ip 10.5.50.0?
So this should work:
/ ip address
add address=169.18.0.x/24 interface=Public
add address=169.18.0.y/24 interface=Public
add address=10.5.50.1/24 interface=Local
/ip route add gateway=169.18.0.1 prefsrc=169.18.0.x
/ ip firewall nat
add action=dst-nat chain=dstnat dst-address=169.18.0.y to-addresses=10.5.50.200
add action=src-nat chain=srcnat src-address=10.5.50.200 to-addresses=169.18.0.y
add chain=srcnat src-address=10.5.50.0/24 action=masquerade out-interface=Public
thanks aloot 4 ur reply
i tried that…its not working..i dont know y…its so strange…
it works only when i jusr make the dst and src nat for 169.18.0.x ip
but when i put the 169.18.0.y its not working
ip firewall nat
add action=dst-nat chain=dstnat dst-address=169.18.0.X to-addresses=10.5.50.200
add action=src-nat chain=srcnat src-address=10.5.50.200 to-addresses=169.18.0.x
add chain=srcnat src-address=10.5.50.0/24 action=masquerade out-interface=Public
do i have to add 169.18.0.1 as a gateway for 169.18.0.y