<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="cs">
		<id>https://wiki.freenetis.org/index.php?action=history&amp;feed=atom&amp;title=Freenetis_synchronization.sh</id>
		<title>Freenetis synchronization.sh - Historie editací</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.freenetis.org/index.php?action=history&amp;feed=atom&amp;title=Freenetis_synchronization.sh"/>
		<link rel="alternate" type="text/html" href="https://wiki.freenetis.org/index.php?title=Freenetis_synchronization.sh&amp;action=history"/>
		<updated>2026-06-04T18:56:31Z</updated>
		<subtitle>Historie editací této stránky</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.freenetis.org/index.php?title=Freenetis_synchronization.sh&amp;diff=1338&amp;oldid=prev</id>
		<title>Jeffraska v 2. 8. 2012, 09:48</title>
		<link rel="alternate" type="text/html" href="https://wiki.freenetis.org/index.php?title=Freenetis_synchronization.sh&amp;diff=1338&amp;oldid=prev"/>
				<updated>2012-08-02T09:48:55Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;cs&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Starší verze&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Verze z 2. 8. 2012, 09:48&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Řádek 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Řádek 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ##################################################################################&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; ##################################################################################&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; #&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; #&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; # This script serves for redirection ip policy of IS &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;FreeNetIS	&lt;/del&gt;		 #&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; # This script serves for redirection ip policy of IS &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;FreenetIS	&lt;/ins&gt;		 #&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; #&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; #&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; #&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; # auhtor Sevcik Roman 2011&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  #&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; # auhtor Sevcik Roman 2011&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  #&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jeffraska</name></author>	</entry>

	<entry>
		<id>https://wiki.freenetis.org/index.php?title=Freenetis_synchronization.sh&amp;diff=547&amp;oldid=prev</id>
		<title>Sevcik.roman: Založena nová stránka:  #!/bin/bash  ##################################################################################  #                                                                         ...</title>
		<link rel="alternate" type="text/html" href="https://wiki.freenetis.org/index.php?title=Freenetis_synchronization.sh&amp;diff=547&amp;oldid=prev"/>
				<updated>2011-03-20T01:56:29Z</updated>
		
		<summary type="html">&lt;p&gt;Založena nová stránka:  #!/bin/bash  ##################################################################################  #                                                                         ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nová stránka&lt;/b&gt;&lt;/p&gt;&lt;div&gt; #!/bin/bash&lt;br /&gt;
 ##################################################################################&lt;br /&gt;
 #                                                                                #&lt;br /&gt;
 # This script serves for redirection ip policy of IS FreeNetIS			 #&lt;br /&gt;
 #                                                                                #&lt;br /&gt;
 # auhtor Sevcik Roman 2011                                                       #&lt;br /&gt;
 # email sevcik.roman@slfree.net                                                  #&lt;br /&gt;
 #										 #&lt;br /&gt;
 # name frnts_synchronization.sh							 #&lt;br /&gt;
 # version 1.9									 #&lt;br /&gt;
 #                                                                                #&lt;br /&gt;
 ##################################################################################&lt;br /&gt;
 &lt;br /&gt;
 #Load variables from config file&lt;br /&gt;
 CONFIG=/etc/freenetis.cfg&lt;br /&gt;
 &lt;br /&gt;
 #Paths where temporary data will be saved.&lt;br /&gt;
 PATH_RANGES=/tmp/ranges&lt;br /&gt;
 PATH_WHITELIST=/tmp/whitelist&lt;br /&gt;
 PATH_ALLOWED=/tmp/allowed&lt;br /&gt;
 PATH_SELF_CANCEL=/tmp/self_cancel&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #Load variables&lt;br /&gt;
 if [ -f ${CONFIG} ]; then&lt;br /&gt;
   . $CONFIG;&lt;br /&gt;
 else&lt;br /&gt;
   echo &amp;quot;No config file - giving up :-(&amp;quot;;&lt;br /&gt;
   exit 0&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # Function returns 1 if is ip valid&lt;br /&gt;
 # @param ip adresa&lt;br /&gt;
 # return 1 if is ip valid&lt;br /&gt;
 valid_ip ()&lt;br /&gt;
 {&lt;br /&gt;
     local  ip=$1&lt;br /&gt;
     local  stat=1&lt;br /&gt;
 &lt;br /&gt;
     if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then&lt;br /&gt;
       OIFS=$IFS&lt;br /&gt;
       IFS='.'&lt;br /&gt;
       ip=($ip)&lt;br /&gt;
       IFS=$OIFS&lt;br /&gt;
       [[ ${ip[0]} -le 255 &amp;amp;&amp;amp; ${ip[1]} -le 255 &amp;amp;&amp;amp; ${ip[2]} -le 255 &amp;amp;&amp;amp; ${ip[3]} -le 255 ]]&lt;br /&gt;
       stat=$?&lt;br /&gt;
     fi;&lt;br /&gt;
     return $stat&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 update ()&lt;br /&gt;
 {&lt;br /&gt;
     echo &amp;quot;Updating...&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
     #Erase content of all sets&lt;br /&gt;
     echo &amp;quot;Cleaning sets...&amp;quot;;&lt;br /&gt;
     ipset -F whitelist&lt;br /&gt;
     ipset -F allowed&lt;br /&gt;
     ipset -F self_cancel&lt;br /&gt;
     ipset -F ranges&lt;br /&gt;
 &lt;br /&gt;
     #Send data from seen set to server&lt;br /&gt;
 &lt;br /&gt;
     oount=0&lt;br /&gt;
     for i in $(ipset -L seen);&lt;br /&gt;
     do&lt;br /&gt;
       if valid_ip $i; then&lt;br /&gt;
         seen[count]=$i&lt;br /&gt;
         ((count++))&lt;br /&gt;
       fi&lt;br /&gt;
     done&lt;br /&gt;
 &lt;br /&gt;
     OIFS=$IFS&lt;br /&gt;
     export IFS=&amp;quot;;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
     echo &amp;quot;Sending seen set data...&amp;quot;;&lt;br /&gt;
     wget -q -O /tmp/out.txt             $SET_URL_SEEN --no-check-certificate --post-data &amp;quot;seen=${seen[*]}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
     IFS=$OIFS&lt;br /&gt;
 &lt;br /&gt;
     unset seen&lt;br /&gt;
 &lt;br /&gt;
     echo &amp;quot;Downloading data...&amp;quot;;&lt;br /&gt;
     wget -q -O $PATH_WHITELIST          $SET_URL_WHITELIST --no-check-certificate&lt;br /&gt;
     wget -q -O $PATH_ALLOWED            $SET_URL_ALLOWED --no-check-certificate&lt;br /&gt;
     wget -q -O $PATH_SELF_CANCEL        $SET_URL_SELF_CANCEL --no-check-certificate&lt;br /&gt;
     wget -q -O $PATH_RANGES             $SET_URL_RANGES --no-check-certificate&lt;br /&gt;
 &lt;br /&gt;
     echo &amp;quot;Downloading data...&amp;quot;;&lt;br /&gt;
     wget -q -O $PATH_WHITELIST          $SET_URL_WHITELIST --no-check-certificate&lt;br /&gt;
     wget -q -O $PATH_ALLOWED            $SET_URL_ALLOWED --no-check-certificate&lt;br /&gt;
     wget -q -O $PATH_SELF_CANCEL        $SET_URL_SELF_CANCEL --no-check-certificate&lt;br /&gt;
     wget -q -O $PATH_RANGES             $SET_URL_RANGES --no-check-certificate&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
     #Filling sets&lt;br /&gt;
 &lt;br /&gt;
    for i in $(cat $PATH_WHITELIST);&lt;br /&gt;
     do&lt;br /&gt;
         echo &amp;quot;$i - added to set whitelist&amp;quot;&lt;br /&gt;
         ipset -A whitelist $i&lt;br /&gt;
     done&lt;br /&gt;
 &lt;br /&gt;
     for i in $(cat $PATH_ALLOWED);&lt;br /&gt;
     do&lt;br /&gt;
         echo &amp;quot;$i - added to set allowed&amp;quot;&lt;br /&gt;
         ipset -A allowed $i&lt;br /&gt;
     done&lt;br /&gt;
 &lt;br /&gt;
     for i in $(cat $PATH_SELF_CANCEL);&lt;br /&gt;
     do&lt;br /&gt;
         echo &amp;quot;$i - added to set self_cancel&amp;quot;&lt;br /&gt;
         ipset -A self_cancel $i&lt;br /&gt;
     done&lt;br /&gt;
 &lt;br /&gt;
     for i in $(cat $PATH_RANGES);&lt;br /&gt;
     do&lt;br /&gt;
         echo &amp;quot;$i - added to set ranges&amp;quot;&lt;br /&gt;
         ipset -A ranges $i&lt;br /&gt;
     done&lt;br /&gt;
 &lt;br /&gt;
     #Erase content of seen set&lt;br /&gt;
     echo &amp;quot;Cleaning seen set...&amp;quot;;&lt;br /&gt;
     ipset -F seen&lt;br /&gt;
 &lt;br /&gt;
     #Cleaning up...&lt;br /&gt;
     rm $PATH_RANGES&lt;br /&gt;
     rm $PATH_WHITELIST&lt;br /&gt;
     rm $PATH_ALLOWED&lt;br /&gt;
     rm $PATH_SELF_CANCEL&lt;br /&gt;
 &lt;br /&gt;
     echo &amp;quot;Sleeping...&amp;quot;&lt;br /&gt;
     sleep $DELAY;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 while (true);&lt;br /&gt;
 do&lt;br /&gt;
     update&lt;br /&gt;
 done&lt;/div&gt;</summary>
		<author><name>Sevcik.roman</name></author>	</entry>

	</feed>