Ansible one liner to stop all docker containers

 ansible -a "docker ps -aq | xargs docker stop" docker

Where docker is a list of hosts in ansible

Advertisements

Adding USG PBR Entry for Second WAN

The following commands run on the USG will use the pppoe1 WAN for the two source addresses specified.

configure
set firewall modify LOAD_BALANCE rule 2500 action modify
set firewall modify LOAD_BALANCE rule 2500 modify table 5
set firewall modify LOAD_BALANCE rule 2500 source address 192.168.0.102
set firewall modify LOAD_BALANCE rule 2500 protocol all
set firewall modify LOAD_BALANCE rule 2501 action modify
set firewall modify LOAD_BALANCE rule 2501 modify table 5
set firewall modify LOAD_BALANCE rule 2501 source address 192.168.0.115
set firewall modify LOAD_BALANCE rule 2501 protocol all
set protocols static table 5 interface-route 0.0.0.0/0 next-hop-interface pppoe1
commit;save;exit

Setting up Windows Server Essentials 2016 Clients

You possibly don’t want your client computer joined to a domain nor any messing around with your client computer DNS settings either.  So here are the three commands you need to run in an elevated command prompt on your client computer.

reg add "HKLM\SOFTWARE\Microsoft\Windows Server\Networking\ClientDns" /v SkipAutoDnsConfig /t REG_DWORD /d 1
reg add "HKLM\SOFTWARE\Microsoft\Windows Server\Networking\ServerDiscovery" /v SkipAutoDNSServerDetection /t REG_SZ /d true
reg add "HKLM\SOFTWARE\Microsoft\Windows Server\ClientDeployment" /v SkipDomainJoin /t REG_DWORD /d 1

 

Advertisements