Monday, February 20, 2017

Configuring MATLAB FlexNet License Manager to reserve licenses

Step 1: To setup an option file in the Flexlm

https://www.mathworks.com/matlabcentral/answers/100865-is-there-a-way-to-administer-flexnet-based-licenses-how-do-i-create-an-options-file


Step 2: Create an mlm.opt file
RESERVE 1 MATLAB:asset_info=111111 USER user1
where user1 is the username

Step 3: Restart the license server to take effect

Wednesday, February 8, 2017

Configuring 2 Gateways on the same Linux Box permanently

Suppose you have 2 network on a PC says
192.168.1.5/24 (eth0 - Private Network)
172.16.10.4/24 (eth1 - Public Network)

Let's assume the 172.16.10.254 is the Default Gateway for 172.16.10.0 network. If there is a router at 192.168.1.254 for the internal network and you wish to connect to other networks says 192.168.5.0 192.168.6.0 and 192.168.7.0 networks. You will need to add "static routes" to these networks

route add -net 192.168.5.0 netmask 255.255.255.0 gw 192.168.1.254
route add -net 192.168.6.0 netmask 255.255.255.0 gw 192.168.1.254
route add -net 192.168.7.0 netmask 255.255.255.0 gw 192.168.1.254


To make the setting permanent, edit /etc/sysconfig/network-scripts/route-eth0
192.168.5.0/24 via 192.168.1.154 dev eth0 
192.168.6.0/24 via 192.168.1.154 dev eth0 
192.168.7.0/24 via 192.168.1.154 dev eth0 

To check the setting is ok
# ip route show

Wednesday, January 18, 2017

SMB Security Best Practices by US-Cert

Taken from  SMB Security Best Practices

US-CERT recommends that users and administrators consider:
  • disabling SMB v1 and
  • blocking all versions of SMB at the network boundary by blocking TCP port 445 with related protocols on UDP ports 137-138 and TCP port 139, for all boundary devices.
US-CERT cautions users and administrators that disabling or blocking SMB may create problems by obstructing access to shared files, data, or devices. The benefits of mitigation should be weighed against potential disruptions to users. For more information on SMB, please review Microsoft Security Advisories 2696547 (link is external) and 204279 (link is external)