I have a debian server ip address 10.0.59.201 with minimal IPTABLES (dns, ping, ssh)
I have a Mikrotik fw that has a Public IP range 73.250.59.0/24
I want to expose this private local server to the internet and have inbound outbound traffic go thru a single IP (73.250.59.201).
I did
for outgoing:
chain=srcnat action=src-nat to-addresses=73.250.59.201 src-address=10.0.59.201 out-interface=ether7
for incoming
chain=dstnat action=dst-nat to-addresses=10.0.59.201 dst-address=73.250.59.201
I can’t ping 73.250.59.201 or access ssh. From the vm server I can ping IP’s. but not dns names.
I obviously am missing something but not sure what. Total noob at this.
Ultimate goal is to no longer assign Internet accessible IP’s directly to my vm server interfaces and have to worry about renumbering 100’s of ip’s by going to each server. Want instead to have the Mikrotik FW to have the publicly accessible IP and redirect to an internal vm that has an IP address in the 10.0.59.x range. The vm’s will have their own firewalls as well, just want the fw to act as a switchboard and if I have to renumber my pulblic IP’s I would just have to do a replace on all files in the mikrotik instead of having to go to each VM.
Thanks!