etter.conf.v4 (ettercap-0.8.3) | : | etter.conf.v4 (ettercap-0.8.3.1) | ||
---|---|---|---|---|
skipping to change at line 172 | skipping to change at line 172 | |||
# note that the cleanup script is executed without enough privileges (because | # note that the cleanup script is executed without enough privileges (because | |||
# they are dropped on startup). so you have to either: provide a setuid program | # they are dropped on startup). so you have to either: provide a setuid program | |||
# or set the ec_uid to 0, in order to be sure the cleanup script will be | # or set the ec_uid to 0, in order to be sure the cleanup script will be | |||
# executed properly | # executed properly | |||
# NOTE: the script must fit into one line with a maximum of 255 characters | # NOTE: the script must fit into one line with a maximum of 255 characters | |||
#--------------- | #--------------- | |||
# Linux | # Linux | |||
#--------------- | #--------------- | |||
# if you use ipchains: | #redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp -d %desti | |||
#redir_command_on = "ipchains -A input -i %iface -p tcp -s %source -d %destin | nation --dport %port -j REDIRECT --to-port %rport" | |||
ation %port -j REDIRECT %rport" | #redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp -d %dest | |||
#redir_command_off = "ipchains -D input -i %iface -p tcp -s %source -d %desti | ination --dport %port -j REDIRECT --to-port %rport" | |||
nation %port -j REDIRECT %rport" | ||||
# if you use iptables: | ||||
#redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp -s %sourc | ||||
e -d %destination --dport %port -j REDIRECT --to-port %rport" | ||||
#redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp -s %sour | ||||
ce -d %destination --dport %port -j REDIRECT --to-port %rport" | ||||
#--------------- | #--------------- | |||
# Mac Os X | # Mac Os X | |||
#--------------- | #--------------- | |||
# if you use ipfw: | #redir_command_on = "(pfctl -sn 2> /dev/null; echo 'rdr pass on %iface inet p | |||
#redir_command_on = "ipfw -q add set %set fwd 127.0.0.1,%rport tcp from %sour | roto tcp from any to %destination port %port -> localhost port %rport') | pfctl | |||
ce to %destination %port in via %iface" | -f - 2> /dev/null" | |||
#redir_command_off = "ipfw -q delete set %set" | #redir_command_off = "pfctl -Psn 2> /dev/null | egrep -v 'inet .+ any to %des | |||
tination port = %port' | pfctl -f - 2> /dev/null" | ||||
# if you use BSD PF: | ||||
#redir_command_on = "(pfctl -sn 2> /dev/null; echo 'rdr pass on %iface inet p | ||||
roto tcp from %source to %destination port %port -> localhost port %rport') | pf | ||||
ctl -f - 2> /dev/null" | ||||
#redir_command_off = "pfctl -Psn 2> /dev/null | egrep -v 'inet .+ %source to | ||||
%destination port = %port' | pfctl -f - 2> /dev/null" | ||||
#--------------- | #--------------- | |||
# FreeBSD | # FreeBSD | |||
#--------------- | #--------------- | |||
# Before PF can be used, make sure the kernel module has been loaded by | # Before PF can be used, make sure the kernel module has been loaded by | |||
# `kldstat | grep pf.ko`. If the rusult is empty, you can load it by `kldload pf .ko`. | # `kldstat | grep pf.ko`. If the rusult is empty, you can load it by `kldload pf .ko`. | |||
# To enable PF at startup add 'pf_enable="YES"' to the /etc/rc.conf, | # To enable PF at startup add 'pf_enable="YES"' to the /etc/rc.conf, | |||
# 'pf_load="YES"' to /boot/loader.conf and 'pfctl -e' to /etc/rc.local. | # 'pf_load="YES"' to /boot/loader.conf and 'pfctl -e' to /etc/rc.local. | |||
# Check if the PF status is enabled by | # Check if the PF status is enabled by | |||
# `pfctl -si | grep Status | awk '{print $2;}'`. If "Disabled", enable it with | # `pfctl -si | grep Status | awk '{print $2;}'`. If "Disabled", enable it with | |||
# `pfctl -e`. | # `pfctl -e`. | |||
#redir_command_on = "(pfctl -sn 2> /dev/null; echo 'rdr pass on %iface inet p | #redir_command_on = "(pfctl -sn 2> /dev/null; echo 'rdr pass on %iface inet p | |||
roto tcp from %source to %destination port %port -> localhost port %rport') | pf | roto tcp from any to %destination port %port -> localhost port %rport') | pfctl | |||
ctl -f - 2> /dev/null" | -f - 2> /dev/null" | |||
#redir_command_off = "pfctl -Psn 2> /dev/null | egrep -v 'inet .+ %source to | #redir_command_off = "pfctl -Psn 2> /dev/null | egrep -v 'inet .+ any to %des | |||
%destination port = %port' | pfctl -f - 2> /dev/null" | tination port = %port' | pfctl -f - 2> /dev/null" | |||
#--------------- | #--------------- | |||
# Open BSD | # Open BSD | |||
#--------------- | #--------------- | |||
# unfortunately the pfctl command does not accepts direct rules adding | # unfortunately the pfctl command does not accepts direct rules adding | |||
# you have to use a script which executed the following command: | # you have to use a script which executed the following command: | |||
# ----- cut here ------- | # ----- cut here ------- | |||
# #!/bin/sh | # #!/bin/sh | |||
End of changes. 3 change blocks. | ||||
27 lines changed or deleted | 14 lines changed or added |