Avatar of pugdog_fan
pugdog_fan
 asked on

Working with iptables (CentOS 5.2) .... "allowing ICMP" and "opening up SSH" ...

Hi:

I have PBX in a Flash 1.4 (runs on CentOS 5.2) ...

The PC this PBX runs on has two NIC cards.  

One NIC is on a 172.x.x.x subnet (NAT) with no access to the Internet from the LAN.
One NIC has a LIVE 'static' IP address which reaches right to the ISP with no router/firewall in front of it.

I am not able to 'ping' the LIVE 'static' IP address the 2nd NIC is assigned.

I've setup PBX in a Flash 1.4 in the past (in a few other configurations), and I've never really been able to get ICMP to work.

I would like to be able to ping the LIVE static IP address from another host on the Internet.  

NOTE:  ICMP replies 'work' if you try to ping the 172.x.x.x IP address from another 172.x.x.x host, but not the LIVE static IP address assigned to the 2nd NIC.

I am thinking this is not a PBX in a Flash 1.4 concern, but rather an iptables configuration.

How (or what) do I configure inside CentOS to 'allow' incoming ICMP to reply?

-------------------------

Next, if use PuTTY from another PC on the 172.x.x.x subnet, I can SSH into the PBX in a Flash 1.4 PBX.  

If I am on another 'Internet' PC, I cannot SSH into the LIVE static IP address of the PBX in a Flash 1.4 PBX.

Again, I think this is quite possibly a CentOS iptables/firewall boggle.  

How/what can I do to be able to SSH into the PBX in a Flash 1.4 PC from another PC on the Internet?

Thanks in advance for your time and tips.
Linux Networking

Avatar of undefined
Last Comment
pugdog_fan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Blaz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pugdog_fan

ASKER
Blaz:

Thanks for the tips ...

I'll try the suggestions you mention.  I'll be back in touch.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes