• About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post
No Result
View All Result
Digital Phablet
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
No Result
View All Result
Digital Phablet
No Result
View All Result

Home » AWS EC2: How to Fix Connection Issues on Non-SSH Ports

AWS EC2: How to Fix Connection Issues on Non-SSH Ports

Emily Smith by Emily Smith
September 14, 2025
in How To
Reading Time: 2 mins read
A A
How to Set Up Amazon Q Business with QuickSight Using IAM Federation
ADVERTISEMENT

Select Language:

If you’re having trouble connecting to ports other than SSH (port 22) on your EC2 instance, don’t worry—there are some common issues that could be causing this. Here’s a simple guide to help you troubleshoot and fix the problem.

First, check your firewall rules on the server. The most common mistake is the order of rules in iptables. If a general reject rule is listed before your specific rules to allow OpenVPN traffic, all incoming connections are rejected before they get a chance to be accepted. To fix this, you need to move your accept rule for UDP port 1194 above the reject rule. You can do this with these commands:

sudo iptables -D INPUT -j REJECT –reject-with icmp-host-prohibited
sudo iptables -A INPUT -p udp –dport 1194 -j ACCEPT
sudo iptables -A INPUT -j REJECT –reject-with icmp-host-prohibited

Next, when testing your OpenVPN port with netcat, make sure you’re using UDP. Many people try to connect with TCP, which won’t work if your server is listening for UDP traffic. To test UDP ports with netcat, run this command on your server:

nc -u -v -l 0.0.0.0 1194

And on your client, use:

nc -u -v 1194

It’s also important to verify your AWS security groups. Sometimes, security groups only allow TCP traffic, or they might not have a rule for UDP port 1194. Double-check that your security group explicitly allows inbound and outbound UDP traffic on port 1194.

Lastly, if you’re still facing issues, consider temporarily turning off your server’s firewall to see if it’s causing the problem. Just remember to turn it back on after testing. Here are the commands:

– For RHEL, CentOS, or Fedora:

ADVERTISEMENT

sudo systemctl stop firewalld

– For Ubuntu or Debian:

sudo ufw disable

ADVERTISEMENT

By following these steps, you should be able to identify where the connection is being blocked and fix it. If problems persist, reviewing your configurations or reaching out for further support can help.

ChatGPT ChatGPT Perplexity AI Perplexity Gemini AI Logo Gemini AI Grok AI Logo Grok AI
Google Banner
ADVERTISEMENT
Emily Smith

Emily Smith

Emily is a digital marketer in Austin, Texas. She enjoys gaming, playing guitar, and dreams of traveling to Japan with her golden retriever, Max.

Related Posts

February PS Plus Extra & Premium Leak Sparks Fan Excitement
Gaming

February PS Plus Extra & Premium Leak Sparks Fan Excitement

February 10, 2026
650143 1406782 updates.jpg
News

India enforces strict 3-hour takedown rule on social media platforms

February 10, 2026
Top 50 Worst Dictators in History

1.  Adolf Hitler
2.  Joseph Stalin
3.  Mao Ze
Infotainment

Top 50 Most Infamous Dictators in History

February 10, 2026
How to Create a Simple Hello World Server with GitHub Code
How To

How to Create a Simple Hello World Server with GitHub Code

February 10, 2026
Next Post
First Hijabi Woman Competes in Miss Egypt 2025, Sparks Outrage

First Hijabi Woman Competes in Miss Egypt 2025, Sparks Outrage

  • About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post

© 2026 Digital Phablet

No Result
View All Result
  • Home
  • News
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones

© 2026 Digital Phablet