Avatar of KoolV
KoolVFlag for Australia asked on

How do I unblock IP addresses on my linux web server using mac Terminal?

I need to occasionally unblock IP addresses on my Linux web server using Mac Terminal app where can I find the commands to do so?
SSH / Telnet SoftwareLinux NetworkingMac OS X

Avatar of undefined
Last Comment
KoolV

8/22/2022 - Mon
chqshaitan

what is actually blocking the ips? is the built in firewall (iptables) or something else?
ASKER
KoolV

Yes I believe so I have not accessed the server with mac terminal before but need to learn how to
dacasey

SSH ot Telnet are the two easy ways.  Start the terminal app on your mac and try to either ssh of telnet to your Linux machine.

eg.

ssh 192.168.0.2
- or -
telnet 192.168.0.2

I'm assuming in this example that your Linux machine is 192.168.0.2
Your help has saved me hundreds of hours of internet surfing.
fblack61
chqshaitan

ah, i misunderstood what you were asking. I thought you were asking what commands on the linux server you need to run, not the command on the mac to connect to the linux server.
ASKER
KoolV

yes I need to know what commands I need to enter in Mac terminal to access the IP blocking tables or that area to view what IP addresses have been blocked and need to know how to unblock them
ASKER
KoolV

The Linux web server is in a data centre and I have the IP of it etc just need to know where to find Linux commands
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
dacasey

Hi KooIV,

You need to unblock IPs on your linux web server so you need to access it some way.  

Does your server support telnet ssh or both?

FIt doesn't matter if your server is in a data center or in your basement, 1st step is to access your server.  So can you open your mac terminal, we are going to use it to take over your server.

try ssh [your server ip]

you should be asked for a login and password.
ASKER
KoolV

I tried that and got this

ssh: connect to host 119.252.19.49 port 22: Operation timed out
SOLUTION
asidu

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
asidu

Refer to your post 34153507.

Are you able to do a SSH at the machine locally ?
If yes ...then it clearly points to a network issue, firewall issue.
If no you have to make sure the SSH server is running on the
server.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
KoolV

I found a guy who fixed it all fro me thanks for your efforts though