<commit_before>#!/usr/bin/env bash

set -e

echo '00:34:45:de:ca:de' > ethernet/external_mac.static
echo '10.0.0.3' > ipv4/external_ip.static
echo '10.0.0.2' > ipv4/external_gateway.static

IFACE=wlan1

sudo sysctl net.ipv4.ip_forward=1
sudo iptables -t nat -A PREROUTING -p tcp -d `/sbin/ifconfig ${IFACE} | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` --dport 80 -j DNAT --to 10.0.0.3:80
sudo iptables -t nat -A POSTROUTING -j MASQUERADE<commit_msg>moved to port 23280 instead of 80 to prevent conflicts<commit_after>#!/usr/bin/env bash

set -e

echo '00:34:45:de:ca:de' > ethernet/external_mac.static
echo '10.0.0.3' > ipv4/external_ip.static
echo '10.0.0.2' > ipv4/external_gateway.static

IFACE=wlan1

sudo sysctl net.ipv4.ip_forward=1
sudo iptables -t nat -A PREROUTING -p tcp -d `/sbin/ifconfig ${IFACE} | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` --dport 23280 -j DNAT --to 10.0.0.3:80
sudo iptables -t nat -A POSTROUTING -j MASQUERADE
{'fraction_non_alphanumeric': 0.158004158004158, 'fraction_numerical': 0.07692307692307693, 'mean_word_length': 3.674757281553398, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '1114138', 'n_tokens_mistral': 469, 'n_tokens_neox': 420, 'n_words': 110}