Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1764

Přidáno uživatelem Ondřej Fibich před asi 12 roky(ů)

Vydani:

- freenetis-redirection 1.9.2 - oprava #399

Zobrazit rozdíly:

freenetis/branches/testing/application/vendors/redirection/freenetis-http-302-redirection.py
#
# Script for redirecting with HTTP 302 code for FreenetIS redirection
#
# version: 0.1.1
# version: 0.1.2
# author: Ondrej Fibich <ondrej.fibich@gmail.com>
#
################################################################################
freenetis/branches/testing/application/vendors/redirection/freenetis-redirection.init.sh
# Email sevcik.roman@slfree.net #
# #
# Name freenetis-redirection.init.sh #
# Version 1.9.1 #
# Version 1.9.2 #
# #
################################################################################
......
$IPTABLES -i $INPUT_INTERFACE -t nat -A PREROUTING -m set --set ranges src -p tcp --dport $PORT_WEB -j REDIRECT --to-port $PORT_REDIRECT
#If IP is allowed then it is not redirected
$IPTABLES -i $INPUT_INTERFACE -I FORWARD 2 -m set --set allowed src -j ACCEPT
$IPTABLES -i $INPUT_INTERFACE -I FORWARD 1 -m set --set allowed src -j ACCEPT
#Else everything drop
$IPTABLES -i $INPUT_INTERFACE -I FORWARD 3 -m set --set ranges src -j DROP
$IPTABLES -i $INPUT_INTERFACE -I FORWARD 2 -m set --set ranges src -j DROP
#Run update script on background
nohup $REDIRECTION_SYNCFILE >> "$LOG_FILE" 2>&1 &
freenetis/branches/testing/application/vendors/redirection/freenetis-redirection-sync.sh
# email sevcik.roman@slfree.net #
# #
# name freenetis-redirection-sync.sh #
# version 1.9.1 #
# version 1.9.2 #
# #
################################################################################
freenetis/branches/testing/application/vendors/deb/freenetis-redirection/changelog
freenetis-redirection (1.9.1) stable; urgency=hight
* Fixes starting of HTTP redirector
-- Ondrej Fibich <ondrej.fibich@gmail.com> Mon, 13 Aug 2012 12:58:52 +0200
freenetis-redirection (1.9.2) stable; urgency=hight
* Fixes wrong initialization ipset rules (#399)
* Fixes printing of error message if socket cannot be open in HTTP redirector (#399)
-- Ondrej Fibich <ondrej.fibich@gmail.com> Tue, 23 Oct 2012 10:32:03 +0200

Také k dispozici: Unified diff