dynamox

updated

13 years ago

D

dynamox

11 Legend

•

20419 Posts

•

87439 Points

0

3146

August 1st, 2013 07:00

Restricted SSH and SupportIQ

I have a requirement to lock down ssh/WebUI access to Isilon to specific ip subnets (going to use primus emc14002971).  My one concern is Isilon support access to my cluster using SupportIQ. Currently SupportIQ is enabled on our cluster to allow for ssh and web access, my goal is not to brake it by enabling restricted access. So the question is, what ip/mask do i need to add to my host.allow file to allow Isilon support to get into the cluster ?

OneFS 6.5.5.22

Thank you

  • AndrewChung

    132 Posts

    1370

    0

    Posted August 1st, 2013 10:00

    In terms of having support able to manage the systems, support will generally start a WebEx session to connect to the cluster.  So as long as you are stating that WebEx from a machine that is allowed access through a firewall we should be fine there.  In terms of the direct SSH access, as long as the cluster has a means to get out to the Internet via HTTPS then you can enable the direct SSH login option and that will work as well.  We tunnel the SSH session over HTTPS.

  • AndrewChung

    132 Posts

    1370

    0

    Posted August 1st, 2013 11:00

    For things like logs, if you have SupportIQ on, support can gather logs without SSH.  The cluster will perform a regular poll out to our support server and it can grab instructions to perform basic log gathering and auto upload without SSH.  SSH is only really required if someone needs to go in and manually run commands on the cluster.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1370

    0

    Posted August 1st, 2013 11:00

    Andrew,

    SupportIQ has been enabled for 2 years now with direct ssh and web access. I don't want to do webex for rudimentary things like collecting logs ..etc, Isilon needs to give 1st level support access to SupportIQ.

    Good to know what you tunnel ssh over https, so i don't need to add any special subnets to hosts.allow files.

    Thanks

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1370

    0

    Posted August 1st, 2013 13:00

    AndrewChung wrote:

    For things like logs, if you have SupportIQ on, support can gather logs without SSH.  The cluster will perform a regular poll out to our support server and it can grab instructions to perform basic log gathering and auto upload without SSH.  SSH is only really required if someone needs to go in and manually run commands on the cluster.

    i agree, yet every time i open a ticket first level support insists on doing webex or asks me to run isi_gather.

    /rant

    I don't want to do it neither do i have time to do it ..that's why we opened ssh/web access to Isilon support and provided cluster credentials. Sounds like a training opportunity for Isilon support organization.  /rant

  • Peter_Sero

    6 Operator

    •

    1169 Posts

    1370

    1

    Posted August 2nd, 2013 03:00

    Yeah, I also wondered wether there is a policy on pushing vs. pulling isi_gather logs.

    We don't do much Webex here, but tunneled ssh as Andrew has described.

    Usually I ask the supporter to issue a "script -t 1" command at the start of the session.

    It logs all terminal input and output to a single file ("typescript"),

    buffering for at most 1 second ("-t 1").

    I can then watch all activities with "tail -f typescript" in real time

    and discuss issues on the phone at the same time.

    Plus, the typescript can be archived for later reference.

    (The logging feature of "screen" might also work.)

    -- Peter

  • Peter_Sero

    6 Operator

    •

    1169 Posts

    1372

    0

    Posted August 2nd, 2013 04:00

    That impossible, but as you log any attempt, it should be mostly ok.

    -- Peter

  • Peter_Sero

    6 Operator

    •

    1169 Posts

    1370

    0

    Posted August 2nd, 2013 04:00

    sudo /bin/bash 

    sudo /usr/bin/vi -> :sh  ;-)

    Actually I enable ssh access only temporarily, and while having the supporter on the phone.

    -- Peter

  • Peter_Sero

    6 Operator

    •

    1169 Posts

    727

    1

    Posted August 2nd, 2013 04:00

    That still allows other commands, like vi, to be sudo'ed at first,

    and then escape to a shell (":sh")...

    Even more obvious for "script", "screen", "xterm", ...

    And one simply cannot know the details for OneFS specific commands.

    Or how about "cp /bin/bash /tmp/mash; sudo /tmp/mash"?

    There have been endless debates on this already... anyway, have a nice weekend.

    -- Peter

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    727

    0

    Posted August 2nd, 2013 04:00

    sure it's possible

    Cmnd_Alias NSHELLS = /usr/bin/sh,/usr/bin/zsh,/usr/bin/bash

    Cmnd_Alias NSU = /usr/bin/su,/usr/local/sbin/visudo

    admin ALL=(ALL) NOPASSWD: ALL, !NSU, !NSHELLS

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1372

    0

    Posted August 2nd, 2013 04:00

    no worries, i googled enough to lock those things down too