Friday, August 31, 2018

mySQL db password reset / Linux


Probably happen to you as well :)

This is what you are looking for:
sudo mysql --defaults-file=/etc/mysql/debian.cnf

 MySQL on Debian (Ubuntu) Linux usually use a configuration file with the credentials.

Sunday, August 12, 2018

GDPR broken by U.S.-based remot3.it

 
\\The rules below says it all :)
International visitors and users
The Website is hosted in the United States, Japan, Singapore and Germany. If you are visiting from the European Union (EU) or other regions with laws governing data collection and use that may differ from U.S. law, please note that you are transferring your personal data to the United States which does not have the same data protection laws as the EU and by providing your personal data you consent to: The use of your personal data for the purposes identified above in accordance with this Privacy Policy; and The transfer of your personal data to the United States as indicated above.

nformation we collect
The data that we regularly collect about visitors to the Website (e.g., IP address, browser type, pages accessed, duration of visit, etc.) does not necessarily enable us to personally identify you, and that is not our intention. We do collect personally identifiable information about you, such as your name and email address, when you voluntarily provide it by registering with us or using the Service. Once you become a user, you may provide additional information. Providing additional information is optional. To facilitate your use of the Service, remot3.it may automatically collect certain types of information when you access or use the Service. In order to collect this data, remot3.it may utilize automated tools and files such as “cookies.” These automated tools and files may reside on our servers or on your computer or device. If you restrict our ability to use automated tools and files, your ability to access and use all or part of the Service may be limited or disabled completely.

VLAN Support | Debian Linux

To enable the VLAN support in Linux we need to install a module.

Check if already enabled and supported:

~ $lsmod |grep 802

Then install 802.1q module:

~ $modprobe 8021q

Before we can use the VLANs in Linux we will have to create the virtual interfaces (in similar way like Cisco devices).

First bring the physical interface up without IP address:

~ $ifconfig eth0 0.0.0.0 up
 Now Create a VLAN and bind it on the physical interface. It will create a virtual one automatically.
~ $vconfig add eth0 2
Added VLAN with VID == 2 to IF -:eth0:-

~ $vconfig add eth0 100
Added VLAN with VID == 100 to IF -:eth0:-
 Assign IP address to the virtual interface. 
Each VLAN has to be in a different subnet!
 
~ $ifconfig eth1.2 10.11.10.254 netmask 255.255.255.0 up

If you don't have already = make /etc/rc.local  executable and add all the steps we've done above.

chmod +x /etc/rc.local

nano /etc/rc.local
.
.
.
.
.
.
.


;) 



Quagga == Cisco-like CLI in Linux

Quagga Router
( https://www.quagga.net/ )

- Cisco-like interface + commands - that is Quagga Routing Software Suite
- all today-used routing protocols : BGP, OSPF, EIGRP, RIP and also IS-IS
- for routing uses the OS / Linux Kernel -- > no virtualization nor simulation
/ therefore its fast & speed together with lightness is essence...

 Kompletni manual v PDF: (download from U.S. NAVY .mil website )
 https://downloads.pf.itd.nrl.navy.mil/ospf-manet/archive/quagga-0.99.17mr2.0/quagga.pdf

Install Quagga on Debian, Ubuntu, Gentoo, Centos etc.
-- use the package manager or download latest updated package (production version 0.99)

Ubuntu direct install:
sudo apt install quagga*

Download latest - quagga-1.2.4.tar.gz:
wget http://download.savannah.gnu.org/releases/quagga/quagga-1.2.4.tar.gz /temp

Install & compile :
tar -xzvf /temp/quagga-1.2.4.tar.gz
cd /temp/quagga-1.2.4
cd install
./configure
make
make install

now enable the routing daemons you want to use:
 sudo nano /etc/quagga/daemons

Change as needed:
zebra=yes #<<<<<< has to be enabled for basic functionality
bgpd=yes
ospfd=yes
ospf6d=no
ripd=yes
ripngd=yes
isisd=no
babeld=no


Now you can copy the config samples to main dir:
cp /usr/share/doc/quagga/examples/*.* /etc/quagga/


Also edit the configuration file for VTYSH CLI to enable:
cd /etc/quagga
mv vtysh.conf.sample vtysh.conf

Last thing we need to enable IP Forwarding:
#echo "1" > /proc/sys/net/ipv4/ip_forward  

This adds the "1" value in /proc/sys/net/ipv4/ip_forward file and activates the IP forwarding

To keep the IP Forwarding "ON" after a Linux reboots edit the /etc/sysctl.conf file:
sudo nano /etc/sysctl.conf

press Ctrl + W and type:
forward
enter

and change value to 1
net.ipv4.ip_forward = 1

Or you can also use:

sudo su

echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf 

 So,  are you ready? 
 Run the command vtysh instance: 

##  vtysh -C
##  vtysh


router> enable
router#
router# configure terminal
router(config)#

router(config)#end
router#write

You can start to use the Linux for routing!

In next article ::
explanation howto create BGP session between your home Cisco router /GNS3/ and your cloud VPS
Enjoy!

Saturday, August 11, 2018

UK internet sucks




The internet connection in UK sucks

 So, as you can see below, from the testing via BT pages.
And it is showing up a one thing -- > that a standard in Central Europe is completely out of scope on the islands.

Almost 95% of the UK tested connections are worse...
Via thinkbroadband.com recorded an average download speed of:  92.62 Mbps

https://www.thinkbroadband.com/_assets/speedtest/button/1534045761249543255-mini.png

At least people out of the UK might be able to watch iBBC in Ultra HD. Locals will probably watch a TV.