Browsed by
Category: Redes

Networking

Microtik IPSEC Ike2 VPN

Microtik IPSEC Ike2 VPN

/certificateadd common-name=ca name=casign “ca” ca-crl-host=x.x.x.xadd common-name=x.x.x.x subject-alt-name=IP:x.x.x.x key-usage=tls-server name=server1sign server1 ca=ca /ip ipsec profileadd name=ike2/ip ipsec proposaladd name=ike2 auth-algorithms=sha256 enc-algorithms=aes-256-cbc pfs-group=none /ip pooladd name=ike2-pool ranges=y.y.y.10-y.y.y.90/ip ipsec mode-configadd address-pool=ike2-pool address-prefix-length=32 name=ike2-conf /ip ipsec policy groupadd name=ike2-policies/ip ipsec policyadd dst-address=y.y.y.0/24 group=ike2-policies proposal=ike2 src-address=0.0.0.0/0 template=yes /ip ipsec peeradd exchange-mode=ike2 name=ike2 passive=yes profile=ike2 /ip ipsec identityadd auth-method=digital-signature certificate=server1 generate-policy=port-strict mode-config=ike2-conf peer=ike2 policy-template-group=ike2-policies /certificateadd common-name=rw-client1 name=rw-client1 key-usage=tls-clientsign rw-client1 ca=ca /certificateexport-certificate rw-client1 export-passphrase=12345 type=pkcs12 /certificateexport-certificate ca type=pem /certificateexport-certificate caexport-certificate rw-client1 export-passphrase=12345

Enable And Disable Firewalld on Centos 8

Enable And Disable Firewalld on Centos 8

Start and enable firewalld $ sudo systemctl start firewalld$ sudo systemctl enable firewalld Stop and disable firewalld $ sudo systemctl stop firewalld$ sudo systemctl disable firewalld Check the firewalld status $ sudo firewall-cmd –state

Install my LAMP on ubuntu 18.

Install my LAMP on ubuntu 18.

1 apt-get update2 chmod 0600 /var/swapfile3 mkswap /var/swapfile4 swapon /var/swapfile10 vi /etc/fstab11 add to fstab: /var/swapfile swap swap defaults 0 012 mysql -u root -h localhost -p13 mysql -u root -h localhostmysql> use mysql;UPDATE user set plugin=’mysql_native_password’ where user=’root’;ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘newpassword’;FLUSH PRIVILEGES;quit24 Install PHP 7.325 apt install software-properties-common26 add-apt-repository ppa:ondrej/php27 apt install php7.3 php7.3-common php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysql28 php -v 29 adduser webmaster, user of the folder /home/webmaster in order to be used by…

Read More Read More

Some AWS fix for LAMP installation.

Some AWS fix for LAMP installation.

MYSQL: to connect locally from a linux user to mysql using the root mysql user. From root linux account, mysql -u root -h localhost -p, mysql> use mysql; UPDATE user set plugin=’mysql_native_password’ where user=’root’; ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘newpassword’; FLUSH PRIVILEGES; quit Apache2: sometime the apache just broke with a mutex error. add to apache2.conf Mutex posixsem Mysql: sometimes broke because have not enough memory, in that case add a swapfile, aws doesn’t offer swap by default…

Read More Read More

Metasploit tips and tricks

Metasploit tips and tricks

msfcolsole, to access de metaexploit framework db_status, to see the connection status to the database. bundle install, to install ruby gems, or little codes to test vulnerabilities. workspace -a HR, to create a workspace with configuration to test HR department. workspace, to see which workspace is in used. workspace HR, to change the workspace. workspace -d, to delete a workspace. ————- Database Connection ————————–You don’t need a database to run the Framework, but it’s pretty useful if you want to…

Read More Read More

How to replace a controller in a HP StorageWorks msa2324fc with dual controller in failover connections and linux multipath.

How to replace a controller in a HP StorageWorks msa2324fc with dual controller in failover connections and linux multipath.

Is the light is amber and blinking, just try to restart the controller in: tools–restart or shutdown controller, then chose in operation: restart, controller type: storage, controller: (A or B) depend of the controller that have failed, and then press restart, this step is just to see if the controller failed because had some electrical problem like static. 2. If the previous method doesn’t work and the controller do not come up, maybe is time to replace it, just click…

Read More Read More