Sefyir thank you for reply.
After install everything was working, I could use wlan and eth.
I used this guide to set some rules at iptables (
https://www.lisenet.com/2014/configu...ian-wheezy-pc/)
Code:
# iptables -t filter -nL
# iptables -F
# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X
# nano /etc/iptables.up.rules
Add these lines to the file
*filter
-F INPUT
-F OUTPUT
-F FORWARD
-P INPUT ACCEPT
-P FORWARD DROP
-P OUTPUT ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT
-A INPUT -p tcp -m state --state NEW --dport 22 -j ACCEPT
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A OUTPUT -o lo -d 127.0.0.0/8 -j ACCEPT
-A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
COMMIT
Code:
# iptables-restore < /etc/iptables.up.rules
# nano /etc/network/if-pre-up.d/iptable
add these lines to the file
#!/bin/bash
/sbin/iptables-restore < /etc/iptables.up.rules
Code:
# chmod 0755 /etc/network/if-pre-up.d/iptables
then I thought it could be a permission problem and changed to 0777
and that is it, now I can't start any network interface.
If I use Ifup wlan0 or ifup eth0 I get this message, "failed o exec /etc/network/if-pre-up.d/iptables: no such file (...) exited with return code 1."
I really dont know what I did, and worst than that I cant undo it.