This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
$broken = TRUE; // TRUE: auto-assign port (doesn't work); FALSE: select port explicitely (works) | |
$local = TRUE; // TRUE: assing IPs to local interface; FALSE: use TPROXY mode. Doesn't make any difference in kernel behaviour | |
$ip_range = array('10.254.254.251', '10.254.254.252', '10.254.254.253', '10.254.254.254'); // put minimum two IPs that DO NOT belong to this machine already | |
$counters = $socks = array(); | |
// constants needed for setting a socket in TPROXY mode | |
define('SOL_IP', 0); |