[Firehol-support] redirect4 or redirect ?

Tony Peña emperor.cu at gmail.com
Wed Mar 9 18:55:02 GMT 2016


Hi again...

Trying redirect traffic for not allowed into my mac list to one internal
web server. i got some errors, maybe is the version of firehol, i'm using
2.0.4

when I wrote this.

LAN="10.0.0.0/8 172.16.0.0/16 192.168.0.0/16"

MAC_ALLOW="`cat /etc/firehol/mac_allow`"

for x in 80 443
do
  redirect to $x src "${LAN}" proto tcp dport $x dst not
"${UNROUTABLE_IPS}" mac not "${MAC_ALLOW}"
done

error:
ip6tables v1.4.21: host/network `10.0.0.0' not found

if on the line is changed for use redirect4 to $x ...........
the error said:

/tmp/firehol-09PkgF4ghF/firehol-tmp.sh: line 8: redirect4: command not found

so 1st works for ipv4 but is such mixing using ipv4 on the ip6table command
where not exist .

any idea?

thanxs

-- 
perl -le 's ffSfs.s fSf\x54\x6F\x6E\x79 \x50\x65\x6e\x61f.print'

Secure email with PGP 0x8B021001 available at https://pgp.mit.edu
<https://pgp.mit.edu/pks/lookup?search=0x8B021001&op=index&fingerprint=on&exact=on>
Fingerprint: 74E6 2974 B090 366D CE71  7BB2 6476 FA09 8B02 1001



More information about the Firehol-support mailing list