External To Internal

Hello


i have a Public IP like : 203.188.2–.— and it’s set on Router.

now i want to fw it to a internal web server.

i use dst-nat 203.188.2–.— on port 80 to internal dst-nat 192.168.202.2 on port 80. it dosent work .

but if i use dst-nat 203.188.2–.— on port 80 to internal dst-nat 74.125.67.100 (google IP ) on port 80 it works.



so what’s the problem with my internal ip ?

thanks

you need to set up a simple DST-NAT rule that will take care of the redirection. For example:

/ip firewall nat add chain=dstnat dst-address=10.5.8.200 action=dst-nat to-addresses=192.168.0.109

(you can also specify certain ports)

thanks but it can redirect another ip like google. yahoo but it not redirect in my intrnal ip.



i add this
/ip firewall nat add chain=dstnat dst-address=203.188.242.114 action=dst-nat to-addresses=192.168.202.2

but it can’t redirect to 192.168.202.2 it say page not found.

but if i use /ip firewall nat add chain=dstnat dst-address=203.188.242.114 action=dst-nat to-addresses=74.125.67.100 it works

what’s the problem ?
pls help me

Are you testing from same subnet 192.168.202.0/24? If yes you should add another nat rule for internal traffic!

Problem Solved . by adding this

/ip firewall nat add chain=dstnat dst-address=10.5.8.200 action=dst-nat to-addresses=192.168.0.109
/ip firewall nat add chain=srcnat dst-address=192.168.0.109 action=src-nat to-addresses=10.5.8.200