From c191e2720fc774d713a6bf3312d45bff66e984c4 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Mon, 23 May 2016 15:02:06 +0200 Subject: [PATCH] [script] improve openport.sh --- scripts/openport.sh | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/scripts/openport.sh b/scripts/openport.sh index 07a6298..fb2240a 100755 --- a/scripts/openport.sh +++ b/scripts/openport.sh @@ -1,41 +1,50 @@ +bin=/home/mathieu/config/scripts/openPortUpnp #http -/home/mathieu/bin/openPortUpnp 80 TCP +${bin} 80 TCP sleep 2 #ssh -/home/mathieu/bin/openPortUpnp 22 TCP +${bin} 22 TCP sleep 2 #https -/home/mathieu/bin/openPortUpnp 443 TCP -sleep 2 - -#pop3-ssl -/home/mathieu/bin/openPortUpnp 995 TCP +${bin} 443 TCP sleep 2 #smtp -/home/mathieu/bin/openPortUpnp 25 TCP +${bin} 587 TCP +sleep 2 + +#pop3-ssl +${bin} 995 TCP +sleep 2 + +#smtp +${bin} 25 TCP sleep 2 #smtp ssl -/home/mathieu/bin/openPortUpnp 465 TCP +${bin} 465 TCP sleep 2 #imap-ssl -/home/mathieu/bin/openPortUpnp 993 TCP +${bin} 993 TCP +sleep 2 + +#imap TLS +${bin} 143 TCP sleep 2 #subsonic -/home/mathieu/bin/openPortUpnp 4040 TCP +${bin} 4040 TCP sleep 2 #Git -/home/mathieu/bin/openPortUpnp 9418 TCP +${bin} 9418 TCP sleep 2 #rTorrent -/home/mathieu/bin/openPortUpnp 49164 TCP +${bin} 49164 TCP sleep 2 -/home/mathieu/bin/openPortUpnp 49164 UDP +${bin} 49164 UDP sleep 2