EVE-NG-PRO Docker Images

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
tallenglish
Posts: 4
Joined: Sun Apr 15, 2018 11:52 pm

EVE-NG-PRO Docker Images

Post by tallenglish » Mon Apr 16, 2018 12:05 am

Hi,

I am looking to create a docker image that EVE will start and I can telnet to and also has lots of useful tools like client based ping, telnet, ssh etc to be used as easy access to test client access over cisco LAN.

None of the eve docker images seem to listen to telnet.
I have created a docker file to startup sshd and telnetd/inetd on startup, but when I run in EVE it only starts /bin/sh and ignores the CMD option?
How can I get EVE to be able to connect to telnet on the Docker image (i.e. when I click on the device in native console and it lauches putty)?

Thanks in advance
Tony Dean

=============================================

/usr/sbin/startup.sh

Code: Select all

#!/bin/sh
/usr/sbin/inetutils-inetd /etc/inetd.conf
/usr/sbin/sshd -D
exit 0;
Dockerfile

Code: Select all

FROM ubuntu:16.04
RUN apt-get update && apt-get install -y openssh-server openssh-client openssh-sftp-server openssh-blacklist openssh-blacklist-extra inetutils-telnet inetutils-telnetd net-tools
RUN mkdir /var/run/sshd
RUN echo 'root:cisco' | chpasswd
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
RUN echo 'telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/telnetd' > /etc/inetd.conf
RUN echo 'pts/0' >> /etc/securetty
RUN echo 'pts/1' >> /etc/securetty
RUN echo 'pts/2' >> /etc/securetty
RUN echo 'pts/3' >> /etc/securetty
RUN echo 'pts/4' >> /etc/securetty
RUN echo 'pts/5' >> /etc/securetty
RUN echo 'pts/6' >> /etc/securetty
RUN echo 'pts/7' >> /etc/securetty
RUN echo 'pts/8' >> /etc/securetty
RUN echo 'pts/9' >> /etc/securetty
RUN cp /etc/pam.d/sshd /etc/pam.d/telnet
COPY startup.sh /usr/sbin/startup.sh
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22 23
CMD ["/usr/sbin/startup.sh"]

tallenglish
Posts: 4
Joined: Sun Apr 15, 2018 11:52 pm

Re: EVE-NG-PRO Docker Images

Post by tallenglish » Mon Apr 16, 2018 12:49 am

I have seen the video and telnet should just work with eve-ansible.

But I must have a bigger issue as I can't RDP to eve-desktop, eve-firefox or eve-chrome either.

Thanks

Tony

Uldis (UD)
Posts: 1699
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: EVE-NG-PRO Docker Images

Post by Uldis (UD) » Mon Apr 16, 2018 7:34 am

something is not right with your EVE then.
RDP works for mentioned dockers in the video.
Visit EVE live helpchat...we can check your eve.

UD

http://www.eve-ng.net/live-helpdesk
For chat use google account or create new one

tallenglish
Posts: 4
Joined: Sun Apr 15, 2018 11:52 pm

Re: EVE-NG-PRO Docker Images

Post by tallenglish » Thu Apr 19, 2018 7:29 am

NM with that, when I started EVE up today I was able to get to the eve-ansible console and it looks like I missed a reboot which it needed.

All working perfectly now.

Post Reply