You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1048 lines
1.0 MiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Asciidoctor 2.0.10">
<meta name="description" content="ΕΡΓΑΣΙΑ ΕΞΑΜΗΝΟΥ">
<meta name="keywords" content="doc">
<title>ΑΣΦΑΛΕΙΑ ΔΙΚΤΥΩΝ ΚΑΙ ΕΠΙΚΟΙΝΩΝΙΩΝ ANTONIOU KALLIOPI 47441</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
<style>
/* Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */
/* Uncomment @import statement to use as custom stylesheet */
/*@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";*/
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}
audio,video{display:inline-block}
audio:not([controls]){display:none;height:0}
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
a{background:none}
a:focus{outline:thin dotted}
a:active,a:hover{outline:0}
h1{font-size:2em;margin:.67em 0}
abbr[title]{border-bottom:1px dotted}
b,strong{font-weight:bold}
dfn{font-style:italic}
hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}
mark{background:#ff0;color:#000}
code,kbd,pre,samp{font-family:monospace;font-size:1em}
pre{white-space:pre-wrap}
q{quotes:"\201C" "\201D" "\2018" "\2019"}
small{font-size:80%}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sup{top:-.5em}
sub{bottom:-.25em}
img{border:0}
svg:not(:root){overflow:hidden}
figure{margin:0}
fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}
legend{border:0;padding:0}
button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
button,input{line-height:normal}
button,select{text-transform:none}
button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}
button[disabled],html input[disabled]{cursor:default}
input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
textarea{overflow:auto;vertical-align:top}
table{border-collapse:collapse;border-spacing:0}
*,*::before,*::after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}
html,body{font-size:100%}
body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto;tab-size:4;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}
a:hover{cursor:pointer}
img,object,embed{max-width:100%;height:auto}
object,embed{height:100%}
img{-ms-interpolation-mode:bicubic}
.left{float:left!important}
.right{float:right!important}
.text-left{text-align:left!important}
.text-right{text-align:right!important}
.text-center{text-align:center!important}
.text-justify{text-align:justify!important}
.hide{display:none}
img,object,svg{display:inline-block;vertical-align:middle}
textarea{height:auto;min-height:50px}
select{width:100%}
.center{margin-left:auto;margin-right:auto}
.stretch{width:100%}
.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em}
div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0;direction:ltr}
a{color:#2156a5;text-decoration:underline;line-height:inherit}
a:hover,a:focus{color:#1d4b8f}
a img{border:0}
p{font-family:inherit;font-weight:400;font-size:1em;line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility}
p aside{font-size:.875em;line-height:1.35;font-style:italic}
h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em}
h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0}
h1{font-size:2.125em}
h2{font-size:1.6875em}
h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em}
h4,h5{font-size:1.125em}
h6{font-size:1em}
hr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em;height:0}
em,i{font-style:italic;line-height:inherit}
strong,b{font-weight:bold;line-height:inherit}
small{font-size:60%;line-height:inherit}
code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)}
ul,ol,dl{font-size:1em;line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit}
ul,ol{margin-left:1.5em}
ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0;font-size:1em}
ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit}
ul.square{list-style-type:square}
ul.circle{list-style-type:circle}
ul.disc{list-style-type:disc}
ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0}
dl dt{margin-bottom:.3125em;font-weight:bold}
dl dd{margin-bottom:1.25em}
abbr,acronym{text-transform:uppercase;font-size:90%;color:rgba(0,0,0,.8);border-bottom:1px dotted #ddd;cursor:help}
abbr{text-transform:none}
blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd}
blockquote cite{display:block;font-size:.9375em;color:rgba(0,0,0,.6)}
blockquote cite::before{content:"\2014 \0020"}
blockquote cite a,blockquote cite a:visited{color:rgba(0,0,0,.6)}
blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)}
@media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2}
h1{font-size:2.75em}
h2{font-size:2.3125em}
h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em}
h4{font-size:1.4375em}}
table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede}
table thead,table tfoot{background:#f7f8f7}
table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left}
table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}
table tr.even,table tr.alt{background:#f8f8f7}
table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{display:table-cell;line-height:1.6}
h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em}
h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}
.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:" ";display:table}
.clearfix::after,.float-group::after{clear:both}
:not(pre):not([class^=L])>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed;word-wrap:break-word}
:not(pre)>code.nobreak{word-wrap:normal}
:not(pre)>code.nowrap{white-space:nowrap}
pre{color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;line-height:1.45;text-rendering:optimizeSpeed}
pre code,pre pre{color:inherit;font-size:inherit;line-height:inherit}
pre>code{display:block}
pre.nowrap,pre.nowrap pre{white-space:pre;word-wrap:normal}
em em{font-style:normal}
strong strong{font-weight:400}
.keyseq{color:rgba(51,51,51,.8)}
kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap}
.keyseq kbd:first-child{margin-left:0}
.keyseq kbd:last-child{margin-right:0}
.menuseq,.menuref{color:#000}
.menuseq b:not(.caret),.menuref{font-weight:inherit}
.menuseq{word-spacing:-.02em}
.menuseq b.caret{font-size:1.25em;line-height:.8}
.menuseq i.caret{font-weight:bold;text-align:center;width:.45em}
b.button::before,b.button::after{position:relative;top:-1px;font-weight:400}
b.button::before{content:"[";padding:0 3px 0 2px}
b.button::after{content:"]";padding:0 2px 0 3px}
p a>code:hover{color:rgba(0,0,0,.9)}
#header,#content,#footnotes,#footer{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em}
#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:" ";display:table}
#header::after,#content::after,#footnotes::after,#footer::after{clear:both}
#content{margin-top:1.25em}
#content::before{content:none}
#header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}
#header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf}
#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px}
#header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap}
#header .details span:first-child{margin-left:-.125em}
#header .details span.email a{color:rgba(0,0,0,.85)}
#header .details br{display:none}
#header .details br+span::before{content:"\00a0\2013\00a0"}
#header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)}
#header .details br+span#revremark::before{content:"\00a0|\00a0"}
#header #revnumber{text-transform:capitalize}
#header #revnumber::after{content:"\00a0"}
#content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem}
#toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em}
#toc>ul{margin-left:.125em}
#toc ul.sectlevel0>li>a{font-style:italic}
#toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0}
#toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none}
#toc li{line-height:1.3334;margin-top:.3334em}
#toc a{text-decoration:none}
#toc a:active{text-decoration:underline}
#toctitle{color:#7a2518;font-size:1.2em}
@media screen and (min-width:768px){#toctitle{font-size:1.375em}
body.toc2{padding-left:15em;padding-right:0}
#toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
#toc.toc2>ul{font-size:.9em;margin-bottom:0}
#toc.toc2 ul ul{margin-left:0;padding-left:1em}
#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}
body.toc2.toc-right{padding-left:0;padding-right:15em}
body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}}
@media screen and (min-width:1280px){body.toc2{padding-left:20em;padding-right:0}
#toc.toc2{width:20em}
#toc.toc2 #toctitle{font-size:1.375em}
#toc.toc2>ul{font-size:.95em}
#toc.toc2 ul ul{padding-left:1.25em}
body.toc2.toc-right{padding-left:0;padding-right:20em}}
#content #toc{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px}
#content #toc>:first-child{margin-top:0}
#content #toc>:last-child{margin-bottom:0}
#footer{max-width:100%;background:rgba(0,0,0,.8);padding:1.25em}
#footer-text{color:rgba(255,255,255,.8);line-height:1.44}
#content{margin-bottom:.625em}
.sect1{padding-bottom:.625em}
@media screen and (min-width:768px){#content{margin-bottom:1.25em}
.sect1{padding-bottom:1.25em}}
.sect1:last-child{padding-bottom:0}
.sect1+.sect1{border-top:1px solid #e7e7e9}
#content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400}
#content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em}
#content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible}
#content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none}
#content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221}
details,.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em}
details>summary:first-of-type{cursor:pointer;display:list-item;outline:none;margin-bottom:.75em}
.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic}
table.tableblock.fit-content>caption.title{white-space:nowrap;width:0}
.paragraph.lead>p,#preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)}
table.tableblock #preamble>.sectionbody>[class="paragraph"]:first-of-type p{font-size:inherit}
.admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%}
.admonitionblock>table td.icon{text-align:center;width:80px}
.admonitionblock>table td.icon img{max-width:none}
.admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase}
.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6)}
.admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}
.exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px}
.exampleblock>.content>:first-child{margin-top:0}
.exampleblock>.content>:last-child{margin-bottom:0}
.sidebarblock{border-style:solid;border-width:1px;border-color:#dbdbd6;margin-bottom:1.25em;padding:1.25em;background:#f3f3f2;-webkit-border-radius:4px;border-radius:4px}
.sidebarblock>:first-child{margin-top:0}
.sidebarblock>:last-child{margin-bottom:0}
.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center}
.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}
.literalblock pre,.listingblock>.content>pre{-webkit-border-radius:4px;border-radius:4px;word-wrap:break-word;overflow-x:auto;padding:1em;font-size:.8125em}
@media screen and (min-width:768px){.literalblock pre,.listingblock>.content>pre{font-size:.90625em}}
@media screen and (min-width:1280px){.literalblock pre,.listingblock>.content>pre{font-size:1em}}
.literalblock pre,.listingblock>.content>pre:not(.highlight),.listingblock>.content>pre[class="highlight"],.listingblock>.content>pre[class^="highlight "]{background:#f7f7f8}
.literalblock.output pre{color:#f7f7f8;background:rgba(0,0,0,.9)}
.listingblock>.content{position:relative}
.listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:inherit;opacity:.5}
.listingblock:hover code[data-lang]::before{display:block}
.listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:inherit;opacity:.5}
.listingblock.terminal pre .command:not([data-prompt])::before{content:"$"}
.listingblock pre.highlightjs{padding:0}
.listingblock pre.highlightjs>code{padding:1em;-webkit-border-radius:4px;border-radius:4px}
.listingblock pre.prettyprint{border-width:0}
.prettyprint{background:#f7f7f8}
pre.prettyprint .linenums{line-height:1.45;margin-left:2em}
pre.prettyprint li{background:none;list-style-type:inherit;padding-left:0}
pre.prettyprint li code[data-lang]::before{opacity:1}
pre.prettyprint li:not(:first-child) code[data-lang]::before{display:none}
table.linenotable{border-collapse:separate;border:0;margin-bottom:0;background:none}
table.linenotable td[class]{color:inherit;vertical-align:top;padding:0;line-height:inherit;white-space:normal}
table.linenotable td.code{padding-left:.75em}
table.linenotable td.linenos{border-right:1px solid currentColor;opacity:.35;padding-right:.5em}
pre.pygments .lineno{border-right:1px solid currentColor;opacity:.35;display:inline-block;margin-right:.75em}
pre.pygments .lineno::before{content:"";margin-right:-.125em}
.quoteblock{margin:0 1em 1.25em 1.5em;display:table}
.quoteblock:not(.excerpt)>.title{margin-left:-1.5em;margin-bottom:.75em}
.quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify}
.quoteblock blockquote{margin:0;padding:0;border:0}
.quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)}
.quoteblock blockquote>.paragraph:last-child p{margin-bottom:0}
.quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right}
.verseblock{margin:0 1em 1.25em}
.verseblock pre{font-family:"Open Sans","DejaVu Sans",sans;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility}
.verseblock pre strong{font-weight:400}
.verseblock .attribution{margin-top:1.25rem;margin-left:.5ex}
.quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic}
.quoteblock .attribution br,.verseblock .attribution br{display:none}
.quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)}
.quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none}
.quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0}
.quoteblock.abstract{margin:0 1em 1.25em;display:block}
.quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center}
.quoteblock.excerpt>blockquote,.quoteblock .quoteblock{padding:0 0 .25em 1em;border-left:.25em solid #dddddf}
.quoteblock.excerpt,.quoteblock .quoteblock{margin-left:0}
.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem}
.quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;text-align:left;margin-right:0}
table.tableblock{max-width:100%;border-collapse:separate}
p.tableblock:last-child{margin-bottom:0}
td.tableblock>.content>:last-child{margin-bottom:-1.25em}
td.tableblock>.content>:last-child.sidebarblock{margin-bottom:0}
table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede}
table.grid-all>thead>tr>.tableblock,table.grid-all>tbody>tr>.tableblock{border-width:0 1px 1px 0}
table.grid-all>tfoot>tr>.tableblock{border-width:1px 1px 0 0}
table.grid-cols>*>tr>.tableblock{border-width:0 1px 0 0}
table.grid-rows>thead>tr>.tableblock,table.grid-rows>tbody>tr>.tableblock{border-width:0 0 1px}
table.grid-rows>tfoot>tr>.tableblock{border-width:1px 0 0}
table.grid-all>*>tr>.tableblock:last-child,table.grid-cols>*>tr>.tableblock:last-child{border-right-width:0}
table.grid-all>tbody>tr:last-child>.tableblock,table.grid-all>thead:last-child>tr>.tableblock,table.grid-rows>tbody>tr:last-child>.tableblock,table.grid-rows>thead:last-child>tr>.tableblock{border-bottom-width:0}
table.frame-all{border-width:1px}
table.frame-sides{border-width:0 1px}
table.frame-topbot,table.frame-ends{border-width:1px 0}
table.stripes-all tr,table.stripes-odd tr:nth-of-type(odd),table.stripes-even tr:nth-of-type(even),table.stripes-hover tr:hover{background:#f8f8f7}
th.halign-left,td.halign-left{text-align:left}
th.halign-right,td.halign-right{text-align:right}
th.halign-center,td.halign-center{text-align:center}
th.valign-top,td.valign-top{vertical-align:top}
th.valign-bottom,td.valign-bottom{vertical-align:bottom}
th.valign-middle,td.valign-middle{vertical-align:middle}
table thead th,table tfoot th{font-weight:bold}
tbody tr th{display:table-cell;line-height:1.6;background:#f7f8f7}
tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold}
p.tableblock>code:only-child{background:none;padding:0}
p.tableblock{font-size:1em}
ol{margin-left:1.75em}
ul li ol{margin-left:1.5em}
dl dd{margin-left:1.125em}
dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0}
ol>li p,ul>li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em}
ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none}
ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em}
ul.unstyled,ol.unstyled{margin-left:0}
ul.checklist{margin-left:.625em}
ul.checklist li>p:first-child>.fa-square-o:first-child,ul.checklist li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em}
ul.checklist li>p:first-child>input[type="checkbox"]:first-child{margin-right:.25em}
ul.inline{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em}
ul.inline>li{margin-left:1.25em}
.unstyled dl dt{font-weight:400;font-style:normal}
ol.arabic{list-style-type:decimal}
ol.decimal{list-style-type:decimal-leading-zero}
ol.loweralpha{list-style-type:lower-alpha}
ol.upperalpha{list-style-type:upper-alpha}
ol.lowerroman{list-style-type:lower-roman}
ol.upperroman{list-style-type:upper-roman}
ol.lowergreek{list-style-type:lower-greek}
.hdlist>table,.colist>table{border:0;background:none}
.hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none}
td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em}
td.hdlist1{font-weight:bold;padding-bottom:1.25em}
.literalblock+.colist,.listingblock+.colist{margin-top:-.5em}
.colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top}
.colist td:not([class]):first-child img{max-width:none}
.colist td:not([class]):last-child{padding:.25em 0}
.thumb,.th{line-height:0;display:inline-block;border:solid 4px #fff;-webkit-box-shadow:0 0 0 1px #ddd;box-shadow:0 0 0 1px #ddd}
.imageblock.left{margin:.25em .625em 1.25em 0}
.imageblock.right{margin:.25em 0 1.25em .625em}
.imageblock>.title{margin-bottom:0}
.imageblock.thumb,.imageblock.th{border-width:6px}
.imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em}
.image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0}
.image.left{margin-right:.625em}
.image.right{margin-left:.625em}
a.image{text-decoration:none;display:inline-block}
a.image object{pointer-events:none}
sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}
sup.footnote a,sup.footnoteref a{text-decoration:none}
sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline}
#footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}
#footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0}
#footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em}
#footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em}
#footnotes .footnote:last-of-type{margin-bottom:0}
#content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0}
.gist .file-data>table{border:0;background:#fff;width:100%;margin-bottom:0}
.gist .file-data>table td.line-data{width:99%}
div.unbreakable{page-break-inside:avoid}
.big{font-size:larger}
.small{font-size:smaller}
.underline{text-decoration:underline}
.overline{text-decoration:overline}
.line-through{text-decoration:line-through}
.aqua{color:#00bfbf}
.aqua-background{background:#00fafa}
.black{color:#000}
.black-background{background:#000}
.blue{color:#0000bf}
.blue-background{background:#0000fa}
.fuchsia{color:#bf00bf}
.fuchsia-background{background:#fa00fa}
.gray{color:#606060}
.gray-background{background:#7d7d7d}
.green{color:#006000}
.green-background{background:#007d00}
.lime{color:#00bf00}
.lime-background{background:#00fa00}
.maroon{color:#600000}
.maroon-background{background:#7d0000}
.navy{color:#000060}
.navy-background{background:#00007d}
.olive{color:#606000}
.olive-background{background:#7d7d00}
.purple{color:#600060}
.purple-background{background:#7d007d}
.red{color:#bf0000}
.red-background{background:#fa0000}
.silver{color:#909090}
.silver-background{background:#bcbcbc}
.teal{color:#006060}
.teal-background{background:#007d7d}
.white{color:#bfbfbf}
.white-background{background:#fafafa}
.yellow{color:#bfbf00}
.yellow-background{background:#fafa00}
span.icon>.fa{cursor:default}
a span.icon>.fa{cursor:inherit}
.admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default}
.admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c}
.admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111}
.admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900}
.admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400}
.admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000}
.conum[data-value]{display:inline-block;color:#fff!important;background:rgba(0,0,0,.8);-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold}
.conum[data-value] *{color:#fff!important}
.conum[data-value]+b{display:none}
.conum[data-value]::after{content:attr(data-value)}
pre .conum[data-value]{position:relative;top:-.125em}
b.conum *{color:inherit!important}
.conum:not([data-value]):empty{display:none}
dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility}
h1,h2,p,td.content,span.alt{letter-spacing:-.01em}
p strong,td.content strong,div.footnote strong{letter-spacing:-.005em}
p,blockquote,dt,td.content,span.alt{font-size:1.0625rem}
p{margin-bottom:1.25rem}
.sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em}
.exampleblock>.content{background:#fffef7;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc}
.print-only{display:none!important}
@page{margin:1.25cm .75cm}
@media print{*{-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}
html{font-size:80%}
a{color:inherit!important;text-decoration:underline!important}
a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important}
a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em}
abbr[title]::after{content:" (" attr(title) ")"}
pre,blockquote,tr,img,object,svg{page-break-inside:avoid}
thead{display:table-header-group}
svg{max-width:100%}
p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3}
h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid}
#toc,.sidebarblock,.exampleblock>.content{background:none!important}
#toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important}
body.book #header{text-align:center}
body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em}
body.book #header .details{border:0!important;display:block;padding:0!important}
body.book #header .details span:first-child{margin-left:0!important}
body.book #header .details br{display:block}
body.book #header .details br+span::before{content:none!important}
body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important}
body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always}
.listingblock code[data-lang]::before{display:block}
#footer{padding:0 .9375em}
.hide-on-print{display:none!important}
.print-only{display:block!important}
.hide-for-print{display:none!important}
.show-for-print{display:inherit!important}}
@media print,amzn-kf8{#header>h1:first-child{margin-top:1.25rem}
.sect1{padding:0!important}
.sect1+.sect1{border:0}
#footer{background:none}
#footer-text{color:rgba(0,0,0,.6);font-size:.9em}}
@media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="article toc2 toc-right">
<div id="header">
<h1>ΑΣΦΑΛΕΙΑ ΔΙΚΤΥΩΝ ΚΑΙ ΕΠΙΚΟΙΝΩΝΙΩΝ ANTONIOU KALLIOPI 47441</h1>
<div id="toc" class="toc2">
<div id="toctitle">Πίνακας περιεχομένων</div>
<ul class="sectlevel1">
<li><a href="#cheat-clone">1. Shorewall</a></li>
<li><a href="#_docker">2. Docker</a></li>
<li><a href="#_ssh_tunneling">3. SSH TUNNELING</a></li>
<li><a href="#_vpn">4. VPN</a>
<ul class="sectlevel2">
<li><a href="#_δημιουργία_δικτύων_στον_docker_host">4.1. Δημιουργία δικτύων στον docker HOST</a></li>
<li><a href="#_δημιουργία_δικτύων_in_docker_container">4.2. Δημιουργία δικτύων in docker container</a>
<ul class="sectlevel3">
<li><a href="#_για_σύνδεση_στο_ίντερνετ">4.2.1. Για σύνδεση στο ίντερνετ</a></li>
</ul>
</li>
<li><a href="#_ζητηματα">4.3. ΖΗΤΗΜΑΤΑ</a>
<ul class="sectlevel3">
<li><a href="#_allow_internet_connection">4.3.1. Allow Internet connection</a></li>
<li><a href="#_allow_only_connection_from_network_a_b_b_a_port_80">4.3.2. Allow only connection from Network A &#8594; B, B &#8594; A port 80</a></li>
<li><a href="#_open_ssh_tunnel_from_network_aport_80_masterport_8080_and_connect_from_host_master_port_9000">4.3.3. Open SSH Tunnel from NETWORK-A(port 80) &#8594; MASTER(port 8080) and connect from HOST &#8594; MASTER port 9000</a></li>
<li><a href="#_create_vpn">4.3.4. Create VPN</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p><br></p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="cheat-clone">1. Shorewall</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Το Shorewall είναι ένα εργαλείο τείχους προστασίας ανοιχτού κώδικα για το Linux που βασίζεται στο σύστημα Netfilter (iptables / ipchains) ενσωματωμένο στον πυρήνα του Linux, διευκολύνοντας τη διαχείριση πιο περίπλοκων σχημάτων διαμόρφωσης παρέχοντας ένα υψηλότερο επίπεδο αφαίρεσης για την περιγραφή κανόνων χρησιμοποιώντας αρχεία κειμένου.</p>
</div>
<div class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA3cAAAMmCAYAAABW4XhEAAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOzdeVzVdb7H8dfvLHDY930VkEVBLffKbJnUFq1MvY1Nk2bLVFPTTJPVTM2MttvM3Ba90zKl1qgtLmVjapuatqqpSO6mICoCyiIcOHAO5/7xPSAIyO6Bw+f5eCBwzu/8zucceOB5n+/y0a699lr7qlWrEEIIIYQQ54dOp+OPf/wjzz//vLNLEUK4EA2wO7sIIYQQQojeJiMjg8zMTGeXIYRwIYbaLyThCSGEEEJ0vZ3AAGcXIYRwSTpnFyCEEEIIIYQQouMk3AkhhBBCCCGEC5BwJ4QQQgghhBAuQMKdEEIIIYQQQrgACXdCCCGEEEII4QIk3AkhhBBCCCGEC5BwJ4QQQgghhBAuQMKdEEIIIYQQQrgACXdCCCGEEEII4QIk3AkhhBBCCCGEC5BwJ4QQQgghhBAuoEeEu38DWr2PB866vvKs63PPcdumPv7oODa4FcfWfoR34uMTQgghhBBCiI7qEeHubK8BOc4uQgghhBBCCCG6EYOzC2iPKmAW8GYbb+cB3NvE5Zc5Pt8HlNe7/L/AXsfXKcB19a7zbeN9CyGEEEIIIURX6pHhDmAh8AiQ3IbbeAJ/P8f1s876Ppcz4W5QC7cVQgghhBBCCGfqcdMy+wM+gA14wsm1CCGEEEIIIUR30ePCXTDwoOPrD4AdbbjtSZreHGVLZxYohBBCCCGEEE7Q48IdqN0tAwE78Gcn1yKEEEIIIYQQ3UGPXHPni1pv9wiwCvi2lbfzoHEbBYCITqpLCCGEEEIIIZylR4Y7gPuBF4HjtH70zhN4rssqEkIIIYQQQgjn6ZHTMkGNwj3u+Lq1I3dCCCGEEEII4ap67MgdwJ2o9gSHWnm8GXi0ic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kp9fHlv6q0MTk3BoJNZuC2xVFVTVFZGSXk5Bl9f3pl2OwtvvQ0j4AYY9XqMeh12nR7NXoPNasNWY8NSY8eiabhbrQSWFBOTfZj4AweIy8kmIu84upqe3yNHCCGEEEJ0bxLuutCutH6snnAj+eHhRMdEcXFoKCZj5/aTczMaiQwKIjIoCFtNDXmn+rIiIYmlpaWMWf1f9vXPIDI6Cl8vr069X1f1c14e5eYK/Ly9iA8Px8fThKebO1org7GlqppySyWl5UP5+tRJPikpwWKrIfnnA1z43Xdk/LRTeukJIYQQQoguIeGuCxyOi+f9qb+iNCKSPn3iSAsKOi8tB/Q6HVHBwUQFB1Ncdpr1wcEUWiykmdzBbgdpe9CitA6uSXR3M+LuZiTQxwfCQwEV+PJT+rJmwCDeLS+n/+7dXLL+CxJ/Ptiq9ZJCCCGEEEK0hoS7TlRpMrFi0hS2XziEvn0TyQgKclqg8vf2YfDADIrLTrPrcA5HC06SkRiPt4enU+rpzdzdjMSEhBATEkJVdTVH+8SzICMdt2I1ujps8/cybVMIIYQQQnSYhLtOsj+pLwtn3Il/dDQXx8djNHSPbfT9vX0Ymd6fIycK+G7XHhIiIukTGS4bqziJm9FIn8gI+kRGcKqklM+Cg1h93QSuX/4BF2zfJiN5QgghhBCi3STcdZBd0/j8qrF8dvW1pKcmE+Lv7+ySGtGA2LAQQvz9OFJQ4OxyhEOgny+Bgy+gsLSUD319WH/kCLcufIsQ+RkJIYQQQoh2kHDXATa9njfvuJujAwcyol8/PNzdnF3SOXm4u5EcHeXsMsRZgn19CR46hOyoKF4IC+f6Fcu4+JtNzi5LCCGEEEL0MBLu2qnaYOTV3z5AacYAhqUlN+hLJ0SbaRpxUZEEBQayxt2Nvf3SuXXhmxirq51dmRBCCCGE6CEkkbRDlZsb//fAg5RdMIgL+qVKsBO
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_docker">2. Docker</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Το Docker είναι ένα πρόγραμμα εικονικοποίησης επιπέδου λειτουργικού συστήματος το οποίο αναπτύχθηκε από την Docker Inc.
Docker είναι ένα λογισμικό εικονικοποίησης σε επίπεδο OS και υποστηρίζει λειτουργικό σύστημα Linux και Windows. Για να χρησιμοποιήσετε το Docker σε Linux, πρέπει να χρησιμοποιηθεί το Ubuntu. Πρέπει να διασφαλιστεί η σωστή έκδοση του πυρήνα του Linux πριν την εγκατάσταση του Docker σε λειτουργικό σύστημα Linux. Το Docker διαθέτει επίσης ένα διανομέα Docker Registry ο οποίος διαθέτει μια λίστα υπηρεσιών πριν το χρησιμοποιήσετε.</p>
</div>
<div class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA9gAAANuCAMAAADaZ1ErAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAGdaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjQuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjk4NDwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj44Nzg8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4K0AiHNQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAwBQTFRF4OTnAwMDWnGB///+JENXAAAA/f38////AElxA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C5y8+c3A96tLLODSkhKDF6foj/mN/VbNOnNcAdJTTTd7h4S+zY56tvUr5O6SP00lp6Vltw3Gov3IVYTOZz
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_ssh_tunneling">3. SSH TUNNELING</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Μια σήραγγα Secure Shell (SSH) αποτελείται από μια κρυπτογραφημένη σήραγγα που δημιουργείται μέσω μιας σύνδεσης πρωτοκόλλου SSH. Οι χρήστες μπορούν να ρυθμίσουν σήραγγες SSH για να μεταφέρουν μη κρυπτογραφημένη κίνηση μέσω δικτύου μέσω κρυπτογραφημένου καναλιού. Μπορεί να χρησιμοποιηθεί και για την υλοποίηση VPN δικτύων και για πρόβαση σε υπηρεσίες intranet <em>(εσωτερικών δικτύων)</em> σε τείχη προστασίας. Παρέχει ένα τρόπο για να εξασφαλίσει την κυκλοφορία δεδομένων οποιασδήποτε συγκεκριμένης εφαρμογής,χρησιμοποιώντας τη σήραγγα οποιασδήποτε θύρας TCP/IP μέσω SSH.</p>
</div>
<div class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4QAAAF3CAYAAAD914WlAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAABYlAAAWJQFJUiTwAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgIC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yzzsIZZ5xhE89cfvnlePDBB3HppZfaWEFZokSGTjnlFLOWbdy4ETfddJORoc6dO9tJkjXq3Xfftc+///1vG8v2yiuv4PbbbzeLlcoRWXHWR1nNXHDkTDOHKlx00UUmK2uYs/SJHIlgSVYk07mIOtKkfK6Nsur97Gc/w/3334+bb77ZCJPyfve738Ujjzxi4yjVHsn93//9H4TJxRdfjHPOOccIogiYrJciz7LGaXIYR7JU9nnnnWfEsnfv3pEyVb4Lrh6/+MUv8PWvfx1vv/22kW1h9uMf/9hcbjVpjmZR7dOnj2VTHUTEhZnIntIUJ10/+clPoPP1n//8BypTxFhEUviIrMsqqLZ+61vfwhFHHGFlCWtnOdy4McA
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_vpn">4. VPN</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Το εικονικό ιδιωτικό δίκτυο (VPN) είναι ένας τρόπος με τον οποίο δύο ή περισσότερα εταιρικά δίκτυα μπορούν να συνδεθούν μέσω δημόσιου δικτύου για να σχηματίσουν ένα φαινομενικά ιδιωτικό δίκτυο. Σήμερα, ο ορισμός του VPN έχει επεκταθεί ώστε να περιλαμβάνει μεμονωμένους απομακρυσμένους σταθμούς εργασίας συνδεδεμένους σε εταιρικό δίκτυο. Ένα VPN συνήθως απαιτεί από τους απομακρυσμένους χρήστες του δικτύου πιστοποίηση και συχνά ασφαλίζει τα δεδομένα με τεχνολογίες κρυπτογράφησης για να εμποδιστεί η υποκλοπή και η διάδοση ιδιωτικών πληροφοριών σε χρήστες που δεν είναι συνδεδεμένοι <em>(μη εξουσιοδοτημένοι χρήστες)</em>.</p>
</div>
<div class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAKPCAIAAAB8SS/jAACAAElEQVR42uy9Z5okSZIlpqLuHjQzI3lldnHSfHYGu/iBHzgF7oAz4Aq4BXAc/Flgd3t6prfJdlV1cZI8M4i7mwo+N1UVEVUzj4yMDI9w8t7UVEcFcWJ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NmaA2j9wCQqTI+mXer8D/7yKi93sD6RwodxMjA8CWOCJh30AAAIAAgAA+wc2iPfHSn8+31DtX55rv/4supsDAAANAAAQAADYPwCciVbG6J7W4QO6v2KfXcvSbKAQPj3gIgENAEAAAADYP7A+3DGSfvk3yOPqrgzRJiS+oCgG8FECF3J2YR8AgAAAgKsEun6BC5KR3DQuhNDG0qPkv25KQAYOELnBADlCADQAAEAAACtM2sD+gbfihdnkI74RnExr/7mztA5HGYAJAwA0AABAAAArA9T+gXPftuNQ3hAciv2bLAPi5x45XGwYwJEBzqEBBgMcCQACAAAuj8PhMABvRviYXdNw00R3ODg/UJwe3lPrDoIgBN7sZtQKSBwJAAIAAC6F/cfSCwC8ltvlkn9K8Qe9A06RAeIOQscwAA0AABAAANg/sHqnStOEtt4Piz/wxjIgRj3GjmEcFuD0pSaeLdAAAAQAAID9A1d1J+Zs9YnLFGg/8FZiwFiDcC4Bpy0+eSg1DgYAAQAAYP/AZUFae2H1AS5cBsAaBJxRA2AfAIAAAACwf+AyEOv9Uv4HPwMWJwOcc4MBDQY4y4Ce+1R7euA+BUAAAADYP7CwsyI2+DZNiJFQYGTApYmBOFo
</div>
</div>
<hr>
<div class="sect2">
<h3 id="_δημιουργία_δικτύων_στον_docker_host">4.1. Δημιουργία δικτύων στον docker HOST</h3>
<div class="exampleblock">
<div class="content">
<div class="paragraph">
<p>"create network frist"</p>
</div>
<div class="paragraph">
<p>Για τη δημιουργία δικτύων, μέσα στα Containers του Docker, εκτελούμε τις εξής εντολές στο τερματικό :</p>
</div>
<div class="paragraph">
<p>docker network create --driver=bridge --subnet=<strong>IP_subnet/Prefix</strong> <strong>Network_name</strong></p>
</div>
</div>
</div>
</div>
<div class="sect2">
<h3 id="_δημιουργία_δικτύων_in_docker_container">4.2. Δημιουργία δικτύων in docker container</h3>
<div class="exampleblock">
<div class="content">
<div class="paragraph">
<p>"connect network created to container"</p>
</div>
<div class="paragraph">
<p>Με την παρακάτω εντολή καθορίζουμε σε ποια δίκτυα θα συνδεθούν τα container που θα δημιουργηθούν.</p>
</div>
<div class="paragraph">
<p>Εκτελούμε την εντολή docker container ps για να βρούμε το όνομα του container που θέλουμε να συνδεθούμε. Έπειτα γράφουμε:</p>
</div>
<div class="paragraph">
<p>docker network connect <strong>Network_name</strong> <strong>Container_name</strong></p>
</div>
</div>
</div>
<div class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZkAAADoCAIAAACyzg5JAABCwElEQVR4Aeyd91sTWd/G+Yfy9ro1T+/s0yv7vD1uX7Zvtm/WlrXGFt0WLNFHoygixhYLLbShjEooQQwYIZShDDDAEOa9k4PjMInsOJcPG4fvfd16Hc6Zc5L5IZ/re3qe8vCLRCKRiGUkEolYRiKRSMQyEolEIpaRSKQHKmIZiUQiEctIJBKJWEYikUjEMhKJNCsnW7sHj11uO3opUns9Hh8Uk8l5YtlDJLHc74uI6RTvybN5kNQqHvbZ89IqcEclxaCiQY+N1cp3cQPyPdqR+YB74TGbIxgRlGwKuWx2D3df72JCIu9l705aaUoIk8VX2l7bfuHJ5/f/u6NI6x+/9pcjF1vBOGLZwyCZA0g4SYFEDizzLuKVUA7WOAO8IEQ8+cBQwAjNUAt0cpWgVsznAM78UrZ2gE485i2PCkI86EauIyorWklC1FdoS/HQw93Xu5hQ6t3ziGUrS/Pziq+s5dFVexm5wDKH+/S2I3VbDtf+z9pTTzy3j+X//oPjiNeIZYqcY2FqPOzPZ5FQgZsXRH8BkpCDExlcHB5XASsGeSI+pN0Ce5GoPy/PHjbwc5ciPjRQnn4yFki1UJutnVjIW+gOyqxODJm2xY0LbrRS6PU5bXb3XZbdCeVshc4Cu8OvqXH3Xaq5QL69oLDAjg86GiqyF/jEO1+MpaWIPz/fufCm9tSbivwdlglcoR2xY7msWFyksuooUPXEc/vf9l4MNXRPz85pS6em5TM1XYjXHn92H7hW0dKzclmWnJ+fnUuuLe385baG+/WfdjfxveM3Bib/+4sWc9Xb+ybGJVkP1lgg9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class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzkAAAItCAIAAACVQCN3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAD9aSURBVHhe7dvBijTJee5xXchZHc5VzCWIg/FVzNILgbU9V2DQ0tg7b706WmhjhEErL85qdkZYMBiMNwOfLMEgZPhOduWTVVHRXflUdlVlPBnx//FiZiIzq9+oeqL77R75J18BAACQilkNAAAgF7MaAABALmY1AACAXMxqAAAAuZjVAAAAcjGrAQAA5GJWAwAAyMWsBgAAkItZDQAAIBezGgAAQC5mNQAAgFzMagAAALmY1QAAAHIxqwEAAORiVgMAAMjFrAYAAJCLWQ0AACAXsxoAAEAuZjUAAIBczGoAAAC5mNU+73/+3//9xNKLAgAAFJjV1lTjVMNSQwAAYDDMam+qwehApQ0AAIBODTqrVRNPN6XtAQCAXowyq1UzzSClzQMAgMPqeVarBpenl77Mk1Qv/vTSlwEAAIfS4axWzSiPlF4xQNXYg6UXBQAA8TqZ1apZ5BOlFzqUagufKL0QAABIdexZrZo87i89351qm/eXngcAAGEOOatVc8adpYeHUW3/ztLDAAAgw8FmtWqwsKXHhle9Lbb0GAAAaO0ws1o1TKyUHsAN1du1UnoAAAC0kz6rVdPDSukB3K16A1dKDwAAgN3lzmrVuHCrdDceUL2lt0p3AwCAHSXOatWI8GHpVjxV9SZ/WLoVAADsIm5WqyaD96X78DLVG/6+dB8AAHi9oFmtGgjel+7DXqr3vyrdBAAAXiliVquGgPel+9BC9VlUpZsAAMBrtJ/Vqp/9VekmtFZ9LmXpDgAA8AItZ7XqR35VuglJqs+oLN0BAACeqtmsVv2kL0t3IFL1YZWlOwAAwPO0mdWqn/Hn0mXEqz64c+kyAAB4kgazWvXT/Vy6jIOoPr5z6TIAAHiGXWe16of6uXQZB1R9lOfSZQAA8Jj9ZrXqZ/m5dBmHVX2g59JlAADwgJ1mteqn+Ll0GQdXfazn0mUAA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7oR/0Nugkt6DPYTs8DAE56ntVK1eAySGnzvdNP+Nt0HxrRx7CdngeAsY0yq5Wqgaaz0ibHox/vt+k+NKUPYzs9DwDjGXFWe68adw5U2gAW+sF+m+5DAH0k2+l5ABgDs9pN1VTUvNQW7qAf6bfpPmTQp7KdngeArjGrfVI1SD2l9NJ4Ev08v0E3IYw+nu30PAB0h1kNndNP8ht0EyLpQ9pOzwNAF5jV0D/9AL9N9yGVPqft9DwAHBmzGkahn9636T5k06e1nZ4HgKNhVsNY9HP7Nt2HI9Bntp2eB4AjYFbDiPQT+zbdh4PQx7adngeAYMxqGJd+XN+gm3A0+vy20/MAEIZZDaPTD+obdBOOSZ/idnoeAAIwq0XTzw1+cryY3uXbdB+OTJ/ldnoeABphVsulHxQLreJl9EbfpvtwcPo4t9PzALAvZrVc+vmw0CpeTG/3bboPXdCHup2eB4DXY1bLpZ8JC61iF3rTb9N96Ig+2u30PAC8BrNaLv0cWGgVO9Jbf4NuQnf0AW+n5wHgqZjVcunb/0Kr2J0+gBt0Ezqlj3k7PQ8AD2NWy6Vv+QutogV9BrfpPnRNH/Z2eh4APoVZLZe+zS+0inb0Sdym+9A7fd7b6XkA2IJZLZe+uy+0itb0edym+zAGferb6XkAcJjVcuk7+kKryKBP5Tbdh5Hos99OzwPAR5jVcum7+EKrSKLP5gbdhPEoAdvpeQAoMKvl0jfvhVaRR5/QDboJo1IOttPzAIbHrJZL37AXWkUkfUi36T6MTWnYTs8DGBKzWi59k15oFcH0Ud2m+zA8BWI7PQ9gJMxqufS9eaFVxNMHdpv
</div>
</div>
<div class="sect3">
<h4 id="_για_σύνδεση_στο_ίντερνετ">4.2.1. Για σύνδεση στο ίντερνετ</h4>
<div class="exampleblock">
<div class="content">
<div class="paragraph">
<p>Ωστόσο για την σύνδεση των container με το ίντερνετ, θα πρέπει να ρυθμίσουμε ως Gateway την κατάλληλη ip.
Με την παρακάτω εντολή:</p>
</div>
<div class="paragraph">
<p>ip route add default via <strong>Host_Network_ip</strong> dev <strong>interface</strong></p>
</div>
</div>
</div>
<div class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABkAAAAOECAIAAAB2L2r1AAAAA3NCSVQICAjb4U/gAAAAX3pUWHRSYXcgcHJvZmlsZSB0eXBlIEFQUDEAAAiZ40pPzUstykxWKCjKT8vMSeVSAANjEy4TSxNLo0QDAwMLAwgwNDAwNgSSRkC2OVQo0QAFmJibpQGhuVmymSmIzwUAT7oVaBst2IwAACAASURBVHic7N13nFxlvT/wz/Occ6Zs78mm9x5CGhCKdKRKs4BwEUGvKKLIvYgVUeCnIkUURbyCikjxwkVUuvSEnpCE9LJJNskm2d6mnPY8vz/ObAjJzu7M7myyhM/7lXtfINmdM2fOnN3nM9/v9xFaaxAREREREREREQ1W8kAfABERERERERERUU8YYBERERERERER0aDGAIuIiIiIiIiIiAY1BlhERERERERERDSoMcAiIiIiIiIiIqJBjQEWERERERERERENagywiIiIiIiIiIhoUGOARUREREREREREgxoDLCIiIiIiIiIiGtQYYBERERERERER0aDGAIuIiIiIiIiIiAY1BlhERERERERERDSoMcAiIiIiIiIiIqJBjQEWERERERERERENagywiIiIiIiIiIhoUGOARUREREREREREgxoDLCIiIiIiIiIiGtQYYBERERERERER0aDGAIuIiIiIiIiIiAY1BlhERERERERERDSoMcAiIiIiIiIiIqJBjQEWERERERERERENagywiIiIiIiIiIhoUGOARUREREREREREgxoDLCIiIiIiIiIiGtQYYBERERERERER0aDGAIuIiIiIiIiIiAY1BlhERERERERERDSoMcAiIiIiIiIiIqJBjQEWERERERERERENagywiIiIiIiIiIhoUGOARUREREREREREgxoDLCIiIiIiIiIiGtQYYBERERERERER0aDGAIuIiIiIiIiIiAY1BlhERERERERERDSoMcAiIiIiIiIiIqJBjQEWERERERERERENagywiIiIiIiIiIhoUGOARUREREREREREgxoDLCIiIiIiIiIiGtQYYBERERERERER0aDGAIuIiIiIiIiIiAY1BlhERERERERERDSoMcAiIiIiIiIiIqJBjQEWERERER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2oIS4TDYmix8YkqKy/XycOaDrW4wUvYSmsNQAgRDcvZFeaUIvnRDTlc4K0Gb2Obn0wo7Wh0XctCCjMiSvLlJ4dZBUYua5CWtPmrm7x4UvvOHq8dIEMiEpVTyozDDtxmf2tavUcbfQDQuKHSOGn44J3b/n6Hv6LJT9jKtZV28cELZ4r8fDmtwpxT3Mc3r9l1NVs5ffevbPPfa/LicaXsDy4zCJgRWRiVsyvMSQUf3bdRRrq/5QoYIVGQZxw51BodHbSX24c8t8vd3uY7Ca39PWqQJcywLMqTh1WaY3J+8yUiIiKijyUGWP01qtQ4oUC+2KYgcGer/5lWr2pI1iNyHtzuLNzqbWr3n7EVFKCAvZoRJSAxxBAn5on5w0OXTQgX5WhFkNT431pn0TZ3Ubu/wtVBEvehRxepRz/MEvNKjCOHWWcNs4py2kbla3x3aWJno2cIOEqXFBo/mptXFcroIRTwveXJ9Y3uS3Hd4utuDz7fEGcW2XOqzW9PjGR+VDFPX7047rQrAJEy4565ebv/U6OHn7yfWFzvvW7vkbkIQOOasaGbZkSiH454vrI4nmz2AYSK5C/n5uWnOXuPrEw8XudGZc7ObdzX51RbF86MZvKXNfDL9fbiHe6bHWqjr+F3fxmct84eV2X+IrPv2bNX6r2Ha+w3mv1lXtcLt+cjSkBiuiU+UWpcOTUyva/5S390dqilnQoSEBhTYeYNvu7BDl/fv8VZuctb3Oa/7epu7h4CMHCIKU6
</div>
</div>
</div>
</div>
<div class="sect2">
<h3 id="_ζητηματα">4.3. ΖΗΤΗΜΑΤΑ</h3>
<div class="sect3">
<h4 id="_allow_internet_connection">4.3.1. Allow Internet connection</h4>
</div>
<div class="sect3">
<h4 id="_allow_only_connection_from_network_a_b_b_a_port_80">4.3.2. Allow only connection from Network A &#8594; B, B &#8594; A port 80</h4>
<div class="paragraph">
<p>Eπικοινωνία Δικτύων Α &#8594; Β, Β &#8594; Α</p>
</div>
<div class="paragraph">
<p>Γι’ αυτή την επικοινωνία των δικτύων, θα χρειαστεί να ρυθμίσουμε το Shorewall.</p>
</div>
<div class="paragraph">
<p>Με την βοήθεια, της εντολής <strong>nano</strong>, ανοίγουμε τα αρχεία: interfaces, zones, policy, masq, rules</p>
</div>
<div class="ulist">
<ul>
<li>
<p><strong>nano /etc/shorewall/interfaces</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Προσθέτουμε το δίκτυο και την διεπαφή του.</p>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 25%;">
<col style="width: 25%;">
<col style="width: 25%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">ZONE</th>
<th class="tableblock halign-left valign-top">INTERFACE</th>
<th class="tableblock halign-left valign-top">BROADCAST</th>
<th class="tableblock halign-left valign-top">OPTIONS</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">net</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">eth0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">detect</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">tcpflags,nosmurfs</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_for_A</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ethA</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">detect</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">tcpflags,nosmurfs</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_for_B</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ethB</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">detect</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">tcpflags,nosmurfs</p></td>
</tr>
</tbody>
</table>
<div class="ulist">
<ul>
<li>
<p><strong>nano /etc/shorewall/zones</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Προσθέτουμε το δίκτυο και τον τύπο του.</p>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">ZONE</th>
<th class="tableblock halign-left valign-top">TYPE</th>
<th class="tableblock halign-left valign-top">OPTIONS</th>
<th class="tableblock halign-left valign-top">IN Options</th>
<th class="tableblock halign-left valign-top">OUT Options</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">fw</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">firewall</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">net</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ipv4</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_A</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ipv4</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_B</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ipv4</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
</tbody>
</table>
<div class="ulist">
<ul>
<li>
<p><strong>nano /etc/shorewall/policy</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Προσθέτουμε τις επιτρεπόμενες κινήσεις από μέσα προς τα έξω και ανάποδα.</p>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">SOURCE</th>
<th class="tableblock halign-left valign-top">DEST</th>
<th class="tableblock halign-left valign-top">POLICY</th>
<th class="tableblock halign-left valign-top">LOG LEVEL</th>
<th class="tableblock halign-left valign-top">LIMIT:BURST</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">net</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">fw</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">fw</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">net</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_A</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">net</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">fw</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_A</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">net</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_A</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_A</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">fw</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_A</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_B</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_B</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Network_name_A</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">net</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">all</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">DROP</p></td>
<td class="tableblock halign-left valign-top"></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">all</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">all</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">REJECT</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">info</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
</tbody>
</table>
<div class="ulist">
<ul>
<li>
<p><strong>nano /etc/shorewall/masq</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Γράφουμε τα ονόματα των διεπαφών.</p>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">INTERFACE</th>
<th class="tableblock halign-left valign-top">SOURCE</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">eth0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ethA</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">eth0</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ethB</p></td>
</tr>
</tbody>
</table>
<div class="ulist">
<ul>
<li>
<p><strong>nano /etc/shorewall/rules</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Προσθέτουμε την πόρτα και το πρωτόκολλο που θα χρησιμοποιήσει η επιτρεπόμενη κίνηση.</p>
</div>
<div class="paragraph">
<p>(Προσθέτουμε τις ανάλογες γραμμές έτσι ώστε τα δίκτυα, να έχουν επικοινωνία στην πόρτα 80.)</p>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 20%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">ACTION</th>
<th class="tableblock halign-left valign-top">SOURCE</th>
<th class="tableblock halign-left valign-top">DEST</th>
<th class="tableblock halign-left valign-top">PROTO</th>
<th class="tableblock halign-left valign-top">DEST PORT</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Network_name_A</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Network_name_B</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">tcp</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">80</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">ACCEPT</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Network_name_B</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Network_name_A</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">tcp</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">80</p></td>
</tr>
</tbody>
</table>
<div class="paragraph">
<p><strong><em>Κάνουμε restart το shorewall και έπειτα κάνουμε ping στον worker και βλέπουμε ότι τρέχει.</em></strong></p>
</div>
</div>
<div class="sect3">
<h4 id="_open_ssh_tunnel_from_network_aport_80_masterport_8080_and_connect_from_host_master_port_9000">4.3.3. Open SSH Tunnel from NETWORK-A(port 80) &#8594; MASTER(port 8080) and connect from HOST &#8594; MASTER port 9000</h4>
<div class="exampleblock">
<div class="content">
<div class="paragraph">
<p>Για να υλοποιήσουμε την παραπάνω σηράγγωση, πρέπει πρώτα να εγκαθιδρύσουμε μία σηράγγωση SSH <em>(local port forwarding)</em> μεταξύ:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>του υπολογιστή μας <em>(HOST)</em> και του master</p>
</li>
<li>
<p>του master και του worker.</p>
</li>
</ul>
</div>
<div class="paragraph">
<p><strong>ssh -t -L 9000:localhost:8080 &lt;user&gt;@&lt;Master_IP_Address&gt; ssh -L 8080:localhost:80 &lt;user&gt;@&lt;Worker_IP_Address&gt;</strong></p>
</div>
</div>
</div>
<div class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABGwAAAK2CAYAAAAbhQovAAAMF2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSCAktEAEpoXekSJfepUoHGyEJEEqAhKBiRxYVXLtYwIaugii4FkAWFbEri2DD/kBEZWVdLNhQeZMCur72vfN9c+fPmXPO/GfuuZMZABRtWLm5WagSANn8fEFUoA8zITGJSeoBckAH0AABGLDYwlzvyMhQAGWs/7u8uw0QcX/DShzrX8f/qyhzuEI2AEgkxCkcITsb4mMA4OrsXEE+AIR2qDeYk58rxkMQqwogQQCIuBinSbG6GKdIsaXEJibKF2IvAMhUFkuQBoCCmDezgJ0G4yiIOdrwOTw+xJUQe7DTWRyIH0BsmZ2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NZ8/Dfr3/a36LVUnFQ7ueYU5VTxqdHThaeHW3NbB8+knelrm912/2zC2Zvnpp3rOB9y/tKFgAtnL3pfPH3J/VLLZdfLJ644X2m86ni1od2h/fjvDr8f73DsaLjmdK2p06WzuWtK16nrntfP3PC7ceFm8M2rt8Jvdd2OvX2ne0Z3zx3Oned3s+6+uldwb+T+kgeEB6UPlR6WP9J6VPUPs3/U9zj2nOz1621/HP34fh+778UT4ZPP/cVPaU/Ln+k+q3lu97xlIGCg84/pf/S/yH0xMljyp/KflS9NXx77y+uv9qGEof5Xglejr1e90Xiz/+3kt23DkcOP3mW/G3lf+kHjQ/VH548XP8V/ejYy5zPp85YvZl+av4Z8fTCaPTqayxKwJEcBDDY0NRWA1/sBoCXCs0MnABQF6d1LIoj0vihB4D9h6f1MIvD
</div>
</div>
</div>
<div class="sect3">
<h4 id="_create_vpn">4.3.4. Create VPN</h4>
<div class="imageblock">
<div class="content">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwwAAAGWCAIAAABaf5MgAACAAElEQVR42uydB1gUx/vHZ8v1Ozh6770KIgoqoohiF2vU2DVqLIkttqixGxONiSbGWGJvYFewIIoNVAQVEQsIKlXK0a7flv/DrV74Y/kZRQM4n4fk8fb29m7fmZ35zjsz74tLJBIAgUAgEAgEAvn/4AAAAwMDaAgIBAKBQCAQHeXl5Si0AgQCgUAgEMirQJEEgUAgEAgEAkUSBAKBQCAQCBRJEAgEAoFAIFAkQSAQCAQCgUCRBIFAIBAIBAJFEgQCgUAgEAgUSRAIBAKBQCBQJEEgEAgEAoFAkQSBQCAQCAQCRRIEAoFAIBAIFEkQCAQCgUAgUCRBIBAIBAKBQJEEgUAgEAgEAkUSBAKBQCAQCASKJAgEAoFAIBAokiAQCAQCgUCgSIJAIBAIBAKBIgkCgUAgEAgEiiQIBAKBQCAQKJIgEAgEAoFAoEiCQCAQCAQCgSIJAoFAIBAIpKGDQxNAPgdoms7JzYuJS0hMvvXg8ePKqiqKorlsNo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L59e319/UWLFt29ezc4OFh3PDs7WyqVWllZGRn9E06iqqpKT0+vZsSfl6dSqWxsbNhsNgDg+fPnZWVl5ubmhoaGtb+RJElm8svCwkJ3HalUWlJSIhaLnz596uDgwFwBAFBYWFhcXCwWi+3s7F798Vwud86cOZMmTTp79qxOnQMAioqKTp8+HaqFuUcMw0aNGsX8ToYOHToEBQX99ddfHTt25GgBAKSkpPyoRWccoVAIXaH/CQ+elPweFR+XkdfGz3Fp91aBLlYvpVE
</div>
</div>
<div class="paragraph">
<p><em>Δημιουργούμε ένα VPN από την πλευρά του worker και φτιάχνουμε ένα χρήστη με τον οποίο θα συνδεθεί ο host στο VPN.</em></p>
</div>
<div class="exampleblock">
<div class="content">
<div class="ulist">
<ul>
<li>
<p><strong>create network</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>docker network create --attachable=true --driver=bridge --subnet=<strong>Network_IP_Address/CIDR</strong> --gateway=<strong>Gateway_IP_Address</strong> <strong>docker_Network_name</strong></p>
</div>
</div>
</div>
<div class="exampleblock">
<div class="content">
<div class="ulist">
<ul>
<li>
<p><strong>run container</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Δημιουργούμε ένα φάκελο τον οποίο θα χρησιμοποιήσουμε για το VPN.</p>
</div>
<div class="paragraph">
<p>docker run --net=none -it -v <strong>Destination_file</strong>:/etc/openvpn --rm <strong>ovpn_name</strong> ovpn_genconfig -u udp://<strong>IP_Address_HOST:Port</strong> \-N -d -c -p "route <strong>container &lt;Network_IP&gt;&lt;Network_mask&gt;</strong>" -e "topology subnet" -s <strong>Network_VPN_IP_Address/CIDR <em>(οι διευθύνσεις που παρέχονται από το VPN)</em></strong></p>
</div>
</div>
</div>
<div class="exampleblock">
<div class="content">
<div class="ulist">
<ul>
<li>
<p><strong>create pki</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Δημιουργία κλειδιού για σύνδεση χρήστη.</p>
</div>
<div class="paragraph">
<p>docker run --net=none -v <strong>Destination_file</strong>:/etc/openvpn --rm -it <strong>ovpn_name</strong> ovpn_initpki</p>
</div>
</div>
</div>
<div class="exampleblock">
<div class="content">
<div class="ulist">
<ul>
<li>
<p><strong>create vpn</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Δημιουργία εικονικού ιδιωτικού δικτύου.</p>
</div>
<div class="paragraph">
<p>docker run --detach --name <strong>name_VPNSERVER</strong> -v <strong>Destination_file</strong>:/etc/openvpn --net=<strong>docker_Network_name</strong> --ip=<strong>IP_container_VPNSERVER</strong> -p <strong>PORT_VPN_(physical_port)_</strong>:*&lt;virtual_port&gt;*/udp --cap-add=NET_ADMIN <strong>ovpn_name</strong></p>
</div>
</div>
</div>
<div class="exampleblock">
<div class="content">
<div class="ulist">
<ul>
<li>
<p><strong>create user</strong></p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Δημιουργία χρήστη.</p>
</div>
<div class="paragraph">
<p>docker run -v <strong>Destination_file</strong>:/etc/openvpn --rm -it <strong>ovpn_name</strong> easyrsa build-client-full <strong>client_name_VPN</strong> nopass</p>
</div>
</div>
</div>
<div class="exampleblock">
<div class="content">
<div class="ulist">
<ul>
<li>
<p>Αποστολή ρυθμίσεων χρήστη σε αρχείο.</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>docker run -v <strong>Destination_file</strong>:/etc/openvpn --log-driver=none --rm <strong>ovpn_name</strong> ovpn getclient <strong>&lt;client_name_VPN&gt;&lt;path/filename.ovpn&gt;</strong></p>
</div>
</div>
</div>
<div class="paragraph">
<p><em>NOTE: Για την αποστολή του αρχείου από τον host στον χρήστη VPN, για να μπορεί να συνδεθεί, ο χρήστης θα πρέπει να εκτελέσει την εντολή <strong>openvpn –config _filename.ovpn</em></strong> .</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2020-01-21 19:38:04 +0200
</div>
</div>
</body>
</html>