Hi
I have a 497AH
I have a 6 static IPs from the telco.......152-157
I have ethernet 2 set as the Wan port with all addresses 152-157 listed on that port
I added 157 as the first IP entry on Ethernet 2 and it showed up in the route list as follows
Destination = x.x.x.157/29 ....gateway=blank ...gateway interface= blank...Interface=Ether2 distance=0....Routing Mark=blank...........Pref Source=x.x.x.157
None of the other IPs added to Ether2 showed up in the Route list.
I have Ethernet 1 set up with 10.100.123.21/19
all trafic from my network hits ethernet 1 and uses 10.100.123.21 as their gateway.
I am trying to pass one of my global IPs to a specific IP IE: 10.100.121.48
so I set dstnat and scrnat as instructed here
Destination NAT
If you want to link Public IP 10.5.8.200 address to Local one 192.168.0.109, you should use destination address translation feature of the MikroTik router. Also if you want allow Local server to talk with outside with given Public IP you should use source address translation, too.
Add Public IP to Public interface:
/ip address add address=10.5.8.200/32 interface=Public
Add rule allowing access to the internal server from external networks:
/ip firewall nat add chain=dstnat dst-address=10.5.8.200 action=dst-nat \
to-addresses=192.168.0.109
Add rule allowing the internal server to talk to the outer networks having its source address translated to 10.5.8.200:
/ip firewall nat add chain=srcnat src-address=192.168.0.109 action=src-nat \
to-addresses=10.5.8.200
ok so I did
step 1
/ip address add address=x.x.x.154/29 interface=Public
Step 2
/ip firewall nat add chain=dstnat dst-address=x.x.x.154 action=dst-nat \
to-addresses=10.100.121.48
Step 3
/ip firewall nat add chain=srcnat src-address=10.100.121.48 action=src-nat \
to-addresses=x.x.x.154
So what happens is when you are remoting into the host at 10.100.121.48 using the global of x.x.x.154 it goes in on that global address and hits the Host the the dstnat rule is working
However when the host does an ip check they do not get x.x.x.154 they get x.x.x.157 which as I stated above was the first IP i added to tha interface and the only IP tha showed up in the route list.
Why does it not show the IP as the 154 address why is the scrnat not working .............I am lost
Any help would be great
Thanks for your time and input in advance
Stephen