<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.plecko.hr/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.plecko.hr/feed.php">
        <title>Eureka Moment linux:networking</title>
        <description></description>
        <link>https://wiki.plecko.hr/</link>
        <image rdf:resource="https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico" />
       <dc:date>2026-04-25T16:56:43+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:auto_openconnect&amp;rev=1574235660&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:bridged_adapter&amp;rev=1667566287&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:compare_zone_on_two_dns_servers&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:disable_ipv6&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:iptables&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:openvpn&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:proxy&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:smtp_response_codes&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:start&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:static_ip&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:tunnel_internet_through_ssh&amp;rev=1572509100&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.plecko.hr/doku.php?id=linux:networking:ubuntu_pptp_gateway&amp;rev=1572509100&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico">
        <title>Eureka Moment</title>
        <link>https://wiki.plecko.hr/</link>
        <url>https://wiki.plecko.hr/lib/tpl/bootstrap3/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:auto_openconnect&amp;rev=1574235660&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-20T08:41:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:auto_openconnect</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:auto_openconnect&amp;rev=1574235660&amp;do=diff</link>
        <description>Always on openconnect

Saving passwords in plain text is bad!


* * * * * /root/oc.sh



#!/bin/bash
target=$1
count=$( ping -c 1 10.1.2.3 | grep icmp* | wc -l )

if [ $count -eq 0 ]
then
    echo &quot;VPN is down.&quot;
    echo &quot;password&quot; | sudo openconnect vpn.example.com -u username --passwd-on-stdin --no-cert-check
else
    echo &quot;VPN is UP&quot;
fi</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:bridged_adapter&amp;rev=1667566287&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-11-04T13:51:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:bridged_adapter</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:bridged_adapter&amp;rev=1667566287&amp;do=diff</link>
        <description>Ubuntu Netplan bridged adapter


network:
  ethernets:
    eth0:
      dhcp4: false
      dhcp6: false

  bridges:
    br0:
      interfaces:
        - eth0
      addresses:
        - 172.16.0.51/24
      macaddress: 00:15:5d:01:6a:1d
      nameservers:
        addresses:
          - 10.0.0.2
        search:
          - home.local
      routes:
        - to: default
          via: 172.16.0.1
      mtu: 1500

  version: 2</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:compare_zone_on_two_dns_servers&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:compare_zone_on_two_dns_servers</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:compare_zone_on_two_dns_servers&amp;rev=1572509100&amp;do=diff</link>
        <description>Compare DNS zone on two different DNS servers

 diff &lt;(sort -u &lt;(dig +nottlid +noall +answer @10.0.0.10 example.com TXT -t axfr) ) &lt;(sort -u &lt;(dig +nottlid +noall +answer @10.0.0.11 example.com TXT -t axfr) )

Works in bash

Query txt records with nslookup:</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:disable_ipv6&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:disable_ipv6</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:disable_ipv6&amp;rev=1572509100&amp;do=diff</link>
        <description>Disable IPv6 on Ubuntu

Method 1: sysctl

sudo gedit /etc/sysctl.conf

Append to end of file


# IPv6 disabled
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1


Save the file and close it. Restart sysctl with</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:iptables&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:iptables</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:iptables&amp;rev=1572509100&amp;do=diff</link>
        <description>Automatic load of iptables rules on Ubuntu

The fact that iptables is empty on each boot is both beautiful and iritating! You can mess everything up, and just reboot the PC to get a clean start (or just empty the rules - to be faster). But what if you want the rules to apply even after reboot? Here are a few ways to d othis:</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:openvpn&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:openvpn</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:openvpn&amp;rev=1572509100&amp;do=diff</link>
        <description>Setup OpenVPN server and client

Introduction

Want to access the Internet safely and securely from your smartphone or laptop when connected to an untrusted network such as the WiFi of a hotel or coffee shop? A Virtual Private Network (VPN) allows you to traverse untrusted networks privately and securely as if you were on a private network. The traffic emerges from the VPN server and continues its journey to the destination.</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:proxy&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:proxy</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:proxy&amp;rev=1572509100&amp;do=diff</link>
        <description>Debian set proxy

Edit /etc/profile.d/proxy.sh, add 


export http_proxy=http://192.168.0.1:3128
export https_proxy=http://192.168.0.1:3128
export ftp_proxy=http://192.168.0.1:3128


Edit /etc/apt/apt.conf.d/99HttpProxy, add


Acquire::http::Proxy &quot;http://192.168.0.1:3128&quot;;
Acquire::https::Proxy &quot;http://192.168.0.1:3128&quot;;
Acquire::ftp::Proxy &quot;http://192.168.0.1:3128&quot;;</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:smtp_response_codes&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:smtp_response_codes</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:smtp_response_codes&amp;rev=1572509100&amp;do=diff</link>
        <description>SMTP Status Codes

This document describes the set of extended status codes for use within the SMTP mail system for delivery status reports, tracking, and improved diagnostics. In combination with other information provided in the Delivery Status Notification (DSN) delivery report, these codes facilitate media and language independent rendering of message delivery status.</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:start&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:start</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:start&amp;rev=1572509100&amp;do=diff</link>
        <description>Networking




	* Always on openconnect
	* Automatic load of iptables rules on Ubuntu
	* Compare DNS zone on two different DNS servers
	* Debian set proxy
	* Disable IPv6 on Ubuntu
	* Forward local internet through ssh tunnel
	* Setup OpenVPN server and client
	* SMTP Status Codes
	* Static network IP on Ubuntu server
	* Ubuntu Netplan bridged adapter
	* Ubuntu PPTP VPN internet gateway</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:static_ip&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:static_ip</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:static_ip&amp;rev=1572509100&amp;do=diff</link>
        <description>Static network IP on Ubuntu server

Configuring IP address on Ubuntu server without using any tools other than a text editor

Version 18.04

The new interfaces configuration file now lives in the /etc/netplan directory. There are two renderers: NetworkManager and networkd.</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:tunnel_internet_through_ssh&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:tunnel_internet_through_ssh</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:tunnel_internet_through_ssh&amp;rev=1572509100&amp;do=diff</link>
        <description>Forward local internet through ssh tunnel

Install http proxy on local machine, and bind it to port 8080


ssh -R 8080:&lt;local IP&gt;:8080 user@&lt;remote IP&gt;
export http_proxy=http://&lt;local IP&gt;:8080
export https_proxy=http://&lt;local IP&gt;:8080
sudo visudo
#append text
Defaults env_keep = &quot;http_proxy https_proxy ftp_proxy&quot;</description>
    </item>
    <item rdf:about="https://wiki.plecko.hr/doku.php?id=linux:networking:ubuntu_pptp_gateway&amp;rev=1572509100&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-31T09:05:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:networking:ubuntu_pptp_gateway</title>
        <link>https://wiki.plecko.hr/doku.php?id=linux:networking:ubuntu_pptp_gateway&amp;rev=1572509100&amp;do=diff</link>
        <description>Ubuntu PPTP VPN internet gateway

This is tested on Digital Ocean - use this link to get 10$

Setup PPTP Server

First we need to install pptp server using apt-get

# sudo apt-get install pptpd

Then we need to configure the pptpd.

# sudo nano /etc/pptpd.conf

Add server IP and client IP at the end of the file. You can add like below:</description>
    </item>
</rdf:RDF>
