Login
386cottrell@pinger:~$ssh rcottre@bastion.desy.de Warning: Permanently added the RSA host key for IP address '131.169.5.83' to the list of known hosts. rcottre@bastion.desy.de's password: Questions concerning bastion? see http://bastion.desy.de for the Bastion FAQ. [rcottre@bastion03]~%
Then login to iepm01-el7.desy as root, no password required
[rcottre@bastion02]~% pinger-2.0.7 Last login: Wed Apr 12 13:57:03 2017 from mystphi.desy.de Welcome to DESY IT [root@iepm01-el7 ~]#
N.b. you can't login as rcottre
386cottrell@pinger:~$ssh rcottre@bastion.desy.de Warning: Permanently added the RSA host key for IP address '131.169.5.83' to the list of known hosts. rcottre@bastion.desy.de's password: Questions concerning bastion? see http://bastion.desy.de for the Bastion FAQ. [rcottre@bastion03]~% ssh iepm01-el7.desy.de Creating directory '/afs/desy.de/user/r/rcottre'. Unable to create and initialize directory '/afs/desy.de/user/r/rcottre'. Welcome to DESY IT Could not chdir to home directory /afs/desy.de/user/r/rcottre: No such file or directory #The f directory does exist on bastion.desy.de [rcottre@bastion03]~% pwd /afs/desy.de/user/r/rcottre
Saving stuff
The scripts are saved in
[root@iepm01-el7 pinger]# ls -l /root/pinger total 232 -rw-r--r-- 1 root root 15101 Jan 7 2000 cgi-lib.pl.txt -rw-r--r-- 1 root root 48852 Mar 15 2016 ping_data.pl -rw-r--r-- 1 root root 114361 Jun 11 2015 pinger-2.0.7.tar.gz -rw-r--r-- 1 root root 6626 May 22 2009 pinger_trimmer.pl -rw-r--r-- 1 root root 48927 Sep 20 2016 traceroute.pl
The cgi scripts are copied to:
[root@iepm01-el7 pinger]# ls -l /var/www/cgi-bin total 112 -rwxr-xr-x 1 root root 15101 May 5 03:30 cgi-lib.pl -rwxr-xr-x 1 root root 48852 May 5 03:29 ping_data.pl -rwxr-xr-x 1 root root 48927 Sep 20 2016 traceroute.pl
Install pinger2.pl
[root@iepm01-el7 ~]# tar xzf pinger-2.0.7.tar.gz
[root@iepm01-el7 ~]# cd pinger-2.0.7
[root@iepm01-el7 pinger-2.0.7]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for bash... /bin/sh
checking for perl... /usr/bin/perl
checking for ping... /usr/bin/ping
checking for ping6... /usr/sbin/ping6
checking for dig... /usr/bin/dig
checking for lynx... /usr/bin/lynx
checking for mail... /usr/bin/mail
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sw/Makefile
config.status: creating docs/Makefile
[root@iepm01-el7 pinger-2.0.7]# make test_prereqs
[root@iepm01-el7 pinger-2.0.7]#
traceroute.pl
[root@iepm01-el7 ~]# cd /var/www/cgi-bin [root@iepm01-el7 cgi-bin]# wget 'http://www.slac.stanford.edu/comp/net/traceroute/traceroute.pl' --2017-04-26 23:24:01-- http://www.slac.stanford.edu/comp/net/traceroute/traceroute.pl Resolving www.slac.stanford.edu (www.slac.stanford.edu)... 134.79.197.200, 2620:114:d000:2716::200 Connecting to www.slac.stanford.edu (www.slac.stanford.edu)|134.79.197.200|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 48927 (48K) [text/plain] Saving to: âtraceroute.plâ 100%[======================================>] 48,927 71.4KB/s in 0.7s 2017-04-26 23:24:02 (71.4 KB/s) - âtraceroute.plâ saved [48927/48927] [root@iepm01-el7 cgi-bin]# ls -l traceroute.pl -rw-r--r-- 1 root root 48927 Sep 20 2016 traceroute.pl [root@iepm01-el7 cgi-bin]# chmod +x traceroute.pl [root@iepm01-el7 cgi-bin]# ls -l traceroute.pl -rwxr-xr-x 1 root root 48927 Sep 20 2016 traceroute.pl
Try and access the web server via URL http://iepm01-el17.desy.de/cgi-bin/traceroute.pl, I got
Found it has a DNS registration, it is pingable but from the Internet (SLAC) port 80 is not responding
388cottrell@pinger:~$nslookup iepm01-el7.desy.de Server: 134.79.111.111 Address: 134.79.111.111#53 Non-authoritative answer: Name: iepm01-el7.desy.de Address: 131.169.5.47 391cottrell@pinger:~$ping iepm01-el7.desy.de PING iepm01-el7.desy.de (131.169.5.47) 56(84) bytes of data. 64 bytes from iepm01-el7.desy.de (131.169.5.47): icmp_seq=1 ttl=45 time=166 ms 64 bytes from iepm01-el7.desy.de (131.169.5.47): icmp_seq=2 ttl=45 time=167 ms 64 bytes from iepm01-el7.desy.de (131.169.5.47): icmp_seq=3 ttl=45 time=166 ms ^C --- iepm01-el7.desy.de ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2508ms rtt min/avg/max/mdev = 166.934/166.991/167.054/0.337 ms 389cottrell@pinger:~$telnet iepm01-el7.desy.de 80 Trying 131.169.5.47... telnet: connect to address 131.169.5.47: Connection refused Exit 1