Freenetis.cfg: Porovnání verzí

Z Freenetis Wiki
Přejít na: navigace, hledání
(Založena nová stránka: #! /bin/bash ################################################################################## # ...)
 
 
(Nejsou zobrazeny 2 mezilehlé verze od jednoho dalšího uživatele.)
Řádek 2: Řádek 2:
 
  ##################################################################################
 
  ##################################################################################
 
  #                                                                                #
 
  #                                                                                #
  # This script serves for redirection ip policy of IS FreeNetIS                   #
+
  # This script serves for redirection ip policy of IS FreenetIS                   #
 
  #                                                                                #
 
  #                                                                                #
 
  # auhtor Sevcik Roman 2011                                                      #
 
  # auhtor Sevcik Roman 2011                                                      #
Řádek 14: Řádek 14:
 
   
 
   
 
  #Local variable contains ip address useful for self-canceling. More infos in doc
 
  #Local variable contains ip address useful for self-canceling. More infos in doc
  IP_TARGET=212.111.30.119
+
  IP_TARGET=192.168.1.1
 
   
 
   
 
  #Local variable contains port number to be redirect from - mandatory
 
  #Local variable contains port number to be redirect from - mandatory
Řádek 27: Řádek 27:
 
  #Input interface on which will be rules aplicated
 
  #Input interface on which will be rules aplicated
 
  INPUT_INTERFACE=eth0
 
  INPUT_INTERFACE=eth0
 
+
 
  #URL of pages which we need to dowload from freenetis.
 
  #URL of pages which we need to dowload from freenetis.
 
  #SET_URL_RANGES        - contains list of CIDR networks (e.g. 192.160.0/23) which we can regirect
 
  #SET_URL_RANGES        - contains list of CIDR networks (e.g. 192.160.0/23) which we can regirect

Aktuální verze z 2. 8. 2012, 09:48

#! /bin/bash
##################################################################################
#                                                                                #
# This script serves for redirection ip policy of IS FreenetIS                   #
#                                                                                #
# auhtor Sevcik Roman 2011                                                       #
# email sevcik.roman@slfree.net                                                  #
#                                                                                #
# name freenetis.cfg                                                             #
# version 1.9                                                                    #
#                                                                                #
################################################################################## 


#Local variable contains ip address useful for self-canceling. More infos in doc
IP_TARGET=192.168.1.1

#Local variable contains port number to be redirect from - mandatory
PORT_WEB=80

#Local variable contains port number to be redirect to - mandatory
PORT_REDIRECT=36000

#Delay in seconds between next update cycle
DELAY=10

#Input interface on which will be rules aplicated
INPUT_INTERFACE=eth0

#URL of pages which we need to dowload from freenetis.
#SET_URL_RANGES         - contains list of CIDR networks (e.g. 192.160.0/23) which we can regirect
#SET_URL_WHITELIST      - contains list of "whitelisted" IP addresses of members will not be redirect. Never
#SET_URL_ALLOWED        - contains list of IP allowed adresses will not be redirect
#SET_URL_SELF_CANCEL    - contains list of IP adresses which can disable redirection itself
#SET_URL_SEEN           - ulpoads list of IP adresses which have already disabled redirection itsef

SET_URL_RANGES=http://<hostname>/cs/web_interface/redirected_ranges
SET_URL_WHITELIST=http://<hostname>/cs/web_interface/whitelist
SET_URL_ALLOWED=http://<hostname>/cs/web_interface/allowed_ip_addresses
SET_URL_SELF_CANCEL=http://<hostname>/cs/web_interface/self_cancelable_ip_addresses
SET_URL_SEEN=http://<hostname>/cs/web_interface/already_seen