Getting ping to run a file

Getting ping to run a file

Post by Simon Hoff » Mon, 07 Feb 2000 04:00:00



Hi All,

I'd like for someone sitting on a Win98 box to be able to start a program
or shell script on my Linux box by simply pinging it with a specific
pattern. (i.e. on the Linux Box I could type "ping -p 12ab localhost" to
start the program) How can I do this, and how can I set it up so that only
pinging from a specific IP address is accepted?

Thanks in advance
Simon

--
Beware of the Turing Tar-pit in which everything is possible but
nothing of interest is easy.
+----------------------------------------------------------------------+

|      Johannesburg, South Africa       ICQ#   37776651                |
+----------------------------------------------------------------------+

 
 
 

Getting ping to run a file

Post by Leonard Even » Tue, 08 Feb 2000 04:00:00



> Hi All,

> I'd like for someone sitting on a Win98 box to be able to start a program
> or shell script on my Linux box by simply pinging it with a specific
> pattern. (i.e. on the Linux Box I could type "ping -p 12ab localhost" to
> start the program) How can I do this, and how can I set it up so that only
> pinging from a specific IP address is accepted?

I certainly hope this won't work.   It would be an enormous
security problem if it did.

Look at rsh instead and perhaps ssh.

> Thanks in advance
> Simon

> --
> Beware of the Turing Tar-pit in which everything is possible but
> nothing of interest is easy.
> +----------------------------------------------------------------------+

> |      Johannesburg, South Africa       ICQ#   37776651                |
> +----------------------------------------------------------------------+

--


Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208

 
 
 

Getting ping to run a file

Post by John McKo » Thu, 10 Feb 2000 04:00:00


]>>
]>> Hi All,
]>>
]>> I'd like for someone sitting on a Win98 box to be able to start a program
]>> or shell script on my Linux box by simply pinging it with a specific
]>> pattern. (i.e. on the Linux Box I could type "ping -p 12ab localhost" to
]>> start the program) How can I do this, and how can I set it up so that only
]>> pinging from a specific IP address is accepted?
]>
]>I certainly hope this won't work.   It would be an enormous
]>security problem if it did.
]>
]>Look at rsh instead and perhaps ssh.
]>
]>>
]>> Thanks in advance
]>> Simon

I agree that using ssh or maybe even rexec would be far better. However,
one thought that I had was to set up inetd so that a "telnet" connection
would start this function. Dedicate a port on the Linux box to this.
Use tcpwrappers so that only a specific IP address or addresses could use
this.