Server Cycling through ports trying to connect to client.

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
PointsWell
Posts: 1460
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Server Cycling through ports trying to connect to client.

Post by PointsWell »

My server output periodically shows the server attempting via activemq to connect to a server in Brisbane 45.248.77.245

Is this just me? It doesn't appear to be any service that I have called (consciously). They are all private ports...

Code: Select all

2018-08-30 10:55:33,486 org.apache.activemq.broker.TransportConnection.Transport  -Transport Connection to: tcp://45.248.77.245:60074 failed: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too (>30000) long: tcp://45.248.77.245:60074
2018-08-30 10:55:34,732 org.apache.activemq.broker.TransportConnection.Transport  -Transport Connection to: tcp://45.248.77.245:60075 failed: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too (>30000) long: tcp://45.248.77.245:60075
2018-08-30 10:58:35,086 org.apache.activemq.broker.TransportConnection.Transport  -Transport Connection to: tcp://45.248.77.245:63410 failed: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too (>30000) long: tcp://45.248.77.245:63410
2018-08-30 11:01:38,581 org.apache.activemq.broker.TransportConnection.Transport  -Transport Connection to: tcp://45.248.77.245:64164 failed: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too (>30000) long: tcp://45.248.77.245:64164
2018-08-30 11:07:09,440 org.apache.activemq.broker.TransportConnection.Transport  -Transport Connection to: tcp://45.248.77.245:64854 failed: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too (>30000) long: tcp://45.248.77.245:64854
Last edited by PointsWell on Fri Aug 31, 2018 1:06 am, edited 2 times in total.
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Server attempting to connect to 45.248.77.245

Post by BenHayat »

Once you get to the bottom of this, please share with us. Does the app run slow? it seems like each timeout takes 30 seconds, before the next try.
PointsWell
Posts: 1460
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Server attempting to connect to 45.248.77.245

Post by PointsWell »

BenHayat wrote:Once you get to the bottom of this, please share with us. Does the app run slow? it seems like each timeout takes 30 seconds, before the next try.
Haven't noticed it running before it was just because the server was idle that it showed up (when the server is running I suspect it disappears into a whole bunch of annoying mySQL warnings).

And a whois doesn't show much information about the server.
Jaymer
Posts: 2457
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Server attempting to connect to 45.248.77.245

Post by Jaymer »

I ALWAYS have my Server Output open and monitored.
Never seen anything like that.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
customaware
Posts: 2405
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Server attempting to connect to 45.248.77.245

Post by customaware »

Have you run a Penetration Test against the server.

I recently used https://pentest-tools.com which runs quite an extensive set of vulnerability tests (26) and gives you 500 credits for 45 bucks.

Revealed some very interesting stuff that I have since fixed by updating some of the configuration in the Tomcat conf files... server.xml and web.xml.

With TC 8.5 now some of the old configuration is deprecated and you need to add some of the new stuff manually.

By an large, my Aware server faired pretty well but I am glad to close the few last potential gaps.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
himanshu
Posts: 723
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Re: Server attempting to connect to 45.248.77.245

Post by himanshu »

eagles9999 wrote:Have you run a Penetration Test against the server.

I recently used https://pentest-tools.com which runs quite an extensive set of vulnerability tests (26) and gives you 500 credits for 45 bucks.

Revealed some very interesting stuff that I have since fixed by updating some of the configuration in the Tomcat conf files... server.xml and web.xml.

With TC 8.5 now some of the old configuration is deprecated and you need to add some of the new stuff manually.

By an large, my Aware server faired pretty well but I am glad to close the few last potential gaps.
Thanks for sharing stuff Mark, if there is some info which you can share with the community to keep our server safe would be nice. I will also give a try to the above tool.
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
PointsWell
Posts: 1460
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Server attempting to connect to 45.248.77.245

Post by PointsWell »

eagles9999 wrote:Have you run a Penetration Test against the server.

I recently used https://pentest-tools.com which runs quite an extensive set of vulnerability tests (26) and gives you 500 credits for 45 bucks.

Revealed some very interesting stuff that I have since fixed by updating some of the configuration in the Tomcat conf files... server.xml and web.xml.

With TC 8.5 now some of the old configuration is deprecated and you need to add some of the new stuff manually.

By an large, my Aware server faired pretty well but I am glad to close the few last potential gaps.
Will have a look at this, but for my issue the call is coming from inside the house :shock:
customaware
Posts: 2405
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Server attempting to connect to 45.248.77.245

Post by customaware »

That is EXACTLY my point.

Possible someone has been in there and doing their own thing.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
PointsWell
Posts: 1460
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Server attempting to connect to 45.248.77.245

Post by PointsWell »

eagles9999 wrote:That is EXACTLY my point.

Possible someone has been in there and doing their own thing.

Hmm interesting...

There is a weird access log called myfirstapp_access_log.txt and in it are a bunch of attempts to access from 45.248.77.204
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: Server attempting to connect to 45.248.77.245

Post by BenHayat »

PointsWell wrote: Will have a look at this, but for my issue the call is coming from inside the house :shock:
I think you may have ghost in the house. :D
PointsWell
Posts: 1460
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Server attempting to connect to 45.248.77.245

Post by PointsWell »

So I identified myself in the logs unsurprisingly, I don't need to keep my own stupidity on show here.
Last edited by PointsWell on Fri Aug 31, 2018 1:07 am, edited 2 times in total.
customaware
Posts: 2405
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Server attempting to connect to 45.248.77.245

Post by customaware »

The DNS records look awfully suspicious....


45.248.77.204 SOA 1799 ns1.r4ns.com [email protected] 1535587200 10800 3600 604800 3600

ransonit.com.au !!!
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
PointsWell
Posts: 1460
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Server attempting to connect to 45.248.77.245

Post by PointsWell »

You know when you are so tired you can’t remember your name.

Well if you use a well known VPN and select an Australian server, then the IP address will be in the range 45.248.77.nnn, and AIM working as it should shows me in the logs. That would explain the highly specific access of AwareIM folders.

But it doesn’t explain the server making calls to the IP address and cycling through a series of ports.

I’m going to go and drink some very nice whisky now and lie quietly in a darkened room.
Post Reply