LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2016, 06:22 AM   #1
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Rep: Reputation: 3
Question 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.
 
Old 06-04-2016, 07:38 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
You can't.
That's not how IP addresses work so you have no way of addressing a computer behind a NAT gateway.
 
Old 06-04-2016, 11:39 AM   #3
af7567
Member
 
Registered: Nov 2012
Posts: 281

Rep: Reputation: 97
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.
 
Old 06-05-2016, 02:53 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
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...

Last edited by jefro; 06-05-2016 at 02:54 PM.
 
  


Reply

Tags
ping


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pinging ubuntunewby Linux - Newbie 3 07-09-2011 02:06 PM
Pinging by Name? SlowCoder Linux - Networking 2 05-06-2009 02:45 PM
Pinging servers thru firewall Danteleo Linux - Networking 1 10-28-2006 04:25 PM
pinging delos Linux - Networking 6 07-02-2004 09:14 AM
Pinging?? Sherpa Linux - General 3 05-13-2004 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration