Latest

Debian Router - Setup

In this articles series you will learn how to setup Linux (Debian) as a Router for home/business local networks, to spice things I'll show how to add dns server, proxy/web caching server, and basic web traffic filter to our cute debian box.   In this series I'll go over: Introduction . Hardware Requirements . Software installation . Basic Setup . /etc/network/Interfaces Configuration . Unbound dns server setup . DHCP server setup . Squid setup. Final step i...

Debian Router - Network Interfaces Configuration

In preparation of using debian as a router, We'll configure network interfaces, after performing initial setup .     In this debian router articles series also: Introduction . Hardware Requirements . Software installation . Basic Setup . /etc/network/Interfaces Configuration. ( We are Here! ) Unbound dns server setup . DHCP server setup . Squid setup. Final step iptables and sysctl.conf configuration .   We'll modify /etc/network/inter...

Debian Router - Unbound Dns Server Setup

In the previous artilce we've configured network interfaces, so by now debian box is connected to internet through WAN-AP on eth0 and to local network throuch LAN-AP on eth1. Today we'll setup unbound dns server to serve dns queries for our awesome LAN clients.     In this debian router articles series also: Introduction . Hardware Requirements . Software installation . Basic Setup . /etc/network/Interfaces Configuration . Unbound dns server setup . ( We...

Debian Router - Dhcp Server Setup

We've learned  previously  how to set up unbound dns server as caching dns server for our LAN users, in this article we'll configure dhcp server from which a unique ip address for each client assigned as a bonus automatically configure dns server settings for them.     In this debian router articles series also: Introduction . Hardware Requirements . Software installation . Basic Setup . /etc/network/Interfaces Configuration . Unbound dns server ...

Debian Router - Squid Setup

We've configured the dhcp server , so what's for today?! Today we'll configure Squid for caching web traffic and access control.     In this debian router articles series also: Introduction . Hardware Requirements . Software installation . Basic Setup . /etc/network/Interfaces Configuration . Unbound dns server setup . DHCP server setup .  Squid setup . ( We are Here! ) Final step iptables and sysctl.conf configuration .   ...

Debian Router - Iptables And Sysctl.Conf Configuration

Tody we'll finish configuring our awesome router, in the previous article we'd configured squid proxy, in this article we'll pass all LAN traffic through squid using iptables.    In this debian router articles series also: Introduction . Hardware Requirements . Software installation . Basic Setup . /etc/network/Interfaces Configuration . Unbound dns server setup . DHCP server setup .  Squid setup .  Final step iptables and sysctl.conf c...

Postgresql Stream Replication Setup

Recently Postgresql Stream replication become even easier, In this article you'll be shown how to setup stream replication for postgresql 9.3+.   Postgresql Stream Replication stream replication is a feature that let a mirror/replica/standby database to get a stream of changes that have been done on another primary database, to be replicated on as many standby databases as needed.   Use Cases stream replication can be used as follows: As Part of Data protection plan, Wh...

Php Null Coalescence

Since PHP 7, you can use, null coalescing operator ?? , it eleminates the need to check if the variable is not NULL before accessing its value, Before PHP 7 you needed isset() function for checking. The Null coalescing operator comes to save your time, its returns the first operand if it's exists and is not NULL , otherwise the second operand returned. Here is an example: <?php    // if room is not passed    $room = $_GET['room'] ?? 13;    p...

Python Numbers

Python numeric types store allow you to play with numebers, numbers in python are immutable, which means changing the value of a number makes a new numeric object. Number objects Numbers in most programming languages are the simplest data to work with (well technically boolean is simpler, but lets just keep going :), so you can create a number by just an assignment, bingoooooo For example coder = 5 coderme = 7 com = 3 You can also delete a number variable like you delete any...

Python-Loops

Python interpreter typically runs code sequentially first statement then the second .. from top to bottom, one alternative way of running code, is executing the same statements repeatedly, this term is known in programming as a loop not Lupe :) Python loop types Python supports two type of loop for and while loops while loop which is a simple loop used mainly for infinite loops aka loops that doesn't need to stop, like listening for incoming connection on a server socket w...