Windows server 2003, remote way to bypass windows firewall - windows-server

I have a windows server 2003, I disabled the firewall with the remote desktop, enable it and I lost the access to my machine (and my sites). I was wondering if there is any backdoor to bypass firewall in situations like this, so if something goes wrong, I could fix it remotely.
In linux for example, there is ssh reverse tunneling which I have enable it and in similar situations I could connect anyway and fix any problem I created.

I don't know how much your firewall is configured, but in case WMI is still working, you can open your local "Services" Management Console, connect to your remote computer, and stop the Windows Firewall Service.
If you install e.g. Teamviewer, you can also connect to because Teamviewer usually creates the firewall rules on it's own.

Related

Can't connect to AWS RDS MySQL database using internet - but hotspot works

I can't seem to connect to my companies AWS RDS database. The database's security options are open - everyone else in the company can access the database just fine. I'm also able to access the database if I'm on my phones hotspot, but get this error if I use my wifi:
ERROR 2003 (HY000): Can't connect to MySQL server on
'x.x.rds.amazonaws.com:3306' (111)
I'm running Windows 10 with a VM to run Ubuntu. The MySQL or Telnet connection doesn't work on either OS.
Some things I've tried:
-Disable all my Windows firewalls
-Factory reset my router and disable the SPI firewall
-Add port 3306 into inbound and outbound connections on the Windows firewall
-Set my connection to the router as private on Windows
I'll greatly appreciate any help.
EDIT: I'm 99% certain that there is an issue with my internet - perhaps related to the firewall. I don't know anything about networking and can't seem to find many resources online to help with this issue. Not quite sure what else to play around with - I've factory reset the router and disabled the SPI firewall.
Looks like DBeaver is not added as a exception to the windows firewall. To add the program to the Windows Firewall Exceptions list, follow these steps:
Click Start, and then click Control Panel
Double-click Windows Firewall, and then click the Exceptions tab
Click Add Program
Locate the file DBeaver.exe (in the program folder, inside Program Files), and then Click OK
After this please try adding restarting DBeaver and try to connect

Unable to run Xdebug in PhpStorm, connections are refused - likely due to port 9000 not being open or not being forwarded

I'm trying to debug my PHP code running on a remote server using PhpStorm's Xdebug feature. A few weeks ago I was able to do this on another computer, but I no longer have that computer. I reinstalled and configured PhpStorm and can run SFTP and SSH with the remote server on the new computer. I tried using PuTTY, and was successfully able to use it to SSH Tunnel between the two computers and run Xdebug. But it wasn't a 'good' as the way I was able to do this on the other computer, which didn't need PuTTY.
I believe that the problem has to do with setting up Port-9000 forwarding. I added a rule for this to my BitDefender BOX2 for the local computer I develop on, but I still get refused. The tech at BitDefender thought that there may be another port that needs to be opened/forwarded in addition to port 9000.
Because the PuTTY method works on the new computer, I'm confused. Why does this work with PuTTY, but not directly with PhpStorm (without the help of PuTTY)?
Xdebug only needs port 9000, so that is the only port that PhpStorm will listen on, and Xdebug needs to connect to. I don't know BitDefender, but perhaps you only allowed outgoing connections, and not the incoming ones that you should allow?
Are the two machines on the same network, or is your machine behind a NAT network to the outside world, where your remote machine lives? In that case, you probably can't get around using your SSH tunnel with PuTTY.
You don't mention any settings, but it is worthwhile to check what shows up in the xdebug log file (when configured with xdebug.remote_log=/tmp/xdebug.log on your remote machine). It will show what Xdebug tries to connect to, and whether (and sometimes even why) the connection failed.

Hot to connect to remote MySQL server when my ISP is blocking 3306?

I am developing simple application with Visual Studio that gets data from remote MySQL server through MySql.Data.dll extension. Everything works fine when I'm in my own network, but when I'm at customer site it won't work. I'm assuming their IT is blocking port 3306. Since this is a big corp with strict rules cooperation with network admin is not an option. I heard about tunneling with SSH, tried to do some research but this time this is something not supported by my remote MySQL server provider. I'm out of ideas. What are my options?
Many thanks,
Paw
You can try the command > telnet <yourDBHost> 3306 to verify if port is blocked.
In that case, if you can't request to your admin to open port, maybe you can change the port of MySQL to another open port in the firewall, using your CPanel or editing config files directly if you can access it.

Remote access to MySQL on Amazon EC2 Windows instance

I found some solutions for Linux here.
But didn't find any solution for Windows. I don't have my.cnf on Windows. I only have my.ini. there is no bind-address in it.
I have already added an inbound rule for MySQL.
Could anybody give me some advice? Thanks a lot!!!
Here's what I would check:
Verify that the MySQL service is up and running by remote desktop'ing to the instance and trying to connect to it on the instance.
If that checks out, try modifying or disabling Windows Firewall to ensure that outside machines can connect on the relevant port. Depending on the Windows version, there might be several places that you need to fiddle with this (i.e. both Windows Firewall and Windows Firewall with advanced security).
If you're using an Asp.Net Application with Entity Framework, you will need to install the MySQL connector on the EC2 instance (I would suggest running iisreset to make sure the dll's are loaded).

Cannot connect to remote mysql from Mac lion

I'm a mac novice and trying to get a developer setup to develop php sites locally. The sites he develops have a mysql backend and that is on a remote box. We got xampp installed and working, he can connect from the website to the local mysql box but he cannot connect to the remote box. He is using the exact same connection info I am using from my windows system. I do not have any issues. Also the mysql server is setup to accept all users (we are currently using root) regardless of hostname.
I searched his system and I could not find a mysql.sock file. I do not know what this does, but googled some articles that mentioned.
Please help if you can.
Try Telnetting to the server from your host and see if you get a response.
telnet host 3306
If that doesn't work, you probably have some local firewall on your mac that is blocking the connection. Also, one thing you don't mention is that you can connect from a windows computer and not a mac... are they on the same network? If they're on different networks or in different places, that could indicate a local network issue.
This is definitely not an issue with mysql, but with something on the Mac itself.
The mysql.sock file is relevant only to the machine the MySQL server is running on, for local clients to communicate with the server. For any remote machines, they'll be connecting via TCP on port 3306.
Make sure that port 3306 is open in the server machine's firewall, and that MySQL has been configured to allow TCP connections.