Make server live

I am new to MikroTik routers and i am trying to make my Ubuntu server live.

The mikrotik router is being used at my work and there are servers connected plus the internal network and so on. I have logged into the router through winbox. Then i made a NAT rule in the firewall. I actually just copied one of the existing NAT rules however i changed the internal IP and the static IP to match the internal IP i put on the server and the static IP which is pointed to the domain provider. Also port 80 is allowed. Then i added a new entry to the Address List. After everything was done i rebooted the router but i can’t connect to the server via ssh (using the internal or static IP).

I have no clue what i have missed or done wrong. I have gone through many posts but still can’t get it right.
Assistance is really urgently needed. Thanks

  1. Why you using 22 port? Ypu allowed only 80;
  2. Does counters of your NAT rule ticking?

I wanted to see if i could ssh into the server and i couldn’t. Can’t see the ip even from my pc which is on the network.
and yes allowed port 80.

I have attached a screenshot of what i have done.

Don’t really know what you mean here in question 2 [(2) Does counters of your NAT rule ticking?]
addings.jpg

If you want connect to ssh server in LAN you need to add nat dst rule for 22 port. If you want to connect to router, you need accepting rule for 22 port in input chain. But be careful, I recommend you to use source address list.

I meant that packets counter increase - rule works.

Yes the packet counter does increase.
So if the packet counter is increasing that means the rule is working so how come i can’t access the internal ip from a pc on the network?

It also seems like the server doesn’t have connection to the internet because i can ping all internal IP’s but no external ones even google.com or 8.8.8.8

Post here routes on router, nat and firewall rules.

All is working properly now.

The problem was that I had an incorrect number on the server specifically in the /etc/network/interfaces file. The default gateway was incorrect.
I can reach the server via SSH also

Thanks.

Yahoo! :slight_smile: