Freenetis.cfg

Z Freenetis Wiki
Přejít na: navigace, hledání
#! /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