LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Pinging from outside through the firewall (https://www.linuxquestions.org/questions/linux-networking-3/pinging-from-outside-through-the-firewall-4175581421/)

Gary Baker 06-04-2016 06:22 AM

Pinging from outside through the firewall
 
I want to be able to ping a box from outside the firewall. The firewall enables inbound ping. How do I do this? And ping to computers on the LAN. 192.168.1.6, etc. Time warner IP is 70.xxx.xxx.xxx.

273 06-04-2016 07:38 AM

You can't.
That's not how IP addresses work so you have no way of addressing a computer behind a NAT gateway.

af7567 06-04-2016 11:39 AM

If you have a service running on the internal host such as Webserver then you can set up port forwarding on the router for the http port (for example) to your internal host. You can then 'ping' the webserver port to check that the host is alive.

This isn't a real ping but it might be useful for you. Do a search for http ping and you will find a few utilities to do it. If you do port forward anything though - make sure it is secure.

jefro 06-05-2016 02:53 PM

You ping the internet address and nat the associated local ip to that. Most routers will do that.

Since most folks have dynamic then you'd need a ddns service or buy a static ip.

As noted above, ping tends to be a poor choice more and more but...


All times are GMT -5. The time now is 02:19 AM.