Hi everybody.
This is the context. A client of mine has this COS 7.5 VM gateway for 20 workstations, now with only one cable-modem ISP. It works good but sometimes this connection fails for a while. When it comes back, we can see the modem is ok, but devices in the lan can't reach Internet. We can restart the network service or reboot the VM, and it works well until the next "gap".
Because I visit this client once a week, they need a method to reboot COS VM when I'm not present and the connection is lost. This is where I ask for your suggestions, guys, to create some workaround to reboot the VM. There's also another VM in the host, therefore, when I'm not there, they just push the reset button, creating an ugly situation. There's no IT or advanced users, in order to log in by putty and do the thing. I'd like some kind of shortcut in the Win desktop, but any other simple variant for a basic user would be ok.
Thanks in advance for any comments.
This is the context. A client of mine has this COS 7.5 VM gateway for 20 workstations, now with only one cable-modem ISP. It works good but sometimes this connection fails for a while. When it comes back, we can see the modem is ok, but devices in the lan can't reach Internet. We can restart the network service or reboot the VM, and it works well until the next "gap".
Because I visit this client once a week, they need a method to reboot COS VM when I'm not present and the connection is lost. This is where I ask for your suggestions, guys, to create some workaround to reboot the VM. There's also another VM in the host, therefore, when I'm not there, they just push the reset button, creating an ugly situation. There's no IT or advanced users, in order to log in by putty and do the thing. I'd like some kind of shortcut in the Win desktop, but any other simple variant for a basic user would be ok.
Thanks in advance for any comments.
Share this post:
Responses (6)
-
Accepted Answer
Something else.
I know there's an Administrators app for COS (or something like that) but I understand I would have to use LDAP in order to create new users. Of course, an option to reboot the VM in the COS Dashboard would be great, but I'm a little affraid of doing this. The VM is hosted onto an ESXi 6, perhaps, for this path I can find the workaround.
Regards. -
Accepted Answer
Win10 1803 edition now comes with a built-in ssh client. Open a command prompt and type "ssh" and you'll see a bunch of options. You could use keys or a user/pass embedded into an ssh command which issues your reboot command or restart the networking. If you get this working, you can put create shortcut which just calls the command. Note if you user keys for authentication you do not need user/pass.
The ClearOS dashboard does or can have a reboot option. Mine does but I can't remember if I set it up or if it came like that. You can customise the dashboard your self to an extent. -
Accepted Answer
Hi Nick. Thanks for your reply, as always.
Unfortunately, this client of mine has old boxes and no even one Win 10. Only Win 7 and Win 8.1. Nevertheless, I think the workaround will use Putty. I'm also looking in google.
The dashboard has the option for shutting down and rebooting COS, but this VM only has the root user. That's why I was saying before, that I don't want ldap in this box, because I understand this is the only way to allow a user to do this from the webconfig.
Anyone else? -
Accepted Answer
PuTTy can be fired off from the command line but may not be too useful. See here. Much better appears to be the plink utility which comes as part of the PuTTy suite and looks like it is designed to be scriptable. -
Accepted Answer
Two suggestions
1 - KiTTY - you can save the user name and password in it along with a command to be be executed after it logs in automatically
http://www.9bis.net/kitty/
http://www.9bis.net/kitty/?page=Automatic%20command&zone=en
2 - Maybe you can put a router in the middle?
If the problem for the network is the modem failing, usually common routers can get the conection working again automatically when the modem comes back.
My suggestion is to set the router as a gateway as usual but disable the firewall and DHCP server (optional) , Port forward all ports (TCP and UDP) to the fixed IP address on the wan port of you ClearOS, Set the Wan IP address of your ClearOS as the DMZ, disable wifi, and maybe even set 1-to-1 NAT depending on your connection requirements and setup.
Port numbers range from 0 to 65535
This way your ClearOS box would not have a public ip address, that ip would be on your router, but the connection would be free do whatever it wanted and all traffic would go to your ClearOS and then to your network without any difference for the users or services. Also the ClearOS router would not loose communication with the gateway, as it would be the router and not the cable modem. -
Accepted Answer
RAUL wrote:
Something else.
I know there's an Administrators app for COS (or something like that) but I understand I would have to use LDAP in order to create new users. Of course, an option to reboot the VM in the COS Dashboard would be great, but I'm a little affraid of doing this. The VM is hosted onto an ESXi 6, perhaps, for this path I can find the workaround.
Regards.
If I follow correctly
The ClearOS box is losing connectivity to the ISP after a modem reboot.
Other machines rely on the ClearOS box as a gate to the ISP modem.
This should not require a reboot. all that is really needed is a stop / start of network services.
You could write a script that interrogates the modem from the clearOS every hour or whatever you want. to try to get out of the home network by connecting to something external.
if no responce resort the service.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »