<commit_before>#!/bin/bash

DIR="$( cd "$( dirname "$0" )" && pwd )"

# setup iptables chain
FW_SS_CHAIN="${NAME}"

sudo iptables -w -t nat -F $FW_SS_CHAIN
sudo iptables -w -t nat -X $FW_SS_CHAIN
sudo iptables -w -t nat -N $FW_SS_CHAIN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d $FW_SS_SERVER -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 0.0.0.0/8 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 10.0.0.0/8 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 127.0.0.0/8 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 169.254.0.0/16 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 172.16.0.0/12 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 192.168.0.0/16 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 192.168.127.12/4 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 240.0.0.0/4 -j RETURN
<commit_msg>ignore publicip in ss2<commit_after>#!/bin/bash

DIR="$( cd "$( dirname "$0" )" && pwd )"

# setup iptables chain
FW_SS_CHAIN="${NAME}"

sudo iptables -w -t nat -F $FW_SS_CHAIN
sudo iptables -w -t nat -X $FW_SS_CHAIN
sudo iptables -w -t nat -N $FW_SS_CHAIN

PUBLIC_IP=$(redis-cli hget sys:network:info publicIp)
test -n "$PUBLIC_IP" && sudo iptables -w -t nat -A $FW_SS_CHAIN -d $PUBLIC_IP -j RETURN

sudo iptables -w -t nat -A $FW_SS_CHAIN -d $FW_SS_SERVER -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 0.0.0.0/8 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 10.0.0.0/8 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 127.0.0.0/8 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 169.254.0.0/16 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 172.16.0.0/12 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 192.168.0.0/16 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 192.168.127.12/4 -j RETURN
sudo iptables -w -t nat -A $FW_SS_CHAIN -d 240.0.0.0/4 -j RETURN

{'fraction_non_alphanumeric': 0.15084102007596312, 'fraction_numerical': 0.07325013564839934, 'mean_word_length': 2.809917355371901, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 16, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2466732', 'n_tokens_mistral': 994, 'n_tokens_neox': 885, 'n_words': 281}